foreman_puppet 1.0.5 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -1
  3. data/app/controllers/concerns/foreman_puppet/extensions/api_hostgroups_controller.rb +14 -16
  4. data/app/controllers/concerns/foreman_puppet/{api/import_puppetclasses_common_controller.rb → extensions/api_smart_proxies_controller.rb} +16 -5
  5. data/app/controllers/concerns/foreman_puppet/extensions/api_template_combinations_controller.rb +23 -1
  6. data/app/controllers/concerns/foreman_puppet/extensions/api_v2_hosts_controller.rb +15 -17
  7. data/app/controllers/concerns/foreman_puppet/extensions/hosts_controller_extensions.rb +0 -1
  8. data/app/controllers/concerns/foreman_puppet/extensions/parameters_hostgroup.rb +2 -8
  9. data/app/controllers/foreman_puppet/api/v2/environments_controller.rb +0 -1
  10. data/app/controllers/foreman_puppet/api/v2/hostgroup_classes_controller.rb +1 -1
  11. data/app/controllers/foreman_puppet/puppetclasses_controller.rb +1 -1
  12. data/app/helpers/foreman_puppet/environments_helper.rb +1 -1
  13. data/app/helpers/foreman_puppet/hosts_and_hostgroups_helper.rb +0 -5
  14. data/app/helpers/foreman_puppet/hosts_helper.rb +6 -10
  15. data/app/models/concerns/foreman_puppet/extensions/host.rb +2 -16
  16. data/app/models/concerns/foreman_puppet/extensions/hostgroup.rb +2 -7
  17. data/app/models/concerns/foreman_puppet/extensions/provisioning_template.rb +7 -12
  18. data/app/models/concerns/foreman_puppet/extensions/template_combination.rb +5 -10
  19. data/app/services/foreman_puppet/puppet_class_importer.rb +0 -6
  20. data/app/views/foreman_puppet/api/v2/host_puppet_facets/host_list.json.rabl +3 -0
  21. data/app/views/foreman_puppet/api/v2/hostgroup_puppet_facets/base.json.rabl +2 -0
  22. data/app/views/foreman_puppet/api/v2/hostgroup_puppet_facets/hostgroup_list.json.rabl +3 -0
  23. data/app/views/foreman_puppet/config_groups/_config_group.html.erb +5 -1
  24. data/app/views/foreman_puppet/config_groups/index.html.erb +1 -1
  25. data/config/api_routes.rb +1 -9
  26. data/config/initializers/api_reroute.rb +73 -5
  27. data/db/migrate/20101121140000_add_environment_to_template_combinations.foreman_puppet.rb +1 -1
  28. data/db/migrate/20200803113803_migrate_environment_to_puppet_facet.foreman_puppet.rb +2 -0
  29. data/db/migrate/20201125113903_migrate_puppetclasses_to_facets.foreman_puppet.rb +0 -8
  30. data/db/migrate/20210924103241_remove_katello_id_from_environments.foreman_puppet.rb +5 -0
  31. data/db/migrate/20211111125003_drop_puppetclasses_direct_references.foreman_puppet.rb +11 -0
  32. data/db/migrate_foreman/{20090722141107_create_environments.rb → 20090722141107_create_environments.foreman_puppet.rb} +3 -3
  33. data/db/migrate_foreman/20090802062223_create_puppetclasses.foreman_puppet.rb +29 -0
  34. data/db/migrate_foreman/20090905150132_create_hostgroups_puppetclasses.foreman_puppet.rb +12 -0
  35. data/db/migrate_foreman/20110412103238_remove_unused_fields_from_puppet_classes.foreman_puppet.rb +9 -0
  36. data/db/migrate_foreman/20110712070522_create_host_class.foreman_puppet.rb +11 -0
  37. data/db/migrate_foreman/20120824142048_add_some_indexes.foreman_puppet.rb +21 -0
  38. data/db/migrate_foreman/{20120905095532_create_environment_classes.rb → 20120905095532_create_environment_classes.foreman_puppet.rb} +2 -2
  39. data/db/migrate_foreman/20121018152459_create_hostgroup_classes.foreman_puppet.rb +11 -0
  40. data/db/migrate_foreman/{20140407161817_create_config_groups.rb → 20140407161817_create_config_groups.foreman_puppet.rb} +0 -0
  41. data/db/migrate_foreman/{20140407162007_create_config_group_classes.rb → 20140407162007_create_config_group_classes.foreman_puppet.rb} +0 -0
  42. data/db/migrate_foreman/{20140407162059_create_host_config_groups.rb → 20140407162059_create_host_config_groups.foreman_puppet.rb} +0 -0
  43. data/db/migrate_foreman/{20161205142618_delete_orphaned_smart_class_parameters.rb → 20161205142618_delete_orphaned_smart_class_parameters.foreman_puppet.rb} +1 -1
  44. data/db/migrate_foreman/{20170109115157_fix_lookup_key_auditable_type.rb → 20170109115157_fix_lookup_key_auditable_type.foreman_puppet.rb} +0 -0
  45. data/db/migrate_foreman/20180816134832_cast_lookup_key_values.foreman_puppet.rb +5 -0
  46. data/db/migrate_foreman/20180831115634_add_uniqueness_to_puppetclass_name.foreman_puppet.rb +24 -0
  47. data/db/migrate_foreman/{20181023112532_add_environment_puppetclass_id.rb → 20181023112532_add_environment_puppetclass_id.foreman_puppet.rb} +1 -1
  48. data/db/migrate_foreman/{20181224174419_add_index_to_environment_class_by_lookup_key_and_puppetclass.rb → 20181224174419_add_index_to_environment_class_by_lookup_key_and_puppetclass.foreman_puppet.rb} +0 -0
  49. data/lib/foreman_puppet/engine.rb +4 -36
  50. data/lib/foreman_puppet/register.rb +49 -45
  51. data/lib/foreman_puppet/version.rb +1 -1
  52. data/lib/foreman_puppet.rb +1 -6
  53. data/locale/ca/LC_MESSAGES/foreman_puppet.mo +0 -0
  54. data/locale/ca/foreman_puppet.po +760 -0
  55. data/locale/cs_CZ/LC_MESSAGES/foreman_puppet.mo +0 -0
  56. data/locale/cs_CZ/foreman_puppet.po +823 -0
  57. data/locale/de/LC_MESSAGES/foreman_puppet.mo +0 -0
  58. data/locale/de/foreman_puppet.po +844 -0
  59. data/locale/en/LC_MESSAGES/foreman_puppet.mo +0 -0
  60. data/locale/en/foreman_puppet.po +119 -8
  61. data/locale/en_GB/LC_MESSAGES/foreman_puppet.mo +0 -0
  62. data/locale/en_GB/foreman_puppet.po +820 -0
  63. data/locale/es/LC_MESSAGES/foreman_puppet.mo +0 -0
  64. data/locale/es/foreman_puppet.po +827 -0
  65. data/locale/foreman_puppet.pot +376 -205
  66. data/locale/fr/LC_MESSAGES/foreman_puppet.mo +0 -0
  67. data/locale/fr/foreman_puppet.po +835 -0
  68. data/locale/gemspec.rb +1 -1
  69. data/locale/gl/LC_MESSAGES/foreman_puppet.mo +0 -0
  70. data/locale/gl/foreman_puppet.po +818 -0
  71. data/locale/it/LC_MESSAGES/foreman_puppet.mo +0 -0
  72. data/locale/it/foreman_puppet.po +822 -0
  73. data/locale/ja/LC_MESSAGES/foreman_puppet.mo +0 -0
  74. data/locale/ja/foreman_puppet.po +830 -0
  75. data/locale/ko/LC_MESSAGES/foreman_puppet.mo +0 -0
  76. data/locale/ko/foreman_puppet.po +819 -0
  77. data/locale/nl_NL/LC_MESSAGES/foreman_puppet.mo +0 -0
  78. data/locale/nl_NL/foreman_puppet.po +823 -0
  79. data/locale/pl/LC_MESSAGES/foreman_puppet.mo +0 -0
  80. data/locale/pl/foreman_puppet.po +822 -0
  81. data/locale/pt_BR/LC_MESSAGES/foreman_puppet.mo +0 -0
  82. data/locale/pt_BR/foreman_puppet.po +826 -0
  83. data/locale/ru/LC_MESSAGES/foreman_puppet.mo +0 -0
  84. data/locale/ru/foreman_puppet.po +827 -0
  85. data/locale/sv_SE/LC_MESSAGES/foreman_puppet.mo +0 -0
  86. data/locale/sv_SE/foreman_puppet.po +822 -0
  87. data/locale/zh_CN/LC_MESSAGES/foreman_puppet.mo +0 -0
  88. data/locale/zh_CN/foreman_puppet.po +831 -0
  89. data/locale/zh_TW/LC_MESSAGES/foreman_puppet.mo +0 -0
  90. data/locale/zh_TW/foreman_puppet.po +821 -0
  91. data/package.json +8 -11
  92. data/test/controllers/foreman_puppet/api/v2/environments_controller_test.rb +24 -249
  93. data/test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb +2 -2
  94. data/test/controllers/foreman_puppet/api/v2/smart_proxies_controller_test.rb +255 -0
  95. data/test/controllers/foreman_puppet/environments_controller_test.rb +3 -3
  96. data/test/controllers/foreman_puppet/hosts_controller_test.rb +0 -1
  97. data/test/factories/foreman_puppet_factories.rb +0 -2
  98. data/test/graphql/queries/environment_query_test.rb +4 -4
  99. data/test/graphql/queries/puppetclass_query_test.rb +4 -4
  100. data/test/integration/foreman_puppet/dashboard_js_test.rb +30 -0
  101. data/test/integration/foreman_puppet/environment_js_test.rb +1 -2
  102. data/test/integration/foreman_puppet/host_js_test.rb +17 -19
  103. data/test/integration/foreman_puppet/hostgroup_js_test.rb +1 -2
  104. data/test/integration/foreman_puppet/puppetclass_js_test.rb +2 -3
  105. data/test/integration/foreman_puppet/smartclass_parameter_js_test.rb +1 -2
  106. data/test/integration_puppet_helper.rb +3 -0
  107. data/test/models/foreman_puppet/host_puppet_facet_test.rb +2 -2
  108. data/test/models/foreman_puppet/host_test.rb +48 -22
  109. data/test/models/foreman_puppet/provisioning_template_test.rb +3 -3
  110. data/test/models/foreman_puppet/puppetclass_test.rb +1 -1
  111. data/test/models/foreman_puppet/user_test.rb +1 -5
  112. data/test/services/foreman_puppet/host_info_providers/config_groups_info_test.rb +1 -1
  113. data/test/services/foreman_puppet/host_info_providers/puppet_info_test.rb +3 -3
  114. data/test/unit/foreman_puppet/puppet_class_importer_test.rb +1 -1
  115. data/test/unit/foreman_puppet/template_rendering_test.rb +1 -1
  116. metadata +66 -15
  117. data/db/migrate_foreman/20180816134832_cast_lookup_key_values.rb +0 -35
data/locale/gemspec.rb CHANGED
@@ -1,2 +1,2 @@
1
1
  # Matches foreman_puppet_enc.gemspec
2
- _('Allow assigning Puppet environmets and classes to the Foreman Hosts.')
2
+ _('Allow assigning Puppet environments and classes to the Foreman Hosts.')