foreman_puppet 3.0.5 → 3.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/db/migrate/20220421204325_drop_environment_from_host_and_hg.foreman_puppet.rb +8 -0
  3. data/lib/foreman_puppet/register.rb +0 -1
  4. data/lib/foreman_puppet/version.rb +1 -1
  5. data/locale/en/foreman_puppet.edit.po +0 -1090
  6. metadata +54 -91
  7. data/app/views/smart_proxies/plugins/_puppet_ca.html.erb +0 -44
  8. data/locale/ca/foreman_puppet.edit.po +0 -1095
  9. data/locale/ca/foreman_puppet.po.time_stamp +0 -0
  10. data/locale/cs_CZ/foreman_puppet.edit.po +0 -1100
  11. data/locale/cs_CZ/foreman_puppet.po.time_stamp +0 -0
  12. data/locale/de/foreman_puppet.edit.po +0 -1122
  13. data/locale/de/foreman_puppet.po.time_stamp +0 -0
  14. data/locale/en/foreman_puppet.po.time_stamp +0 -0
  15. data/locale/en/foreman_puppet.pox +0 -0
  16. data/locale/en_GB/foreman_puppet.edit.po +0 -1097
  17. data/locale/en_GB/foreman_puppet.po.time_stamp +0 -0
  18. data/locale/es/foreman_puppet.edit.po +0 -1104
  19. data/locale/es/foreman_puppet.po.time_stamp +0 -0
  20. data/locale/fr/foreman_puppet.edit.po +0 -1112
  21. data/locale/fr/foreman_puppet.po.time_stamp +0 -0
  22. data/locale/gl/foreman_puppet.edit.po +0 -1095
  23. data/locale/gl/foreman_puppet.po.time_stamp +0 -0
  24. data/locale/it/foreman_puppet.edit.po +0 -1099
  25. data/locale/it/foreman_puppet.po.time_stamp +0 -0
  26. data/locale/ja/foreman_puppet.edit.po +0 -1107
  27. data/locale/ja/foreman_puppet.po.time_stamp +0 -0
  28. data/locale/ko/foreman_puppet.edit.po +0 -1096
  29. data/locale/ko/foreman_puppet.po.time_stamp +0 -0
  30. data/locale/messages.mo +0 -0
  31. data/locale/nl_NL/foreman_puppet.edit.po +0 -1100
  32. data/locale/nl_NL/foreman_puppet.po.time_stamp +0 -0
  33. data/locale/pl/foreman_puppet.edit.po +0 -1099
  34. data/locale/pl/foreman_puppet.po.time_stamp +0 -0
  35. data/locale/pt_BR/foreman_puppet.edit.po +0 -1103
  36. data/locale/pt_BR/foreman_puppet.po.time_stamp +0 -0
  37. data/locale/ru/foreman_puppet.edit.po +0 -1104
  38. data/locale/ru/foreman_puppet.po.time_stamp +0 -0
  39. data/locale/sv_SE/foreman_puppet.edit.po +0 -1099
  40. data/locale/sv_SE/foreman_puppet.po.time_stamp +0 -0
  41. data/locale/zh_CN/foreman_puppet.edit.po +0 -1108
  42. data/locale/zh_CN/foreman_puppet.po.time_stamp +0 -0
  43. data/locale/zh_TW/foreman_puppet.edit.po +0 -1098
  44. 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: 3.0.5
4
+ version: 3.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:
@@ -176,7 +176,6 @@ files:
176
176
  - app/views/provisioning_templates/_combination.html.erb
177
177
  - app/views/provisioning_templates/_combinations.html.erb
178
178
  - app/views/smart_proxies/plugins/_puppet.html.erb
179
- - app/views/smart_proxies/plugins/_puppet_ca.html.erb
180
179
  - config/api_routes.rb
181
180
  - config/initializers/api_reroute.rb
182
181
  - config/routes.rb
@@ -192,6 +191,7 @@ files:
192
191
  - db/migrate/20211112130803_cleanup_environment_from_core_tables.foreman_puppet.rb
193
192
  - db/migrate/20220201205305_migrate_host_class_permission.foreman_puppet.rb
194
193
  - db/migrate/20220208135305_migrate_environment_ignore_type.foreman_puppet.rb
194
+ - db/migrate/20220421204325_drop_environment_from_host_and_hg.foreman_puppet.rb
195
195
  - db/migrate_foreman/20090722141107_create_environments.foreman_puppet.rb
196
196
  - db/migrate_foreman/20090802062223_create_puppetclasses.foreman_puppet.rb
197
197
  - db/migrate_foreman/20090905150132_create_hostgroups_puppetclasses.foreman_puppet.rb
@@ -218,81 +218,44 @@ files:
218
218
  - locale/Makefile
219
219
  - locale/action_names.rb
220
220
  - locale/ca/LC_MESSAGES/foreman_puppet.mo
221
- - locale/ca/foreman_puppet.edit.po
222
221
  - locale/ca/foreman_puppet.po
223
- - locale/ca/foreman_puppet.po.time_stamp
224
222
  - locale/cs_CZ/LC_MESSAGES/foreman_puppet.mo
225
- - locale/cs_CZ/foreman_puppet.edit.po
226
223
  - locale/cs_CZ/foreman_puppet.po
227
- - locale/cs_CZ/foreman_puppet.po.time_stamp
228
224
  - locale/de/LC_MESSAGES/foreman_puppet.mo
229
- - locale/de/foreman_puppet.edit.po
230
225
  - locale/de/foreman_puppet.po
231
- - locale/de/foreman_puppet.po.time_stamp
232
226
  - locale/en/LC_MESSAGES/foreman_puppet.mo
233
227
  - locale/en/foreman_puppet.edit.po
234
228
  - locale/en/foreman_puppet.po
235
- - locale/en/foreman_puppet.po.time_stamp
236
- - locale/en/foreman_puppet.pox
237
229
  - locale/en_GB/LC_MESSAGES/foreman_puppet.mo
238
- - locale/en_GB/foreman_puppet.edit.po
239
230
  - locale/en_GB/foreman_puppet.po
240
- - locale/en_GB/foreman_puppet.po.time_stamp
241
231
  - locale/es/LC_MESSAGES/foreman_puppet.mo
242
- - locale/es/foreman_puppet.edit.po
243
232
  - locale/es/foreman_puppet.po
244
- - locale/es/foreman_puppet.po.time_stamp
245
233
  - locale/foreman_puppet.pot
246
234
  - locale/fr/LC_MESSAGES/foreman_puppet.mo
247
- - locale/fr/foreman_puppet.edit.po
248
235
  - locale/fr/foreman_puppet.po
249
- - locale/fr/foreman_puppet.po.time_stamp
250
236
  - locale/gemspec.rb
251
237
  - locale/gl/LC_MESSAGES/foreman_puppet.mo
252
- - locale/gl/foreman_puppet.edit.po
253
238
  - locale/gl/foreman_puppet.po
254
- - locale/gl/foreman_puppet.po.time_stamp
255
239
  - locale/it/LC_MESSAGES/foreman_puppet.mo
256
- - locale/it/foreman_puppet.edit.po
257
240
  - locale/it/foreman_puppet.po
258
- - locale/it/foreman_puppet.po.time_stamp
259
241
  - locale/ja/LC_MESSAGES/foreman_puppet.mo
260
- - locale/ja/foreman_puppet.edit.po
261
242
  - locale/ja/foreman_puppet.po
262
- - locale/ja/foreman_puppet.po.time_stamp
263
243
  - locale/ko/LC_MESSAGES/foreman_puppet.mo
264
- - locale/ko/foreman_puppet.edit.po
265
244
  - locale/ko/foreman_puppet.po
266
- - locale/ko/foreman_puppet.po.time_stamp
267
- - locale/messages.mo
268
245
  - locale/nl_NL/LC_MESSAGES/foreman_puppet.mo
269
- - locale/nl_NL/foreman_puppet.edit.po
270
246
  - locale/nl_NL/foreman_puppet.po
271
- - locale/nl_NL/foreman_puppet.po.time_stamp
272
247
  - locale/pl/LC_MESSAGES/foreman_puppet.mo
273
- - locale/pl/foreman_puppet.edit.po
274
248
  - locale/pl/foreman_puppet.po
275
- - locale/pl/foreman_puppet.po.time_stamp
276
249
  - locale/pt_BR/LC_MESSAGES/foreman_puppet.mo
277
- - locale/pt_BR/foreman_puppet.edit.po
278
250
  - locale/pt_BR/foreman_puppet.po
279
- - locale/pt_BR/foreman_puppet.po.time_stamp
280
251
  - locale/ru/LC_MESSAGES/foreman_puppet.mo
281
- - locale/ru/foreman_puppet.edit.po
282
252
  - locale/ru/foreman_puppet.po
283
- - locale/ru/foreman_puppet.po.time_stamp
284
253
  - locale/sv_SE/LC_MESSAGES/foreman_puppet.mo
285
- - locale/sv_SE/foreman_puppet.edit.po
286
254
  - locale/sv_SE/foreman_puppet.po
287
- - locale/sv_SE/foreman_puppet.po.time_stamp
288
255
  - locale/zh_CN/LC_MESSAGES/foreman_puppet.mo
289
- - locale/zh_CN/foreman_puppet.edit.po
290
256
  - locale/zh_CN/foreman_puppet.po
291
- - locale/zh_CN/foreman_puppet.po.time_stamp
292
257
  - locale/zh_TW/LC_MESSAGES/foreman_puppet.mo
293
- - locale/zh_TW/foreman_puppet.edit.po
294
258
  - locale/zh_TW/foreman_puppet.po
295
- - locale/zh_TW/foreman_puppet.po.time_stamp
296
259
  - package.json
297
260
  - test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb
298
261
  - test/controllers/foreman_puppet/api/v2/environments_controller_test.rb
@@ -386,7 +349,7 @@ homepage: https://github.com/theforeman/foreman_puppet
386
349
  licenses:
387
350
  - GPL-3.0
388
351
  metadata: {}
389
- post_install_message:
352
+ post_install_message:
390
353
  rdoc_options: []
391
354
  require_paths:
392
355
  - lib
@@ -401,75 +364,75 @@ required_rubygems_version: !ruby/object:Gem::Requirement
401
364
  - !ruby/object:Gem::Version
402
365
  version: '0'
403
366
  requirements: []
404
- rubygems_version: 3.3.4
405
- signing_key:
367
+ rubygems_version: 3.1.2
368
+ signing_key:
406
369
  specification_version: 4
407
370
  summary: Add Puppet features to Foreman
408
371
  test_files:
409
- - test/services/foreman_puppet/host_info_providers/config_groups_info_test.rb
410
- - test/services/foreman_puppet/host_info_providers/puppet_info_test.rb
411
- - test/services/foreman_puppet/input_type/puppet_parameter_input_test.rb
412
- - test/services/foreman_puppet/host_counter_test.rb
372
+ - test/unit/foreman_puppet_test.rb
373
+ - test/unit/foreman_puppet/puppet_class_importer_test.rb
374
+ - test/unit/foreman_puppet/template_rendering_test.rb
375
+ - test/unit/foreman_puppet/access_permissions_test.rb
376
+ - test/helpers/foreman_puppet/puppetclass_lookup_keys_helper_test.rb
377
+ - test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
378
+ - test/helpers/foreman_puppet/puppetclasses_helper_test.rb
379
+ - test/integration/foreman_puppet/dashboard_js_test.rb
380
+ - test/integration/foreman_puppet/host_js_test.rb
381
+ - test/integration/foreman_puppet/hostgroup_js_test.rb
413
382
  - test/integration/foreman_puppet/smartclass_parameter_js_test.rb
414
383
  - test/integration/foreman_puppet/puppetclass_js_test.rb
415
- - test/integration/foreman_puppet/hostgroup_js_test.rb
416
384
  - test/integration/foreman_puppet/environment_js_test.rb
417
- - test/integration/foreman_puppet/dashboard_js_test.rb
418
- - test/integration/foreman_puppet/host_js_test.rb
419
- - test/graphql/mutations/hosts/create_mutation_test.rb
420
- - test/graphql/queries/puppetclasses_query_test.rb
421
- - test/graphql/queries/host_puppet_query_test.rb
422
- - test/graphql/queries/puppetclass_query_test.rb
423
- - test/graphql/queries/organization_query_test.rb
424
- - test/graphql/queries/location_query_test.rb
425
- - test/graphql/queries/environment_query_test.rb
426
- - test/graphql/queries/hostgroup_puppet_query_test.rb
427
- - test/graphql/queries/environments_query_test.rb
385
+ - test/factories/foreman_puppet_factories.rb
386
+ - test/factories/host_puppet_enhancements.rb
387
+ - test/factories/proxy_puppet_enhancements.rb
428
388
  - test/integration_puppet_helper.rb
429
- - test/helpers/foreman_puppet/puppetclass_lookup_keys_helper_test.rb
430
- - test/helpers/foreman_puppet/puppetclasses_helper_test.rb
431
- - test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
432
- - test/models/foreman_puppet/config_group_class_test.rb
433
- - test/models/foreman_puppet/report_test.rb
434
- - test/models/foreman_puppet/puppetclass_lookup_key_test.rb
435
- - test/models/foreman_puppet/hostgroup_test.rb
436
389
  - test/models/foreman_puppet/config_group_test.rb
437
- - test/models/foreman_puppet/puppetclass_test.rb
390
+ - test/models/foreman_puppet/report_test.rb
438
391
  - test/models/foreman_puppet/host_puppet_facet_test.rb
392
+ - test/models/foreman_puppet/host_test.rb
393
+ - test/models/foreman_puppet/user_test.rb
394
+ - test/models/foreman_puppet/provisioning_template_test.rb
439
395
  - test/models/foreman_puppet/host_config_group_test.rb
440
396
  - test/models/foreman_puppet/lookup_value_test.rb
441
- - test/models/foreman_puppet/host_test.rb
397
+ - test/models/foreman_puppet/hostgroup_test.rb
442
398
  - test/models/foreman_puppet/hostgroup_puppet_facet_test.rb
443
- - test/models/foreman_puppet/smart_proxy_test.rb
399
+ - test/models/foreman_puppet/puppetclass_lookup_key_test.rb
444
400
  - test/models/foreman_puppet/environment_test.rb
445
- - test/models/foreman_puppet/provisioning_template_test.rb
446
- - test/models/foreman_puppet/user_test.rb
447
- - test/unit/foreman_puppet_test.rb
448
- - test/unit/foreman_puppet/puppet_class_importer_test.rb
449
- - test/unit/foreman_puppet/access_permissions_test.rb
450
- - test/unit/foreman_puppet/template_rendering_test.rb
451
- - test/factories/foreman_puppet_factories.rb
452
- - test/factories/proxy_puppet_enhancements.rb
453
- - test/factories/host_puppet_enhancements.rb
401
+ - test/models/foreman_puppet/puppetclass_test.rb
402
+ - test/models/foreman_puppet/config_group_class_test.rb
403
+ - test/models/foreman_puppet/smart_proxy_test.rb
404
+ - test/graphql/queries/hostgroup_puppet_query_test.rb
405
+ - test/graphql/queries/puppetclass_query_test.rb
406
+ - test/graphql/queries/location_query_test.rb
407
+ - test/graphql/queries/organization_query_test.rb
408
+ - test/graphql/queries/puppetclasses_query_test.rb
409
+ - test/graphql/queries/environment_query_test.rb
410
+ - test/graphql/queries/environments_query_test.rb
411
+ - test/graphql/queries/host_puppet_query_test.rb
412
+ - test/graphql/mutations/hosts/create_mutation_test.rb
454
413
  - test/test_puppet_helper.rb
414
+ - test/controllers/provisioning_templates_controller_test.rb
415
+ - test/controllers/foreman_puppet/hostgroups_controller_test.rb
416
+ - test/controllers/foreman_puppet/puppetclass_lookup_keys_controller_test.rb
455
417
  - test/controllers/foreman_puppet/environments_controller_test.rb
456
418
  - test/controllers/foreman_puppet/puppet_smart_proxies_controller_test.rb
457
- - test/controllers/foreman_puppet/puppetclass_lookup_keys_controller_test.rb
458
- - test/controllers/foreman_puppet/hostgroups_controller_test.rb
459
- - test/controllers/foreman_puppet/config_groups_controller_test.rb
419
+ - test/controllers/foreman_puppet/hosts_controller_test.rb
460
420
  - test/controllers/foreman_puppet/api/v2/template_combinations_controller_test.rb
421
+ - test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb
422
+ - test/controllers/foreman_puppet/api/v2/host_classes_controller_test.rb
423
+ - test/controllers/foreman_puppet/api/v2/hostgroups_controller_test.rb
424
+ - test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb
461
425
  - test/controllers/foreman_puppet/api/v2/environments_controller_test.rb
426
+ - test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb
462
427
  - test/controllers/foreman_puppet/api/v2/hostgroup_classes_controller_test.rb
428
+ - test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb
429
+ - test/controllers/foreman_puppet/api/v2/smart_proxies_controller_test.rb
463
430
  - test/controllers/foreman_puppet/api/v2/override_values_controller_test.rb
464
- - test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb
465
- - test/controllers/foreman_puppet/api/v2/hostgroups_controller_test.rb
466
431
  - test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb
467
- - test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb
468
- - test/controllers/foreman_puppet/api/v2/host_classes_controller_test.rb
469
432
  - test/controllers/foreman_puppet/api/v2/provisioning_templates_controller_test.rb
470
- - test/controllers/foreman_puppet/api/v2/smart_proxies_controller_test.rb
471
- - test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb
472
- - test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb
473
433
  - test/controllers/foreman_puppet/puppetclasses_controller_test.rb
474
- - test/controllers/foreman_puppet/hosts_controller_test.rb
475
- - test/controllers/provisioning_templates_controller_test.rb
434
+ - test/controllers/foreman_puppet/config_groups_controller_test.rb
435
+ - test/services/foreman_puppet/input_type/puppet_parameter_input_test.rb
436
+ - test/services/foreman_puppet/host_counter_test.rb
437
+ - test/services/foreman_puppet/host_info_providers/config_groups_info_test.rb
438
+ - 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>