foreman_puppet 6.3.0 → 6.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/concerns/foreman_puppet/extensions/api_v2_registration_controller_extensions.rb +21 -0
- data/app/models/concerns/foreman_puppet/extensions/host_common.rb +1 -2
- data/lib/foreman_puppet/engine.rb +1 -0
- data/lib/foreman_puppet/version.rb +1 -1
- data/locale/en/foreman_puppet.edit.po +0 -1146
- data/test/models/foreman_puppet/host_test.rb +12 -0
- data/test/models/foreman_puppet/hostgroup_test.rb +12 -0
- data/webpack/src/foreman_class_edit.js +2 -2
- data/webpack/src/foreman_puppet_host_form.js +1 -1
- data/webpack/src/foreman_puppet_host_form.test.js +3 -4
- metadata +63 -99
- data/locale/ca/foreman_puppet.edit.po +0 -1150
- data/locale/ca/foreman_puppet.po.time_stamp +0 -0
- data/locale/cs_CZ/foreman_puppet.edit.po +0 -1155
- data/locale/cs_CZ/foreman_puppet.po.time_stamp +0 -0
- data/locale/de/foreman_puppet.edit.po +0 -1177
- data/locale/de/foreman_puppet.po.time_stamp +0 -0
- data/locale/en/foreman_puppet.po.time_stamp +0 -0
- data/locale/en_GB/foreman_puppet.edit.po +0 -1152
- data/locale/en_GB/foreman_puppet.po.time_stamp +0 -0
- data/locale/es/foreman_puppet.edit.po +0 -1161
- data/locale/es/foreman_puppet.po.time_stamp +0 -0
- data/locale/fr/foreman_puppet.edit.po +0 -1170
- data/locale/fr/foreman_puppet.po.time_stamp +0 -0
- data/locale/gl/foreman_puppet.edit.po +0 -1150
- data/locale/gl/foreman_puppet.po.time_stamp +0 -0
- data/locale/it/foreman_puppet.edit.po +0 -1155
- data/locale/it/foreman_puppet.po.time_stamp +0 -0
- data/locale/ja/foreman_puppet.edit.po +0 -1162
- data/locale/ja/foreman_puppet.po.time_stamp +0 -0
- data/locale/ka/foreman_puppet.edit.po +0 -1160
- data/locale/ka/foreman_puppet.po.time_stamp +0 -0
- data/locale/ko/foreman_puppet.edit.po +0 -1151
- data/locale/ko/foreman_puppet.po.time_stamp +0 -0
- data/locale/nl_NL/foreman_puppet.edit.po +0 -1155
- data/locale/nl_NL/foreman_puppet.po.time_stamp +0 -0
- data/locale/pl/foreman_puppet.edit.po +0 -1154
- data/locale/pl/foreman_puppet.po.time_stamp +0 -0
- data/locale/pt_BR/foreman_puppet.edit.po +0 -1159
- data/locale/pt_BR/foreman_puppet.po.time_stamp +0 -0
- data/locale/ru/foreman_puppet.edit.po +0 -1159
- data/locale/ru/foreman_puppet.po.time_stamp +0 -0
- data/locale/sv_SE/foreman_puppet.edit.po +0 -1154
- data/locale/sv_SE/foreman_puppet.po.time_stamp +0 -0
- data/locale/zh_CN/foreman_puppet.edit.po +0 -1163
- data/locale/zh_CN/foreman_puppet.po.time_stamp +0 -0
- data/locale/zh_TW/foreman_puppet.edit.po +0 -1153
- data/locale/zh_TW/foreman_puppet.po.time_stamp +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d63691d998c91ff4d8b69d038ac37c63e5bdc657e895d97ae88f6832417b9434
|
4
|
+
data.tar.gz: 530b34760965f3d259f63546b952d97952b7a1277d6b38b6bc5a3b0065f7ab15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18b306ec3e92e0579f7671b9194a37c90f28c1293a16b51ce7feb9ba3402a13fdfe384c616e8371446195140a2524343ef6d03336691f4aa92844298bcf01cd6
|
7
|
+
data.tar.gz: 92863444989b2a6f74e9bd49fbd6c6bee13db7f660ddc4dd744e45e9d91249cd2636c8e1f2498ba3b9fb73c4da3d32b959b4e87bc7b2b231e05ab3d89389b26a
|
data/app/controllers/concerns/foreman_puppet/extensions/api_v2_registration_controller_extensions.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
module ForemanPuppet
|
2
|
+
module Extensions
|
3
|
+
module ApiV2RegistrationControllerExtensions
|
4
|
+
extend ActiveSupport::Concern
|
5
|
+
|
6
|
+
def host_setup_extension
|
7
|
+
if @host.hostgroup.present?
|
8
|
+
@host.puppet_proxy_id = @host.hostgroup.puppet_proxy_id if @host.puppet_proxy_id.nil? && @host.hostgroup.puppet_proxy_id.present?
|
9
|
+
@host.puppet_ca_proxy_id = @host.hostgroup.puppet_ca_proxy_id if @host.puppet_ca_proxy_id.nil? && @host.hostgroup.puppet_ca_proxy_id.present?
|
10
|
+
|
11
|
+
if @host.puppet.nil? && @host.hostgroup.puppet&.environment.present?
|
12
|
+
puppet = @host.puppet || @host.build_puppet
|
13
|
+
puppet.environment = @host.hostgroup.puppet&.environment
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
super
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -54,6 +54,7 @@ module ForemanPuppet
|
|
54
54
|
|
55
55
|
::Api::V2::BaseController.include ForemanPuppet::Extensions::ApiBaseController
|
56
56
|
::Api::V2::HostsController.include ForemanPuppet::Extensions::ApiV2HostsController
|
57
|
+
::Api::V2::RegistrationController.prepend ForemanPuppet::Extensions::ApiV2RegistrationControllerExtensions
|
57
58
|
::Api::V2::HostgroupsController.include ForemanPuppet::Extensions::ApiHostgroupsController
|
58
59
|
::Api::V2::TemplateCombinationsController.include ForemanPuppet::Extensions::ApiTemplateCombinationsController
|
59
60
|
::Api::V2::HostsController.include ForemanPuppet::Extensions::ParametersHost
|