foreman_puppet 2.0.5 → 2.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/app/views/hosts/foreman_puppet/_form_list_env_field_content.html.erb +1 -0
  3. data/app/views/hosts/foreman_puppet/_form_list_env_field_header.html.erb +1 -0
  4. data/db/migrate/20220421204325_drop_environment_from_host_and_hg.foreman_puppet.rb +8 -0
  5. data/lib/foreman_puppet/register.rb +4 -1
  6. data/lib/foreman_puppet/version.rb +1 -1
  7. data/locale/en/foreman_puppet.edit.po +0 -1090
  8. metadata +56 -91
  9. data/app/views/smart_proxies/plugins/_puppet_ca.html.erb +0 -44
  10. data/locale/ca/foreman_puppet.edit.po +0 -1095
  11. data/locale/ca/foreman_puppet.po.time_stamp +0 -0
  12. data/locale/cs_CZ/foreman_puppet.edit.po +0 -1100
  13. data/locale/cs_CZ/foreman_puppet.po.time_stamp +0 -0
  14. data/locale/de/foreman_puppet.edit.po +0 -1122
  15. data/locale/de/foreman_puppet.po.time_stamp +0 -0
  16. data/locale/en/foreman_puppet.po.time_stamp +0 -0
  17. data/locale/en/foreman_puppet.pox +0 -0
  18. data/locale/en_GB/foreman_puppet.edit.po +0 -1097
  19. data/locale/en_GB/foreman_puppet.po.time_stamp +0 -0
  20. data/locale/es/foreman_puppet.edit.po +0 -1104
  21. data/locale/es/foreman_puppet.po.time_stamp +0 -0
  22. data/locale/fr/foreman_puppet.edit.po +0 -1112
  23. data/locale/fr/foreman_puppet.po.time_stamp +0 -0
  24. data/locale/gl/foreman_puppet.edit.po +0 -1095
  25. data/locale/gl/foreman_puppet.po.time_stamp +0 -0
  26. data/locale/it/foreman_puppet.edit.po +0 -1099
  27. data/locale/it/foreman_puppet.po.time_stamp +0 -0
  28. data/locale/ja/foreman_puppet.edit.po +0 -1107
  29. data/locale/ja/foreman_puppet.po.time_stamp +0 -0
  30. data/locale/ko/foreman_puppet.edit.po +0 -1096
  31. data/locale/ko/foreman_puppet.po.time_stamp +0 -0
  32. data/locale/messages.mo +0 -0
  33. data/locale/nl_NL/foreman_puppet.edit.po +0 -1100
  34. data/locale/nl_NL/foreman_puppet.po.time_stamp +0 -0
  35. data/locale/pl/foreman_puppet.edit.po +0 -1099
  36. data/locale/pl/foreman_puppet.po.time_stamp +0 -0
  37. data/locale/pt_BR/foreman_puppet.edit.po +0 -1103
  38. data/locale/pt_BR/foreman_puppet.po.time_stamp +0 -0
  39. data/locale/ru/foreman_puppet.edit.po +0 -1104
  40. data/locale/ru/foreman_puppet.po.time_stamp +0 -0
  41. data/locale/sv_SE/foreman_puppet.edit.po +0 -1099
  42. data/locale/sv_SE/foreman_puppet.po.time_stamp +0 -0
  43. data/locale/zh_CN/foreman_puppet.edit.po +0 -1108
  44. data/locale/zh_CN/foreman_puppet.po.time_stamp +0 -0
  45. data/locale/zh_TW/foreman_puppet.edit.po +0 -1098
  46. data/locale/zh_TW/foreman_puppet.po.time_stamp +0 -0
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr
8
8
  - Shira Maximov
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-03-03 00:00:00.000000000 Z
12
+ date: 2022-04-28 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Allow assigning Puppet environments and classes to the Foreman Hosts.
15
15
  email:
@@ -169,12 +169,13 @@ files:
169
169
  - app/views/foreman_puppet/puppetclasses/edit.html.erb
170
170
  - app/views/foreman_puppet/puppetclasses/index.html.erb
171
171
  - app/views/hosts/_form_puppet_enc_tab.html.erb
172
+ - app/views/hosts/foreman_puppet/_form_list_env_field_content.html.erb
173
+ - app/views/hosts/foreman_puppet/_form_list_env_field_header.html.erb
172
174
  - app/views/hosts/foreman_puppet/_form_main_tab_fields.html.erb
173
175
  - app/views/hosts/select_multiple_environment.html.erb
174
176
  - app/views/provisioning_templates/_combination.html.erb
175
177
  - app/views/provisioning_templates/_combinations.html.erb
176
178
  - app/views/smart_proxies/plugins/_puppet.html.erb
177
- - app/views/smart_proxies/plugins/_puppet_ca.html.erb
178
179
  - config/api_routes.rb
179
180
  - config/initializers/api_reroute.rb
180
181
  - config/routes.rb
@@ -190,6 +191,7 @@ files:
190
191
  - db/migrate/20211112130803_cleanup_environment_from_core_tables.foreman_puppet.rb
191
192
  - db/migrate/20220201205305_migrate_host_class_permission.foreman_puppet.rb
192
193
  - db/migrate/20220208135305_migrate_environment_ignore_type.foreman_puppet.rb
194
+ - db/migrate/20220421204325_drop_environment_from_host_and_hg.foreman_puppet.rb
193
195
  - db/migrate_foreman/20090722141107_create_environments.foreman_puppet.rb
194
196
  - db/migrate_foreman/20090802062223_create_puppetclasses.foreman_puppet.rb
195
197
  - db/migrate_foreman/20090905150132_create_hostgroups_puppetclasses.foreman_puppet.rb
@@ -216,81 +218,44 @@ files:
216
218
  - locale/Makefile
217
219
  - locale/action_names.rb
218
220
  - locale/ca/LC_MESSAGES/foreman_puppet.mo
219
- - locale/ca/foreman_puppet.edit.po
220
221
  - locale/ca/foreman_puppet.po
221
- - locale/ca/foreman_puppet.po.time_stamp
222
222
  - locale/cs_CZ/LC_MESSAGES/foreman_puppet.mo
223
- - locale/cs_CZ/foreman_puppet.edit.po
224
223
  - locale/cs_CZ/foreman_puppet.po
225
- - locale/cs_CZ/foreman_puppet.po.time_stamp
226
224
  - locale/de/LC_MESSAGES/foreman_puppet.mo
227
- - locale/de/foreman_puppet.edit.po
228
225
  - locale/de/foreman_puppet.po
229
- - locale/de/foreman_puppet.po.time_stamp
230
226
  - locale/en/LC_MESSAGES/foreman_puppet.mo
231
227
  - locale/en/foreman_puppet.edit.po
232
228
  - locale/en/foreman_puppet.po
233
- - locale/en/foreman_puppet.po.time_stamp
234
- - locale/en/foreman_puppet.pox
235
229
  - locale/en_GB/LC_MESSAGES/foreman_puppet.mo
236
- - locale/en_GB/foreman_puppet.edit.po
237
230
  - locale/en_GB/foreman_puppet.po
238
- - locale/en_GB/foreman_puppet.po.time_stamp
239
231
  - locale/es/LC_MESSAGES/foreman_puppet.mo
240
- - locale/es/foreman_puppet.edit.po
241
232
  - locale/es/foreman_puppet.po
242
- - locale/es/foreman_puppet.po.time_stamp
243
233
  - locale/foreman_puppet.pot
244
234
  - locale/fr/LC_MESSAGES/foreman_puppet.mo
245
- - locale/fr/foreman_puppet.edit.po
246
235
  - locale/fr/foreman_puppet.po
247
- - locale/fr/foreman_puppet.po.time_stamp
248
236
  - locale/gemspec.rb
249
237
  - locale/gl/LC_MESSAGES/foreman_puppet.mo
250
- - locale/gl/foreman_puppet.edit.po
251
238
  - locale/gl/foreman_puppet.po
252
- - locale/gl/foreman_puppet.po.time_stamp
253
239
  - locale/it/LC_MESSAGES/foreman_puppet.mo
254
- - locale/it/foreman_puppet.edit.po
255
240
  - locale/it/foreman_puppet.po
256
- - locale/it/foreman_puppet.po.time_stamp
257
241
  - locale/ja/LC_MESSAGES/foreman_puppet.mo
258
- - locale/ja/foreman_puppet.edit.po
259
242
  - locale/ja/foreman_puppet.po
260
- - locale/ja/foreman_puppet.po.time_stamp
261
243
  - locale/ko/LC_MESSAGES/foreman_puppet.mo
262
- - locale/ko/foreman_puppet.edit.po
263
244
  - locale/ko/foreman_puppet.po
264
- - locale/ko/foreman_puppet.po.time_stamp
265
- - locale/messages.mo
266
245
  - locale/nl_NL/LC_MESSAGES/foreman_puppet.mo
267
- - locale/nl_NL/foreman_puppet.edit.po
268
246
  - locale/nl_NL/foreman_puppet.po
269
- - locale/nl_NL/foreman_puppet.po.time_stamp
270
247
  - locale/pl/LC_MESSAGES/foreman_puppet.mo
271
- - locale/pl/foreman_puppet.edit.po
272
248
  - locale/pl/foreman_puppet.po
273
- - locale/pl/foreman_puppet.po.time_stamp
274
249
  - locale/pt_BR/LC_MESSAGES/foreman_puppet.mo
275
- - locale/pt_BR/foreman_puppet.edit.po
276
250
  - locale/pt_BR/foreman_puppet.po
277
- - locale/pt_BR/foreman_puppet.po.time_stamp
278
251
  - locale/ru/LC_MESSAGES/foreman_puppet.mo
279
- - locale/ru/foreman_puppet.edit.po
280
252
  - locale/ru/foreman_puppet.po
281
- - locale/ru/foreman_puppet.po.time_stamp
282
253
  - locale/sv_SE/LC_MESSAGES/foreman_puppet.mo
283
- - locale/sv_SE/foreman_puppet.edit.po
284
254
  - locale/sv_SE/foreman_puppet.po
285
- - locale/sv_SE/foreman_puppet.po.time_stamp
286
255
  - locale/zh_CN/LC_MESSAGES/foreman_puppet.mo
287
- - locale/zh_CN/foreman_puppet.edit.po
288
256
  - locale/zh_CN/foreman_puppet.po
289
- - locale/zh_CN/foreman_puppet.po.time_stamp
290
257
  - locale/zh_TW/LC_MESSAGES/foreman_puppet.mo
291
- - locale/zh_TW/foreman_puppet.edit.po
292
258
  - locale/zh_TW/foreman_puppet.po
293
- - locale/zh_TW/foreman_puppet.po.time_stamp
294
259
  - package.json
295
260
  - test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb
296
261
  - test/controllers/foreman_puppet/api/v2/environments_controller_test.rb
@@ -383,7 +348,7 @@ homepage: https://github.com/theforeman/foreman_puppet
383
348
  licenses:
384
349
  - GPL-3.0
385
350
  metadata: {}
386
- post_install_message:
351
+ post_install_message:
387
352
  rdoc_options: []
388
353
  require_paths:
389
354
  - lib
@@ -398,74 +363,74 @@ required_rubygems_version: !ruby/object:Gem::Requirement
398
363
  - !ruby/object:Gem::Version
399
364
  version: '0'
400
365
  requirements: []
401
- rubygems_version: 3.3.4
402
- signing_key:
366
+ rubygems_version: 3.1.2
367
+ signing_key:
403
368
  specification_version: 4
404
369
  summary: Add Puppet features to Foreman
405
370
  test_files:
406
- - test/services/foreman_puppet/host_info_providers/config_groups_info_test.rb
407
- - test/services/foreman_puppet/host_info_providers/puppet_info_test.rb
408
- - test/services/foreman_puppet/input_type/puppet_parameter_input_test.rb
409
- - test/services/foreman_puppet/host_counter_test.rb
371
+ - test/unit/foreman_puppet_test.rb
372
+ - test/unit/foreman_puppet/puppet_class_importer_test.rb
373
+ - test/unit/foreman_puppet/template_rendering_test.rb
374
+ - test/unit/foreman_puppet/access_permissions_test.rb
375
+ - test/helpers/foreman_puppet/puppetclass_lookup_keys_helper_test.rb
376
+ - test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
377
+ - test/helpers/foreman_puppet/puppetclasses_helper_test.rb
378
+ - test/integration/foreman_puppet/dashboard_js_test.rb
379
+ - test/integration/foreman_puppet/host_js_test.rb
380
+ - test/integration/foreman_puppet/hostgroup_js_test.rb
410
381
  - test/integration/foreman_puppet/smartclass_parameter_js_test.rb
411
382
  - test/integration/foreman_puppet/puppetclass_js_test.rb
412
- - test/integration/foreman_puppet/hostgroup_js_test.rb
413
383
  - test/integration/foreman_puppet/environment_js_test.rb
414
- - test/integration/foreman_puppet/dashboard_js_test.rb
415
- - test/integration/foreman_puppet/host_js_test.rb
416
- - test/graphql/mutations/hosts/create_mutation_test.rb
417
- - test/graphql/queries/puppetclasses_query_test.rb
418
- - test/graphql/queries/host_puppet_query_test.rb
419
- - test/graphql/queries/puppetclass_query_test.rb
420
- - test/graphql/queries/organization_query_test.rb
421
- - test/graphql/queries/location_query_test.rb
422
- - test/graphql/queries/environment_query_test.rb
423
- - test/graphql/queries/hostgroup_puppet_query_test.rb
424
- - test/graphql/queries/environments_query_test.rb
425
- - test/helpers/foreman_puppet/puppetclass_lookup_keys_helper_test.rb
426
- - test/helpers/foreman_puppet/puppetclasses_helper_test.rb
427
- - test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
428
- - test/models/foreman_puppet/config_group_class_test.rb
429
- - test/models/foreman_puppet/report_test.rb
430
- - test/models/foreman_puppet/puppetclass_lookup_key_test.rb
431
- - test/models/foreman_puppet/hostgroup_test.rb
384
+ - test/factories/foreman_puppet_factories.rb
385
+ - test/factories/host_puppet_enhancements.rb
386
+ - test/factories/proxy_puppet_enhancements.rb
432
387
  - test/models/foreman_puppet/config_group_test.rb
433
- - test/models/foreman_puppet/puppetclass_test.rb
388
+ - test/models/foreman_puppet/report_test.rb
434
389
  - test/models/foreman_puppet/host_puppet_facet_test.rb
390
+ - test/models/foreman_puppet/host_test.rb
391
+ - test/models/foreman_puppet/user_test.rb
392
+ - test/models/foreman_puppet/provisioning_template_test.rb
435
393
  - test/models/foreman_puppet/host_config_group_test.rb
436
394
  - test/models/foreman_puppet/lookup_value_test.rb
437
- - test/models/foreman_puppet/host_test.rb
395
+ - test/models/foreman_puppet/hostgroup_test.rb
438
396
  - test/models/foreman_puppet/hostgroup_puppet_facet_test.rb
439
- - test/models/foreman_puppet/smart_proxy_test.rb
397
+ - test/models/foreman_puppet/puppetclass_lookup_key_test.rb
440
398
  - test/models/foreman_puppet/environment_test.rb
441
- - test/models/foreman_puppet/provisioning_template_test.rb
442
- - test/models/foreman_puppet/user_test.rb
443
- - test/unit/foreman_puppet_test.rb
444
- - test/unit/foreman_puppet/puppet_class_importer_test.rb
445
- - test/unit/foreman_puppet/access_permissions_test.rb
446
- - test/unit/foreman_puppet/template_rendering_test.rb
447
- - test/factories/foreman_puppet_factories.rb
448
- - test/factories/proxy_puppet_enhancements.rb
449
- - test/factories/host_puppet_enhancements.rb
399
+ - test/models/foreman_puppet/puppetclass_test.rb
400
+ - test/models/foreman_puppet/config_group_class_test.rb
401
+ - test/models/foreman_puppet/smart_proxy_test.rb
402
+ - test/graphql/queries/hostgroup_puppet_query_test.rb
403
+ - test/graphql/queries/puppetclass_query_test.rb
404
+ - test/graphql/queries/location_query_test.rb
405
+ - test/graphql/queries/organization_query_test.rb
406
+ - test/graphql/queries/puppetclasses_query_test.rb
407
+ - test/graphql/queries/environment_query_test.rb
408
+ - test/graphql/queries/environments_query_test.rb
409
+ - test/graphql/queries/host_puppet_query_test.rb
410
+ - test/graphql/mutations/hosts/create_mutation_test.rb
450
411
  - test/test_puppet_helper.rb
412
+ - test/controllers/provisioning_templates_controller_test.rb
413
+ - test/controllers/foreman_puppet/hostgroups_controller_test.rb
414
+ - test/controllers/foreman_puppet/puppetclass_lookup_keys_controller_test.rb
451
415
  - test/controllers/foreman_puppet/environments_controller_test.rb
452
416
  - test/controllers/foreman_puppet/puppet_smart_proxies_controller_test.rb
453
- - test/controllers/foreman_puppet/puppetclass_lookup_keys_controller_test.rb
454
- - test/controllers/foreman_puppet/hostgroups_controller_test.rb
455
- - test/controllers/foreman_puppet/config_groups_controller_test.rb
417
+ - test/controllers/foreman_puppet/hosts_controller_test.rb
456
418
  - test/controllers/foreman_puppet/api/v2/template_combinations_controller_test.rb
419
+ - test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb
420
+ - test/controllers/foreman_puppet/api/v2/host_classes_controller_test.rb
421
+ - test/controllers/foreman_puppet/api/v2/hostgroups_controller_test.rb
422
+ - test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb
457
423
  - test/controllers/foreman_puppet/api/v2/environments_controller_test.rb
424
+ - test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb
458
425
  - test/controllers/foreman_puppet/api/v2/hostgroup_classes_controller_test.rb
426
+ - test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb
427
+ - test/controllers/foreman_puppet/api/v2/smart_proxies_controller_test.rb
459
428
  - test/controllers/foreman_puppet/api/v2/override_values_controller_test.rb
460
- - test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb
461
- - test/controllers/foreman_puppet/api/v2/hostgroups_controller_test.rb
462
429
  - test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb
463
- - test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb
464
- - test/controllers/foreman_puppet/api/v2/host_classes_controller_test.rb
465
430
  - test/controllers/foreman_puppet/api/v2/provisioning_templates_controller_test.rb
466
- - test/controllers/foreman_puppet/api/v2/smart_proxies_controller_test.rb
467
- - test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb
468
- - test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb
469
431
  - test/controllers/foreman_puppet/puppetclasses_controller_test.rb
470
- - test/controllers/foreman_puppet/hosts_controller_test.rb
471
- - test/controllers/provisioning_templates_controller_test.rb
432
+ - test/controllers/foreman_puppet/config_groups_controller_test.rb
433
+ - test/services/foreman_puppet/input_type/puppet_parameter_input_test.rb
434
+ - test/services/foreman_puppet/host_counter_test.rb
435
+ - test/services/foreman_puppet/host_info_providers/config_groups_info_test.rb
436
+ - test/services/foreman_puppet/host_info_providers/puppet_info_test.rb
@@ -1,44 +0,0 @@
1
- <ul id="proxy-puppetca-tab" class="nav nav-tabs nav-tabs-pf">
2
- <li class="active"><a href="#ca_general" data-toggle="tab"><%= _("General") %></a></li>
3
- <% if authorized_for(:permission => :view_smart_proxies_puppetca, :auth_object => @smart_proxy, :authorizer => authorizer) %>
4
- <li><a href="#certificates" data-toggle="tab"><%= _("Certificates") %></a></li>
5
- <% end %>
6
- <% if authorized_for(:permission => :view_smart_proxies_autosign, :auth_object => @smart_proxy, :authorizer => authorizer) %>
7
- <li><a href="#autosign" data-toggle="tab"><%= _("Autosign entries") %></a></li>
8
- <% end %>
9
- </ul>
10
- <div id="proxy-puppetca-tab-content" class="tab-content">
11
- <div class="tab-pane active in" id="ca_general">
12
- <div class="row">
13
- <div class="col-md-6">
14
- <%= show_feature_version('puppetca') %>
15
- <div class="row">
16
- <div class="col-md-4"><strong><%= _('Hosts managed:') %></strong></div>
17
- <div class="col-md-8">
18
- <%= link_to Host::Managed.where(:puppet_ca_proxy_id => @smart_proxy.id).count, hosts_path(:search => "puppet_ca = \"#{@smart_proxy.name}\"") %>
19
- </div>
20
- </div>
21
- </div>
22
- </div>
23
- <div class="container-fluid container-cards-pf">
24
- <div class="row row-cards-pf">
25
- <% if authorized_for(:permission => :view_smart_proxies_puppetca, :auth_object => @smart_proxy) %>
26
- <span data-ajax-url="<%= counts_smart_proxy_puppetca_path(:smart_proxy_id => @smart_proxy) %>"><%= spinner%></span>
27
- <span data-ajax-url="<%= expiry_smart_proxy_puppetca_path(:smart_proxy_id => @smart_proxy) %>"><%= spinner%></span>
28
- <% end %>
29
- <% if authorized_for(:permission => :view_smart_proxies_autosign, :auth_object => @smart_proxy, :authorizer => authorizer) %>
30
- <span data-ajax-url="<%= counts_smart_proxy_autosign_path(:smart_proxy_id => @smart_proxy) %>"><%= spinner%></span>
31
- <% end %>
32
- </div>
33
- </div>
34
- </div>
35
- <% if authorized_for(:permission => :view_smart_proxies_puppetca, :auth_object => @smart_proxy, :authorizer => authorizer) %>
36
- <div class="tab-pane" id="certificates" data-ajax-url="<%= smart_proxy_puppetca_index_path(:smart_proxy_id => @smart_proxy) %>" data-on-complete="certTable"><%= spinner %></div>
37
- <% end %>
38
- <% if authorized_for(:permission => :view_smart_proxies_autosign, :auth_object => @smart_proxy, :authorizer => authorizer) %>
39
- <div class="tab-pane" id="autosign" data-ajax-url="<%= smart_proxy_autosign_index_path(:smart_proxy_id => @smart_proxy) %>" data-on-complete="tfm.tools.activateDatatables"><%= spinner %></div>
40
- <% if authorized_for(:permission => :create_smart_proxies_autosign, :auth_object => @smart_proxy, :authorizer => authorizer) %>
41
- <div data-ajax-url=<%= new_smart_proxy_autosign_path(:smart_proxy_id => @smart_proxy) %>></div>
42
- <% end %>
43
- <% end %>
44
- </div>