foreman_puppet 2.0.2 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/foreman_puppet/environments_helper.rb +1 -1
- data/app/helpers/foreman_puppet/puppetclass_lookup_keys_helper.rb +1 -1
- data/app/views/foreman_puppet/config_groups/index.html.erb +3 -1
- data/db/migrate/20220201205305_migrate_host_class_permission.foreman_puppet.rb +9 -0
- data/db/migrate/20220208135305_migrate_environment_ignore_type.foreman_puppet.rb +15 -0
- data/db/migrate_foreman/20090905150132_create_hostgroups_puppetclasses.foreman_puppet.rb +3 -1
- data/lib/foreman_puppet/register.rb +2 -1
- 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/helpers/foreman_puppet/puppetclass_lookup_keys_helper_test.rb +34 -0
- metadata +39 -3
@@ -8,10 +8,9 @@
|
|
8
8
|
# 0868a4d1af5275b3f70b0a6dac4c99a4, 2021
|
9
9
|
# Bryan Kearney <bryan.kearney@gmail.com>, 2021
|
10
10
|
#
|
11
|
-
#, fuzzy
|
12
11
|
msgid ""
|
13
12
|
msgstr ""
|
14
|
-
"Project-Id-Version: foreman_puppet
|
13
|
+
"Project-Id-Version: foreman_puppet 3.0.2\n"
|
15
14
|
"Report-Msgid-Bugs-To: \n"
|
16
15
|
"PO-Revision-Date: 2021-02-03 16:30+0000\n"
|
17
16
|
"Last-Translator: Bryan Kearney <bryan.kearney@gmail.com>, 2021\n"
|
@@ -89,6 +88,9 @@ msgstr "所有環境 -(未篩選)"
|
|
89
88
|
msgid "Allow assigning Puppet environments and classes to the Foreman Hosts."
|
90
89
|
msgstr ""
|
91
90
|
|
91
|
+
msgid "Autosign entries"
|
92
|
+
msgstr ""
|
93
|
+
|
92
94
|
msgid "Available Classes"
|
93
95
|
msgstr "可用類別"
|
94
96
|
|
@@ -104,6 +106,9 @@ msgstr ""
|
|
104
106
|
msgid "Cancel"
|
105
107
|
msgstr "取消"
|
106
108
|
|
109
|
+
msgid "Certificates"
|
110
|
+
msgstr ""
|
111
|
+
|
107
112
|
msgid "Change Environment"
|
108
113
|
msgstr "更改環境"
|
109
114
|
|
@@ -341,6 +346,9 @@ msgstr ""
|
|
341
346
|
msgid "If true, will raise an error if there is no default value and no matcher provide a value"
|
342
347
|
msgstr "若為真而沒有預設值並且比對器未提供值的話,將會造成錯誤發生。"
|
343
348
|
|
349
|
+
msgid "If you are planning to use Foreman as an external node classifier you should provide information about one or more environments.<br/> This information is commonly imported from a pre-existing Puppet configuration by the use of the <a target=\"_blank\" href=${getManualURL( '4.2.2Classes' )}>Puppet classes and environment importer.</a>"
|
350
|
+
msgstr ""
|
351
|
+
|
344
352
|
msgid "Ignored classes in the environments: %s"
|
345
353
|
msgstr ""
|
346
354
|
|
@@ -677,6 +685,9 @@ msgstr "智慧類別參數"
|
|
677
685
|
msgid "Smart Class Parameters"
|
678
686
|
msgstr ""
|
679
687
|
|
688
|
+
msgid "Some Puppet Classes are unavailable in the selected environment"
|
689
|
+
msgstr ""
|
690
|
+
|
680
691
|
msgid "Successfully overridden all parameters of Puppet class %s"
|
681
692
|
msgstr "已成功置換 Puppet 類別 %s 的所有參數"
|
682
693
|
|
File without changes
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'test_puppet_helper'
|
2
|
+
|
3
|
+
module ForemanPuppet
|
4
|
+
class PuppetclassLookupKeysHelperTest < ActionView::TestCase
|
5
|
+
include PuppetclassLookupKeysHelper
|
6
|
+
|
7
|
+
describe '#overridable_puppet_lookup_keys' do
|
8
|
+
let(:parent_puppet_var) { FactoryBot.create(:puppetclass_lookup_key) }
|
9
|
+
let(:parent_hg) { FactoryBot.create(:hostgroup, :with_puppet_enc, environment: parent_puppet_var.environments.first) }
|
10
|
+
|
11
|
+
context 'with new hostgroup' do
|
12
|
+
subject do
|
13
|
+
hg = Hostgroup.new(parent: parent_hg)
|
14
|
+
hg.build_puppet
|
15
|
+
hg
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'returns inherited parameter' do
|
19
|
+
keys = overridable_puppet_lookup_keys(parent_puppet_var.param_classes.first, subject)
|
20
|
+
_(keys).must_include(parent_puppet_var)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
context 'with new host' do
|
25
|
+
subject { Host.new(hostgroup: parent_hg) }
|
26
|
+
|
27
|
+
it 'returns inherited parameter' do
|
28
|
+
keys = overridable_puppet_lookup_keys(parent_puppet_var.param_classes.first, subject)
|
29
|
+
_(keys).must_include(parent_puppet_var)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
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: 2.0.
|
4
|
+
version: 2.0.5
|
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:
|
12
|
+
date: 2022-03-03 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Allow assigning Puppet environments and classes to the Foreman Hosts.
|
15
15
|
email:
|
@@ -188,6 +188,8 @@ files:
|
|
188
188
|
- db/migrate/20210924103241_remove_katello_id_from_environments.foreman_puppet.rb
|
189
189
|
- db/migrate/20211111125003_drop_puppetclasses_direct_references.foreman_puppet.rb
|
190
190
|
- db/migrate/20211112130803_cleanup_environment_from_core_tables.foreman_puppet.rb
|
191
|
+
- db/migrate/20220201205305_migrate_host_class_permission.foreman_puppet.rb
|
192
|
+
- db/migrate/20220208135305_migrate_environment_ignore_type.foreman_puppet.rb
|
191
193
|
- db/migrate_foreman/20090722141107_create_environments.foreman_puppet.rb
|
192
194
|
- db/migrate_foreman/20090802062223_create_puppetclasses.foreman_puppet.rb
|
193
195
|
- db/migrate_foreman/20090905150132_create_hostgroups_puppetclasses.foreman_puppet.rb
|
@@ -214,49 +216,81 @@ files:
|
|
214
216
|
- locale/Makefile
|
215
217
|
- locale/action_names.rb
|
216
218
|
- locale/ca/LC_MESSAGES/foreman_puppet.mo
|
219
|
+
- locale/ca/foreman_puppet.edit.po
|
217
220
|
- locale/ca/foreman_puppet.po
|
221
|
+
- locale/ca/foreman_puppet.po.time_stamp
|
218
222
|
- locale/cs_CZ/LC_MESSAGES/foreman_puppet.mo
|
219
223
|
- locale/cs_CZ/foreman_puppet.edit.po
|
220
224
|
- locale/cs_CZ/foreman_puppet.po
|
221
225
|
- locale/cs_CZ/foreman_puppet.po.time_stamp
|
222
226
|
- locale/de/LC_MESSAGES/foreman_puppet.mo
|
227
|
+
- locale/de/foreman_puppet.edit.po
|
223
228
|
- locale/de/foreman_puppet.po
|
229
|
+
- locale/de/foreman_puppet.po.time_stamp
|
224
230
|
- locale/en/LC_MESSAGES/foreman_puppet.mo
|
225
231
|
- locale/en/foreman_puppet.edit.po
|
226
232
|
- locale/en/foreman_puppet.po
|
227
233
|
- locale/en/foreman_puppet.po.time_stamp
|
228
234
|
- locale/en/foreman_puppet.pox
|
229
235
|
- locale/en_GB/LC_MESSAGES/foreman_puppet.mo
|
236
|
+
- locale/en_GB/foreman_puppet.edit.po
|
230
237
|
- locale/en_GB/foreman_puppet.po
|
238
|
+
- locale/en_GB/foreman_puppet.po.time_stamp
|
231
239
|
- locale/es/LC_MESSAGES/foreman_puppet.mo
|
240
|
+
- locale/es/foreman_puppet.edit.po
|
232
241
|
- locale/es/foreman_puppet.po
|
242
|
+
- locale/es/foreman_puppet.po.time_stamp
|
233
243
|
- locale/foreman_puppet.pot
|
234
244
|
- locale/fr/LC_MESSAGES/foreman_puppet.mo
|
245
|
+
- locale/fr/foreman_puppet.edit.po
|
235
246
|
- locale/fr/foreman_puppet.po
|
247
|
+
- locale/fr/foreman_puppet.po.time_stamp
|
236
248
|
- locale/gemspec.rb
|
237
249
|
- locale/gl/LC_MESSAGES/foreman_puppet.mo
|
250
|
+
- locale/gl/foreman_puppet.edit.po
|
238
251
|
- locale/gl/foreman_puppet.po
|
252
|
+
- locale/gl/foreman_puppet.po.time_stamp
|
239
253
|
- locale/it/LC_MESSAGES/foreman_puppet.mo
|
254
|
+
- locale/it/foreman_puppet.edit.po
|
240
255
|
- locale/it/foreman_puppet.po
|
256
|
+
- locale/it/foreman_puppet.po.time_stamp
|
241
257
|
- locale/ja/LC_MESSAGES/foreman_puppet.mo
|
258
|
+
- locale/ja/foreman_puppet.edit.po
|
242
259
|
- locale/ja/foreman_puppet.po
|
260
|
+
- locale/ja/foreman_puppet.po.time_stamp
|
243
261
|
- locale/ko/LC_MESSAGES/foreman_puppet.mo
|
262
|
+
- locale/ko/foreman_puppet.edit.po
|
244
263
|
- locale/ko/foreman_puppet.po
|
264
|
+
- locale/ko/foreman_puppet.po.time_stamp
|
245
265
|
- locale/messages.mo
|
246
266
|
- locale/nl_NL/LC_MESSAGES/foreman_puppet.mo
|
267
|
+
- locale/nl_NL/foreman_puppet.edit.po
|
247
268
|
- locale/nl_NL/foreman_puppet.po
|
269
|
+
- locale/nl_NL/foreman_puppet.po.time_stamp
|
248
270
|
- locale/pl/LC_MESSAGES/foreman_puppet.mo
|
271
|
+
- locale/pl/foreman_puppet.edit.po
|
249
272
|
- locale/pl/foreman_puppet.po
|
273
|
+
- locale/pl/foreman_puppet.po.time_stamp
|
250
274
|
- locale/pt_BR/LC_MESSAGES/foreman_puppet.mo
|
275
|
+
- locale/pt_BR/foreman_puppet.edit.po
|
251
276
|
- locale/pt_BR/foreman_puppet.po
|
277
|
+
- locale/pt_BR/foreman_puppet.po.time_stamp
|
252
278
|
- locale/ru/LC_MESSAGES/foreman_puppet.mo
|
279
|
+
- locale/ru/foreman_puppet.edit.po
|
253
280
|
- locale/ru/foreman_puppet.po
|
281
|
+
- locale/ru/foreman_puppet.po.time_stamp
|
254
282
|
- locale/sv_SE/LC_MESSAGES/foreman_puppet.mo
|
283
|
+
- locale/sv_SE/foreman_puppet.edit.po
|
255
284
|
- locale/sv_SE/foreman_puppet.po
|
285
|
+
- locale/sv_SE/foreman_puppet.po.time_stamp
|
256
286
|
- locale/zh_CN/LC_MESSAGES/foreman_puppet.mo
|
287
|
+
- locale/zh_CN/foreman_puppet.edit.po
|
257
288
|
- locale/zh_CN/foreman_puppet.po
|
289
|
+
- locale/zh_CN/foreman_puppet.po.time_stamp
|
258
290
|
- locale/zh_TW/LC_MESSAGES/foreman_puppet.mo
|
291
|
+
- locale/zh_TW/foreman_puppet.edit.po
|
259
292
|
- locale/zh_TW/foreman_puppet.po
|
293
|
+
- locale/zh_TW/foreman_puppet.po.time_stamp
|
260
294
|
- package.json
|
261
295
|
- test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb
|
262
296
|
- test/controllers/foreman_puppet/api/v2/environments_controller_test.rb
|
@@ -292,6 +326,7 @@ files:
|
|
292
326
|
- test/graphql/queries/puppetclass_query_test.rb
|
293
327
|
- test/graphql/queries/puppetclasses_query_test.rb
|
294
328
|
- test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
|
329
|
+
- test/helpers/foreman_puppet/puppetclass_lookup_keys_helper_test.rb
|
295
330
|
- test/helpers/foreman_puppet/puppetclasses_helper_test.rb
|
296
331
|
- test/integration/foreman_puppet/dashboard_js_test.rb
|
297
332
|
- test/integration/foreman_puppet/environment_js_test.rb
|
@@ -363,7 +398,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
363
398
|
- !ruby/object:Gem::Version
|
364
399
|
version: '0'
|
365
400
|
requirements: []
|
366
|
-
rubygems_version: 3.
|
401
|
+
rubygems_version: 3.3.4
|
367
402
|
signing_key:
|
368
403
|
specification_version: 4
|
369
404
|
summary: Add Puppet features to Foreman
|
@@ -387,6 +422,7 @@ test_files:
|
|
387
422
|
- test/graphql/queries/environment_query_test.rb
|
388
423
|
- test/graphql/queries/hostgroup_puppet_query_test.rb
|
389
424
|
- test/graphql/queries/environments_query_test.rb
|
425
|
+
- test/helpers/foreman_puppet/puppetclass_lookup_keys_helper_test.rb
|
390
426
|
- test/helpers/foreman_puppet/puppetclasses_helper_test.rb
|
391
427
|
- test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
|
392
428
|
- test/models/foreman_puppet/config_group_class_test.rb
|