foreman_puppet 3.0.5 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/db/migrate/20220421204325_drop_environment_from_host_and_hg.foreman_puppet.rb +8 -0
- data/lib/foreman_puppet/register.rb +4 -4
- data/lib/foreman_puppet/version.rb +1 -1
- data/locale/ca/foreman_puppet.edit.po +237 -111
- data/locale/cs_CZ/foreman_puppet.edit.po +213 -105
- data/locale/de/foreman_puppet.edit.po +326 -148
- data/locale/en/foreman_puppet.edit.po +80 -172
- data/locale/en_GB/foreman_puppet.edit.po +200 -100
- data/locale/es/foreman_puppet.edit.po +304 -133
- data/locale/fr/foreman_puppet.edit.po +313 -135
- data/locale/gl/foreman_puppet.edit.po +210 -102
- data/locale/it/foreman_puppet.edit.po +250 -116
- data/locale/ja/foreman_puppet.edit.po +223 -107
- data/locale/ko/foreman_puppet.edit.po +202 -101
- data/locale/messages.mo +0 -0
- data/locale/nl_NL/foreman_puppet.edit.po +243 -115
- data/locale/pl/foreman_puppet.edit.po +260 -121
- data/locale/pt_BR/foreman_puppet.edit.po +317 -139
- data/locale/ru/foreman_puppet.edit.po +258 -122
- data/locale/sv_SE/foreman_puppet.edit.po +209 -103
- data/locale/zh_CN/foreman_puppet.edit.po +209 -105
- data/locale/zh_TW/foreman_puppet.edit.po +202 -103
- data/package.json +7 -7
- data/test/controllers/foreman_puppet/api/v2/override_values_controller_test.rb +6 -2
- data/test/models/foreman_puppet/host_test.rb +6 -0
- data/webpack/global_index.js +11 -0
- data/webpack/index.js +0 -7
- data/webpack/legacy.js +31 -0
- data/webpack/src/Extends/Fills/index.js +26 -0
- data/webpack/src/Extends/Host/PuppetTab/Routes.js +47 -0
- data/webpack/src/Extends/Host/PuppetTab/SubTabs/ENCPreview/ENCTab.js +61 -0
- data/webpack/src/Extends/Host/PuppetTab/SubTabs/ENCPreview/index.js +53 -0
- data/webpack/src/Extends/Host/PuppetTab/SubTabs/EmptyPage.js +19 -0
- data/webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/components/DescriptionCard.js +71 -0
- data/webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/index.js +45 -0
- data/webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/styles.scss +7 -0
- data/webpack/src/Extends/Host/PuppetTab/constants.js +8 -0
- data/webpack/src/Extends/Host/PuppetTab/helpers.js +3 -0
- data/webpack/src/Extends/Host/PuppetTab/index.js +51 -0
- metadata +67 -55
- data/app/views/smart_proxies/plugins/_puppet_ca.html.erb +0 -44
- data/webpack/fills_index.js +0 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9b85d7949eb3fc600be28a75d652d3945cb37f41e1f78d3f9ea607ce58f54e8
|
4
|
+
data.tar.gz: '087e0a820caf4656d82c687c39696fb08fdc1fecca8cf305a8d78d3cbda50137'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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) *
|
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.
|
2
|
+
requires_foreman '>= 3.3.0'
|
3
3
|
# Add Global JS file for extending foreman-core components and routes
|
4
|
-
register_global_js_file '
|
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]
|