foreman_puppet 2.0.4 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/app/helpers/foreman_puppet/environments_helper.rb +1 -1
  3. data/app/views/foreman_puppet/config_groups/index.html.erb +3 -1
  4. data/app/views/hosts/foreman_puppet/_form_list_env_field_content.html.erb +1 -0
  5. data/app/views/hosts/foreman_puppet/_form_list_env_field_header.html.erb +1 -0
  6. data/db/migrate/20220421204325_drop_environment_from_host_and_hg.foreman_puppet.rb +8 -0
  7. data/lib/foreman_puppet/register.rb +6 -2
  8. data/lib/foreman_puppet/version.rb +1 -1
  9. data/locale/ca/foreman_puppet.edit.po +237 -111
  10. data/locale/cs_CZ/foreman_puppet.edit.po +213 -105
  11. data/locale/de/foreman_puppet.edit.po +326 -148
  12. data/locale/en/foreman_puppet.edit.po +80 -172
  13. data/locale/en_GB/foreman_puppet.edit.po +200 -100
  14. data/locale/es/foreman_puppet.edit.po +304 -133
  15. data/locale/fr/foreman_puppet.edit.po +313 -135
  16. data/locale/gl/foreman_puppet.edit.po +210 -102
  17. data/locale/it/foreman_puppet.edit.po +250 -116
  18. data/locale/ja/foreman_puppet.edit.po +223 -107
  19. data/locale/ko/foreman_puppet.edit.po +202 -101
  20. data/locale/messages.mo +0 -0
  21. data/locale/nl_NL/foreman_puppet.edit.po +243 -115
  22. data/locale/pl/foreman_puppet.edit.po +260 -121
  23. data/locale/pt_BR/foreman_puppet.edit.po +317 -139
  24. data/locale/ru/foreman_puppet.edit.po +258 -122
  25. data/locale/sv_SE/foreman_puppet.edit.po +209 -103
  26. data/locale/zh_CN/foreman_puppet.edit.po +209 -105
  27. data/locale/zh_TW/foreman_puppet.edit.po +202 -103
  28. metadata +56 -54
  29. data/app/views/smart_proxies/plugins/_puppet_ca.html.erb +0 -44
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.4
4
+ version: 2.0.7
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-02-28 00:00:00.000000000 Z
12
+ date: 2022-06-03 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
@@ -383,7 +385,7 @@ homepage: https://github.com/theforeman/foreman_puppet
383
385
  licenses:
384
386
  - GPL-3.0
385
387
  metadata: {}
386
- post_install_message:
388
+ post_install_message:
387
389
  rdoc_options: []
388
390
  require_paths:
389
391
  - lib
@@ -398,74 +400,74 @@ required_rubygems_version: !ruby/object:Gem::Requirement
398
400
  - !ruby/object:Gem::Version
399
401
  version: '0'
400
402
  requirements: []
401
- rubygems_version: 3.3.4
402
- signing_key:
403
+ rubygems_version: 3.1.2
404
+ signing_key:
403
405
  specification_version: 4
404
406
  summary: Add Puppet features to Foreman
405
407
  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
408
+ - test/unit/foreman_puppet_test.rb
409
+ - test/unit/foreman_puppet/puppet_class_importer_test.rb
410
+ - test/unit/foreman_puppet/template_rendering_test.rb
411
+ - test/unit/foreman_puppet/access_permissions_test.rb
412
+ - test/helpers/foreman_puppet/puppetclass_lookup_keys_helper_test.rb
413
+ - test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
414
+ - test/helpers/foreman_puppet/puppetclasses_helper_test.rb
415
+ - test/integration/foreman_puppet/dashboard_js_test.rb
416
+ - test/integration/foreman_puppet/host_js_test.rb
417
+ - test/integration/foreman_puppet/hostgroup_js_test.rb
410
418
  - test/integration/foreman_puppet/smartclass_parameter_js_test.rb
411
419
  - test/integration/foreman_puppet/puppetclass_js_test.rb
412
- - test/integration/foreman_puppet/hostgroup_js_test.rb
413
420
  - 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
421
+ - test/factories/foreman_puppet_factories.rb
422
+ - test/factories/host_puppet_enhancements.rb
423
+ - test/factories/proxy_puppet_enhancements.rb
432
424
  - test/models/foreman_puppet/config_group_test.rb
433
- - test/models/foreman_puppet/puppetclass_test.rb
425
+ - test/models/foreman_puppet/report_test.rb
434
426
  - test/models/foreman_puppet/host_puppet_facet_test.rb
427
+ - test/models/foreman_puppet/host_test.rb
428
+ - test/models/foreman_puppet/user_test.rb
429
+ - test/models/foreman_puppet/provisioning_template_test.rb
435
430
  - test/models/foreman_puppet/host_config_group_test.rb
436
431
  - test/models/foreman_puppet/lookup_value_test.rb
437
- - test/models/foreman_puppet/host_test.rb
432
+ - test/models/foreman_puppet/hostgroup_test.rb
438
433
  - test/models/foreman_puppet/hostgroup_puppet_facet_test.rb
439
- - test/models/foreman_puppet/smart_proxy_test.rb
434
+ - test/models/foreman_puppet/puppetclass_lookup_key_test.rb
440
435
  - 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
436
+ - test/models/foreman_puppet/puppetclass_test.rb
437
+ - test/models/foreman_puppet/config_group_class_test.rb
438
+ - test/models/foreman_puppet/smart_proxy_test.rb
439
+ - test/graphql/queries/hostgroup_puppet_query_test.rb
440
+ - test/graphql/queries/puppetclass_query_test.rb
441
+ - test/graphql/queries/location_query_test.rb
442
+ - test/graphql/queries/organization_query_test.rb
443
+ - test/graphql/queries/puppetclasses_query_test.rb
444
+ - test/graphql/queries/environment_query_test.rb
445
+ - test/graphql/queries/environments_query_test.rb
446
+ - test/graphql/queries/host_puppet_query_test.rb
447
+ - test/graphql/mutations/hosts/create_mutation_test.rb
450
448
  - test/test_puppet_helper.rb
449
+ - test/controllers/provisioning_templates_controller_test.rb
450
+ - test/controllers/foreman_puppet/hostgroups_controller_test.rb
451
+ - test/controllers/foreman_puppet/puppetclass_lookup_keys_controller_test.rb
451
452
  - test/controllers/foreman_puppet/environments_controller_test.rb
452
453
  - 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
454
+ - test/controllers/foreman_puppet/hosts_controller_test.rb
456
455
  - test/controllers/foreman_puppet/api/v2/template_combinations_controller_test.rb
456
+ - test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb
457
+ - test/controllers/foreman_puppet/api/v2/host_classes_controller_test.rb
458
+ - test/controllers/foreman_puppet/api/v2/hostgroups_controller_test.rb
459
+ - test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb
457
460
  - test/controllers/foreman_puppet/api/v2/environments_controller_test.rb
461
+ - test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb
458
462
  - test/controllers/foreman_puppet/api/v2/hostgroup_classes_controller_test.rb
463
+ - test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb
464
+ - test/controllers/foreman_puppet/api/v2/smart_proxies_controller_test.rb
459
465
  - 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
466
  - 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
467
  - 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
468
  - 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
469
+ - test/controllers/foreman_puppet/config_groups_controller_test.rb
470
+ - test/services/foreman_puppet/input_type/puppet_parameter_input_test.rb
471
+ - test/services/foreman_puppet/host_counter_test.rb
472
+ - test/services/foreman_puppet/host_info_providers/config_groups_info_test.rb
473
+ - 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>