foreman_puppet 2.0.3 → 3.0.3
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 +3 -1
- data/app/controllers/concerns/foreman_puppet/extensions/api_smart_proxies_controller.rb +7 -2
- data/app/controllers/concerns/foreman_puppet/extensions/hosts_controller_extensions.rb +1 -1
- data/app/models/concerns/foreman_puppet/extensions/provisioning_template.rb +1 -1
- data/app/services/foreman_puppet/host_info_providers/puppet_info.rb +1 -1
- data/app/views/foreman_puppet/config_groups/_config_group.html.erb +5 -1
- data/app/views/hosts/_form_puppet_enc_tab.html.erb +5 -4
- data/lib/foreman_puppet/version.rb +1 -1
- data/locale/ca/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/ca/foreman_puppet.edit.po +1095 -0
- data/locale/ca/foreman_puppet.po +70 -1
- data/locale/ca/foreman_puppet.po.time_stamp +0 -0
- data/locale/cs_CZ/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/cs_CZ/foreman_puppet.edit.po +199 -184
- data/locale/cs_CZ/foreman_puppet.po +13 -2
- data/locale/de/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/de/foreman_puppet.edit.po +1122 -0
- data/locale/de/foreman_puppet.po +25 -13
- data/locale/de/foreman_puppet.po.time_stamp +0 -0
- data/locale/en/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/en/foreman_puppet.edit.po +33 -25
- data/locale/en/foreman_puppet.po +13 -1
- data/locale/en_GB/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/en_GB/foreman_puppet.edit.po +1097 -0
- data/locale/en_GB/foreman_puppet.po +13 -2
- data/locale/en_GB/foreman_puppet.po.time_stamp +0 -0
- data/locale/es/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/es/foreman_puppet.edit.po +1104 -0
- data/locale/es/foreman_puppet.po +13 -2
- data/locale/es/foreman_puppet.po.time_stamp +0 -0
- data/locale/foreman_puppet.pot +48 -25
- data/locale/fr/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/fr/foreman_puppet.edit.po +1112 -0
- data/locale/fr/foreman_puppet.po +13 -2
- data/locale/fr/foreman_puppet.po.time_stamp +0 -0
- data/locale/gl/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/gl/foreman_puppet.edit.po +1095 -0
- data/locale/gl/foreman_puppet.po +13 -2
- data/locale/gl/foreman_puppet.po.time_stamp +0 -0
- data/locale/it/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/it/foreman_puppet.edit.po +1099 -0
- data/locale/it/foreman_puppet.po +13 -2
- data/locale/it/foreman_puppet.po.time_stamp +0 -0
- data/locale/ja/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/ja/foreman_puppet.edit.po +1107 -0
- data/locale/ja/foreman_puppet.po +15 -4
- data/locale/ja/foreman_puppet.po.time_stamp +0 -0
- data/locale/ko/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/ko/foreman_puppet.edit.po +1096 -0
- data/locale/ko/foreman_puppet.po +13 -2
- data/locale/ko/foreman_puppet.po.time_stamp +0 -0
- data/locale/nl_NL/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/nl_NL/foreman_puppet.edit.po +1100 -0
- data/locale/nl_NL/foreman_puppet.po +13 -2
- data/locale/nl_NL/foreman_puppet.po.time_stamp +0 -0
- data/locale/pl/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/pl/foreman_puppet.edit.po +1099 -0
- data/locale/pl/foreman_puppet.po +13 -2
- data/locale/pl/foreman_puppet.po.time_stamp +0 -0
- data/locale/pt_BR/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/pt_BR/foreman_puppet.edit.po +1103 -0
- data/locale/pt_BR/foreman_puppet.po +13 -2
- data/locale/pt_BR/foreman_puppet.po.time_stamp +0 -0
- data/locale/ru/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/ru/foreman_puppet.edit.po +1104 -0
- data/locale/ru/foreman_puppet.po +15 -4
- data/locale/ru/foreman_puppet.po.time_stamp +0 -0
- data/locale/sv_SE/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/sv_SE/foreman_puppet.edit.po +1099 -0
- data/locale/sv_SE/foreman_puppet.po +13 -2
- data/locale/sv_SE/foreman_puppet.po.time_stamp +0 -0
- data/locale/zh_CN/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/zh_CN/foreman_puppet.edit.po +1108 -0
- data/locale/zh_CN/foreman_puppet.po +16 -5
- data/locale/zh_CN/foreman_puppet.po.time_stamp +0 -0
- data/locale/zh_TW/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/zh_TW/foreman_puppet.edit.po +1098 -0
- data/locale/zh_TW/foreman_puppet.po +13 -2
- data/locale/zh_TW/foreman_puppet.po.time_stamp +0 -0
- data/test/controllers/foreman_puppet/api/v2/environments_controller_test.rb +24 -18
- data/test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb +10 -0
- data/test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb +2 -2
- data/test/controllers/foreman_puppet/environments_controller_test.rb +1 -1
- data/test/controllers/foreman_puppet/hosts_controller_test.rb +4 -27
- data/test/graphql/queries/environment_query_test.rb +4 -4
- data/test/graphql/queries/puppetclass_query_test.rb +4 -4
- data/test/integration/foreman_puppet/dashboard_js_test.rb +1 -2
- data/test/integration/foreman_puppet/environment_js_test.rb +1 -2
- data/test/integration/foreman_puppet/host_js_test.rb +31 -27
- data/test/integration/foreman_puppet/hostgroup_js_test.rb +1 -2
- data/test/integration/foreman_puppet/puppetclass_js_test.rb +1 -2
- data/test/integration/foreman_puppet/smartclass_parameter_js_test.rb +1 -2
- data/test/integration_puppet_helper.rb +3 -0
- data/test/models/foreman_puppet/host_puppet_facet_test.rb +13 -2
- data/test/models/foreman_puppet/host_test.rb +22 -22
- data/test/models/foreman_puppet/provisioning_template_test.rb +3 -3
- data/test/models/foreman_puppet/puppetclass_test.rb +1 -1
- data/test/services/foreman_puppet/host_info_providers/config_groups_info_test.rb +1 -1
- data/test/services/foreman_puppet/host_info_providers/puppet_info_test.rb +3 -3
- data/test/unit/foreman_puppet/template_rendering_test.rb +1 -1
- metadata +36 -2
|
@@ -98,7 +98,7 @@ module ForemanPuppet
|
|
|
98
98
|
puppetclass: puppetclass)
|
|
99
99
|
|
|
100
100
|
enc = HostInfoProviders::PuppetInfo.new(@host).puppetclass_parameters
|
|
101
|
-
|
|
101
|
+
assert_nil enc[puppetclass.name][lkey.key]
|
|
102
102
|
end
|
|
103
103
|
|
|
104
104
|
test '#enc should not return class parameters when lookup_value should use puppet default' do
|
|
@@ -113,7 +113,7 @@ module ForemanPuppet
|
|
|
113
113
|
|
|
114
114
|
enc = HostInfoProviders::PuppetInfo.new(@host).puppetclass_parameters
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
assert_nil enc[puppetclass.name][lkey.key]
|
|
117
117
|
end
|
|
118
118
|
|
|
119
119
|
test '#enc should return class parameters when default value and lookup_values should not use puppet default' do
|
|
@@ -160,7 +160,7 @@ module ForemanPuppet
|
|
|
160
160
|
|
|
161
161
|
enc = HostInfoProviders::PuppetInfo.new(@host).puppetclass_parameters
|
|
162
162
|
|
|
163
|
-
|
|
163
|
+
assert_nil enc[puppetclass.name][key.key]
|
|
164
164
|
end
|
|
165
165
|
|
|
166
166
|
test '#enc should return correct merged override to host when multiple overrides for inherited hostgroups exist' do
|
|
@@ -3,7 +3,7 @@ require 'test_puppet_helper'
|
|
|
3
3
|
module ForemanPuppet
|
|
4
4
|
class TemplateRenderingTest < ActiveSupport::TestCase
|
|
5
5
|
let(:host) { FactoryBot.build_stubbed(:host, :with_puppet_enc) }
|
|
6
|
-
let(:template) {
|
|
6
|
+
let(:template) { stub(name: 'Test', template: 'Test') }
|
|
7
7
|
let(:source) { Foreman::Renderer::Source::Database.new(template) }
|
|
8
8
|
let(:scope) do
|
|
9
9
|
Class.new(Foreman::Renderer::Scope::Base) do
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman_puppet
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ondřej Ezr
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2022-02-
|
|
12
|
+
date: 2022-02-28 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: Allow assigning Puppet environments and classes to the Foreman Hosts.
|
|
15
15
|
email:
|
|
@@ -216,49 +216,81 @@ files:
|
|
|
216
216
|
- locale/Makefile
|
|
217
217
|
- locale/action_names.rb
|
|
218
218
|
- locale/ca/LC_MESSAGES/foreman_puppet.mo
|
|
219
|
+
- locale/ca/foreman_puppet.edit.po
|
|
219
220
|
- locale/ca/foreman_puppet.po
|
|
221
|
+
- locale/ca/foreman_puppet.po.time_stamp
|
|
220
222
|
- locale/cs_CZ/LC_MESSAGES/foreman_puppet.mo
|
|
221
223
|
- locale/cs_CZ/foreman_puppet.edit.po
|
|
222
224
|
- locale/cs_CZ/foreman_puppet.po
|
|
223
225
|
- locale/cs_CZ/foreman_puppet.po.time_stamp
|
|
224
226
|
- locale/de/LC_MESSAGES/foreman_puppet.mo
|
|
227
|
+
- locale/de/foreman_puppet.edit.po
|
|
225
228
|
- locale/de/foreman_puppet.po
|
|
229
|
+
- locale/de/foreman_puppet.po.time_stamp
|
|
226
230
|
- locale/en/LC_MESSAGES/foreman_puppet.mo
|
|
227
231
|
- locale/en/foreman_puppet.edit.po
|
|
228
232
|
- locale/en/foreman_puppet.po
|
|
229
233
|
- locale/en/foreman_puppet.po.time_stamp
|
|
230
234
|
- locale/en/foreman_puppet.pox
|
|
231
235
|
- locale/en_GB/LC_MESSAGES/foreman_puppet.mo
|
|
236
|
+
- locale/en_GB/foreman_puppet.edit.po
|
|
232
237
|
- locale/en_GB/foreman_puppet.po
|
|
238
|
+
- locale/en_GB/foreman_puppet.po.time_stamp
|
|
233
239
|
- locale/es/LC_MESSAGES/foreman_puppet.mo
|
|
240
|
+
- locale/es/foreman_puppet.edit.po
|
|
234
241
|
- locale/es/foreman_puppet.po
|
|
242
|
+
- locale/es/foreman_puppet.po.time_stamp
|
|
235
243
|
- locale/foreman_puppet.pot
|
|
236
244
|
- locale/fr/LC_MESSAGES/foreman_puppet.mo
|
|
245
|
+
- locale/fr/foreman_puppet.edit.po
|
|
237
246
|
- locale/fr/foreman_puppet.po
|
|
247
|
+
- locale/fr/foreman_puppet.po.time_stamp
|
|
238
248
|
- locale/gemspec.rb
|
|
239
249
|
- locale/gl/LC_MESSAGES/foreman_puppet.mo
|
|
250
|
+
- locale/gl/foreman_puppet.edit.po
|
|
240
251
|
- locale/gl/foreman_puppet.po
|
|
252
|
+
- locale/gl/foreman_puppet.po.time_stamp
|
|
241
253
|
- locale/it/LC_MESSAGES/foreman_puppet.mo
|
|
254
|
+
- locale/it/foreman_puppet.edit.po
|
|
242
255
|
- locale/it/foreman_puppet.po
|
|
256
|
+
- locale/it/foreman_puppet.po.time_stamp
|
|
243
257
|
- locale/ja/LC_MESSAGES/foreman_puppet.mo
|
|
258
|
+
- locale/ja/foreman_puppet.edit.po
|
|
244
259
|
- locale/ja/foreman_puppet.po
|
|
260
|
+
- locale/ja/foreman_puppet.po.time_stamp
|
|
245
261
|
- locale/ko/LC_MESSAGES/foreman_puppet.mo
|
|
262
|
+
- locale/ko/foreman_puppet.edit.po
|
|
246
263
|
- locale/ko/foreman_puppet.po
|
|
264
|
+
- locale/ko/foreman_puppet.po.time_stamp
|
|
247
265
|
- locale/messages.mo
|
|
248
266
|
- locale/nl_NL/LC_MESSAGES/foreman_puppet.mo
|
|
267
|
+
- locale/nl_NL/foreman_puppet.edit.po
|
|
249
268
|
- locale/nl_NL/foreman_puppet.po
|
|
269
|
+
- locale/nl_NL/foreman_puppet.po.time_stamp
|
|
250
270
|
- locale/pl/LC_MESSAGES/foreman_puppet.mo
|
|
271
|
+
- locale/pl/foreman_puppet.edit.po
|
|
251
272
|
- locale/pl/foreman_puppet.po
|
|
273
|
+
- locale/pl/foreman_puppet.po.time_stamp
|
|
252
274
|
- locale/pt_BR/LC_MESSAGES/foreman_puppet.mo
|
|
275
|
+
- locale/pt_BR/foreman_puppet.edit.po
|
|
253
276
|
- locale/pt_BR/foreman_puppet.po
|
|
277
|
+
- locale/pt_BR/foreman_puppet.po.time_stamp
|
|
254
278
|
- locale/ru/LC_MESSAGES/foreman_puppet.mo
|
|
279
|
+
- locale/ru/foreman_puppet.edit.po
|
|
255
280
|
- locale/ru/foreman_puppet.po
|
|
281
|
+
- locale/ru/foreman_puppet.po.time_stamp
|
|
256
282
|
- locale/sv_SE/LC_MESSAGES/foreman_puppet.mo
|
|
283
|
+
- locale/sv_SE/foreman_puppet.edit.po
|
|
257
284
|
- locale/sv_SE/foreman_puppet.po
|
|
285
|
+
- locale/sv_SE/foreman_puppet.po.time_stamp
|
|
258
286
|
- locale/zh_CN/LC_MESSAGES/foreman_puppet.mo
|
|
287
|
+
- locale/zh_CN/foreman_puppet.edit.po
|
|
259
288
|
- locale/zh_CN/foreman_puppet.po
|
|
289
|
+
- locale/zh_CN/foreman_puppet.po.time_stamp
|
|
260
290
|
- locale/zh_TW/LC_MESSAGES/foreman_puppet.mo
|
|
291
|
+
- locale/zh_TW/foreman_puppet.edit.po
|
|
261
292
|
- locale/zh_TW/foreman_puppet.po
|
|
293
|
+
- locale/zh_TW/foreman_puppet.po.time_stamp
|
|
262
294
|
- package.json
|
|
263
295
|
- test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb
|
|
264
296
|
- test/controllers/foreman_puppet/api/v2/environments_controller_test.rb
|
|
@@ -302,6 +334,7 @@ files:
|
|
|
302
334
|
- test/integration/foreman_puppet/hostgroup_js_test.rb
|
|
303
335
|
- test/integration/foreman_puppet/puppetclass_js_test.rb
|
|
304
336
|
- test/integration/foreman_puppet/smartclass_parameter_js_test.rb
|
|
337
|
+
- test/integration_puppet_helper.rb
|
|
305
338
|
- test/models/foreman_puppet/config_group_class_test.rb
|
|
306
339
|
- test/models/foreman_puppet/config_group_test.rb
|
|
307
340
|
- test/models/foreman_puppet/environment_test.rb
|
|
@@ -390,6 +423,7 @@ test_files:
|
|
|
390
423
|
- test/graphql/queries/environment_query_test.rb
|
|
391
424
|
- test/graphql/queries/hostgroup_puppet_query_test.rb
|
|
392
425
|
- test/graphql/queries/environments_query_test.rb
|
|
426
|
+
- test/integration_puppet_helper.rb
|
|
393
427
|
- test/helpers/foreman_puppet/puppetclass_lookup_keys_helper_test.rb
|
|
394
428
|
- test/helpers/foreman_puppet/puppetclasses_helper_test.rb
|
|
395
429
|
- test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
|