foreman_puppet 3.0.5 → 4.0.1

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/README.md +2 -1
  3. data/db/migrate/20220421204325_drop_environment_from_host_and_hg.foreman_puppet.rb +8 -0
  4. data/lib/foreman_puppet/register.rb +4 -4
  5. data/lib/foreman_puppet/version.rb +1 -1
  6. data/locale/ca/foreman_puppet.edit.po +237 -111
  7. data/locale/cs_CZ/foreman_puppet.edit.po +213 -105
  8. data/locale/de/foreman_puppet.edit.po +326 -148
  9. data/locale/en/foreman_puppet.edit.po +80 -172
  10. data/locale/en_GB/foreman_puppet.edit.po +200 -100
  11. data/locale/es/foreman_puppet.edit.po +304 -133
  12. data/locale/fr/foreman_puppet.edit.po +313 -135
  13. data/locale/gl/foreman_puppet.edit.po +210 -102
  14. data/locale/it/foreman_puppet.edit.po +250 -116
  15. data/locale/ja/foreman_puppet.edit.po +223 -107
  16. data/locale/ko/foreman_puppet.edit.po +202 -101
  17. data/locale/messages.mo +0 -0
  18. data/locale/nl_NL/foreman_puppet.edit.po +243 -115
  19. data/locale/pl/foreman_puppet.edit.po +260 -121
  20. data/locale/pt_BR/foreman_puppet.edit.po +317 -139
  21. data/locale/ru/foreman_puppet.edit.po +258 -122
  22. data/locale/sv_SE/foreman_puppet.edit.po +209 -103
  23. data/locale/zh_CN/foreman_puppet.edit.po +209 -105
  24. data/locale/zh_TW/foreman_puppet.edit.po +202 -103
  25. data/package.json +7 -7
  26. data/test/controllers/foreman_puppet/api/v2/override_values_controller_test.rb +6 -2
  27. data/test/models/foreman_puppet/host_test.rb +6 -0
  28. data/webpack/global_index.js +11 -0
  29. data/webpack/index.js +0 -7
  30. data/webpack/legacy.js +31 -0
  31. data/webpack/src/Extends/Fills/index.js +26 -0
  32. data/webpack/src/Extends/Host/PuppetTab/Routes.js +47 -0
  33. data/webpack/src/Extends/Host/PuppetTab/SubTabs/ENCPreview/ENCTab.js +61 -0
  34. data/webpack/src/Extends/Host/PuppetTab/SubTabs/ENCPreview/index.js +53 -0
  35. data/webpack/src/Extends/Host/PuppetTab/SubTabs/EmptyPage.js +19 -0
  36. data/webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/components/DescriptionCard.js +71 -0
  37. data/webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/index.js +45 -0
  38. data/webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/styles.scss +7 -0
  39. data/webpack/src/Extends/Host/PuppetTab/constants.js +8 -0
  40. data/webpack/src/Extends/Host/PuppetTab/helpers.js +3 -0
  41. data/webpack/src/Extends/Host/PuppetTab/index.js +51 -0
  42. metadata +67 -55
  43. data/app/views/smart_proxies/plugins/_puppet_ca.html.erb +0 -44
  44. data/webpack/fills_index.js +0 -30
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25b2f6bd5e3a5584877b9859100eebbc09f4b91a1e975178b59878498a80a726
4
- data.tar.gz: 2cd590159bc28a198036337042bca134e2fd835024738ff91cf395104eede2cd
3
+ metadata.gz: f9b85d7949eb3fc600be28a75d652d3945cb37f41e1f78d3f9ea607ce58f54e8
4
+ data.tar.gz: '087e0a820caf4656d82c687c39696fb08fdc1fecca8cf305a8d78d3cbda50137'
5
5
  SHA512:
6
- metadata.gz: 3df21f43e55f052a3e04a125d55e754db68a826e9354988eb5fe22eb6412577dd512e8218353b9deb735143db9535423ea0656cbb8b7cfb1e4e6004a1fd985d8
7
- data.tar.gz: ef0a5f675a55cb0691fa0485e8adf68def250b385485bb10fc9cd98ed31bd8de12a2d06fb24f260a976c28f1af3c384aeacf8b07c9372e96a5314613ab5aed93
6
+ metadata.gz: '078f8509685aef37991c64e86aa3578e63ba03adf5d26c9d825de30954450895768101944fcb6e2328e6ed71f37fea1b9f907825e392f6cf932090ef5b3419f5'
7
+ data.tar.gz: f1226b5e4974c139ec1d5206941e1e420387356836b3497cd63052fc5e563c355d9ada7595881b99e4241b02bad5b8af272c15c944de9eeaf9978c5e847ce79d
data/README.md CHANGED
@@ -37,6 +37,7 @@ You can install it on Foreman 2.5 to prepare for the Foreman update.
37
37
 
38
38
  |Foreman version|Plugin version|Notes |
39
39
  |---------------|--------------|------------------------------------------|
40
+ | >= 3.3 | ~> 4.0 | Required |
40
41
  | >= 3.2 | ~> 3.0 | Required |
41
42
  | ~> 3.1 | ~> 2.0 | Required |
42
43
  | ~> 3.0 | ~> 1.0 | Required |
@@ -78,7 +79,7 @@ Fork and send a Pull Request. Thanks!
78
79
 
79
80
  ## Copyright
80
81
 
81
- Copyright (c) *2021* *The Foreman developers*
82
+ Copyright (c) *2022* *The Foreman developers*
82
83
 
83
84
  This program is free software: you can redistribute it and/or modify
84
85
  it under the terms of the GNU General Public License as published by
@@ -0,0 +1,8 @@
1
+ class DropEnvironmentFromHostAndHg < ActiveRecord::Migration[6.0]
2
+ def up
3
+ remove_column(:hostgroups, :environment_id) if column_exists?(:hostgroups, :environment_id)
4
+ remove_column(:hosts, :environment_id) if column_exists?(:hosts, :environment_id)
5
+ end
6
+
7
+ # This is just to clean up core, we do not want to add the columns again on uninstall
8
+ end
@@ -1,7 +1,7 @@
1
1
  Foreman::Plugin.register :foreman_puppet do
2
- requires_foreman '>= 3.0.0'
2
+ requires_foreman '>= 3.3.0'
3
3
  # Add Global JS file for extending foreman-core components and routes
4
- register_global_js_file 'fills'
4
+ register_global_js_file 'global'
5
5
 
6
6
  settings do
7
7
  category(:facts, N_('Facts')) do
@@ -145,7 +145,8 @@ Foreman::Plugin.register :foreman_puppet do
145
145
  'foreman_puppet/api/v2/puppetclasses' => [:destroy] },
146
146
  resource_type: 'ForemanPuppet::Puppetclass'
147
147
  permission :import_puppetclasses, { 'foreman_puppet/puppetclasses' => %i[import_environments obsolete_and_new],
148
- 'foreman_puppet/api/v2/environments' => [:import_puppetclasses] },
148
+ 'foreman_puppet/api/v2/environments' => [:import_puppetclasses],
149
+ 'api/v2/smart_proxies' => [:import_puppetclasses] },
149
150
  resource_type: 'ForemanPuppet::Puppetclass'
150
151
  permission :edit_classes, { :host_editing => [:edit_classes],
151
152
  'foreman_puppet/api/v2/host_classes' => %i[index create destroy] },
@@ -153,7 +154,6 @@ Foreman::Plugin.register :foreman_puppet do
153
154
  end
154
155
 
155
156
  add_all_permissions_to_default_roles
156
- Foreman::Plugin::RbacSupport::AUTO_EXTENDED_ROLES |= ['Site manager']
157
157
  add_permissions_to_default_roles(
158
158
  'Site manager' => %w[view_puppetclasses import_puppetclasses view_environments import_environments
159
159
  view_external_parameters create_external_parameters edit_external_parameters destroy_external_parameters]
@@ -1,3 +1,3 @@
1
1
  module ForemanPuppet
2
- VERSION = '3.0.5'.freeze
2
+ VERSION = '4.0.1'.freeze
3
3
  end