foreman_puppet 2.0.7 → 3.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 +3 -1
- data/app/controllers/concerns/foreman_puppet/extensions/api_smart_proxies_controller.rb +7 -2
- data/app/helpers/foreman_puppet/environments_helper.rb +1 -1
- data/app/helpers/foreman_puppet/puppetclass_lookup_keys_helper.rb +1 -1
- data/app/models/concerns/foreman_puppet/extensions/provisioning_template.rb +1 -1
- data/app/views/foreman_puppet/config_groups/_config_group.html.erb +5 -1
- data/app/views/foreman_puppet/config_groups/index.html.erb +1 -3
- data/app/views/smart_proxies/plugins/_puppet_ca.html.erb +44 -0
- data/db/migrate_foreman/20090905150132_create_hostgroups_puppetclasses.foreman_puppet.rb +1 -3
- data/lib/foreman_puppet/register.rb +3 -8
- data/lib/foreman_puppet/version.rb +1 -1
- data/locale/ca/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/ca/foreman_puppet.po +1 -70
- data/locale/cs_CZ/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/cs_CZ/foreman_puppet.edit.po +235 -358
- data/locale/cs_CZ/foreman_puppet.po +2 -13
- data/locale/de/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/de/foreman_puppet.po +13 -25
- data/locale/en/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/en/foreman_puppet.edit.po +161 -77
- data/locale/en/foreman_puppet.po +1 -13
- data/locale/en_GB/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/en_GB/foreman_puppet.po +2 -13
- data/locale/es/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/es/foreman_puppet.po +2 -13
- data/locale/foreman_puppet.pot +25 -48
- data/locale/fr/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/fr/foreman_puppet.po +2 -13
- data/locale/gl/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/gl/foreman_puppet.po +2 -13
- data/locale/it/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/it/foreman_puppet.po +2 -13
- data/locale/ja/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/ja/foreman_puppet.po +4 -15
- data/locale/ko/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/ko/foreman_puppet.po +2 -13
- data/locale/messages.mo +0 -0
- data/locale/nl_NL/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/nl_NL/foreman_puppet.po +2 -13
- data/locale/pl/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/pl/foreman_puppet.po +2 -13
- data/locale/pt_BR/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/pt_BR/foreman_puppet.po +2 -13
- data/locale/ru/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/ru/foreman_puppet.po +4 -15
- data/locale/sv_SE/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/sv_SE/foreman_puppet.po +2 -13
- data/locale/zh_CN/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/zh_CN/foreman_puppet.po +5 -16
- data/locale/zh_TW/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/zh_TW/foreman_puppet.po +2 -13
- data/test/controllers/foreman_puppet/api/v2/environments_controller_test.rb +24 -18
- 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/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 +17 -18
- 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 +2 -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 +55 -91
- data/app/views/hosts/foreman_puppet/_form_list_env_field_content.html.erb +0 -1
- data/app/views/hosts/foreman_puppet/_form_list_env_field_header.html.erb +0 -1
- data/db/migrate/20220201205305_migrate_host_class_permission.foreman_puppet.rb +0 -9
- data/db/migrate/20220208135305_migrate_environment_ignore_type.foreman_puppet.rb +0 -15
- data/db/migrate/20220421204325_drop_environment_from_host_and_hg.foreman_puppet.rb +0 -8
- data/locale/ca/foreman_puppet.edit.po +0 -1221
- data/locale/ca/foreman_puppet.po.time_stamp +0 -0
- data/locale/de/foreman_puppet.edit.po +0 -1300
- data/locale/de/foreman_puppet.po.time_stamp +0 -0
- data/locale/en_GB/foreman_puppet.edit.po +0 -1197
- data/locale/en_GB/foreman_puppet.po.time_stamp +0 -0
- data/locale/es/foreman_puppet.edit.po +0 -1275
- data/locale/es/foreman_puppet.po.time_stamp +0 -0
- data/locale/fr/foreman_puppet.edit.po +0 -1290
- data/locale/fr/foreman_puppet.po.time_stamp +0 -0
- data/locale/gl/foreman_puppet.edit.po +0 -1203
- data/locale/gl/foreman_puppet.po.time_stamp +0 -0
- data/locale/it/foreman_puppet.edit.po +0 -1233
- data/locale/it/foreman_puppet.po.time_stamp +0 -0
- data/locale/ja/foreman_puppet.edit.po +0 -1223
- data/locale/ja/foreman_puppet.po.time_stamp +0 -0
- data/locale/ko/foreman_puppet.edit.po +0 -1197
- data/locale/ko/foreman_puppet.po.time_stamp +0 -0
- data/locale/nl_NL/foreman_puppet.edit.po +0 -1228
- data/locale/nl_NL/foreman_puppet.po.time_stamp +0 -0
- data/locale/pl/foreman_puppet.edit.po +0 -1238
- data/locale/pl/foreman_puppet.po.time_stamp +0 -0
- data/locale/pt_BR/foreman_puppet.edit.po +0 -1281
- data/locale/pt_BR/foreman_puppet.po.time_stamp +0 -0
- data/locale/ru/foreman_puppet.edit.po +0 -1240
- data/locale/ru/foreman_puppet.po.time_stamp +0 -0
- data/locale/sv_SE/foreman_puppet.edit.po +0 -1205
- data/locale/sv_SE/foreman_puppet.po.time_stamp +0 -0
- data/locale/zh_CN/foreman_puppet.edit.po +0 -1212
- data/locale/zh_CN/foreman_puppet.po.time_stamp +0 -0
- data/locale/zh_TW/foreman_puppet.edit.po +0 -1197
- data/locale/zh_TW/foreman_puppet.po.time_stamp +0 -0
- data/test/helpers/foreman_puppet/puppetclass_lookup_keys_helper_test.rb +0 -34
|
@@ -10,9 +10,10 @@
|
|
|
10
10
|
# dschutterop <daniel@schutterop.nl>, 2021
|
|
11
11
|
# Mark Olie <mark.transifex@oliekoets.nl>, 2021
|
|
12
12
|
#
|
|
13
|
+
#, fuzzy
|
|
13
14
|
msgid ""
|
|
14
15
|
msgstr ""
|
|
15
|
-
"Project-Id-Version: foreman_puppet
|
|
16
|
+
"Project-Id-Version: foreman_puppet 2.0.0.alpha.2\n"
|
|
16
17
|
"Report-Msgid-Bugs-To: \n"
|
|
17
18
|
"PO-Revision-Date: 2021-02-03 16:30+0000\n"
|
|
18
19
|
"Last-Translator: Mark Olie <mark.transifex@oliekoets.nl>, 2021\n"
|
|
@@ -90,9 +91,6 @@ msgstr ""
|
|
|
90
91
|
msgid "Allow assigning Puppet environments and classes to the Foreman Hosts."
|
|
91
92
|
msgstr ""
|
|
92
93
|
|
|
93
|
-
msgid "Autosign entries"
|
|
94
|
-
msgstr ""
|
|
95
|
-
|
|
96
94
|
msgid "Available Classes"
|
|
97
95
|
msgstr "Beschikbare Classes"
|
|
98
96
|
|
|
@@ -108,9 +106,6 @@ msgstr ""
|
|
|
108
106
|
msgid "Cancel"
|
|
109
107
|
msgstr "Annuleren"
|
|
110
108
|
|
|
111
|
-
msgid "Certificates"
|
|
112
|
-
msgstr ""
|
|
113
|
-
|
|
114
109
|
msgid "Change Environment"
|
|
115
110
|
msgstr "Wijzig Omgeving"
|
|
116
111
|
|
|
@@ -348,9 +343,6 @@ msgstr ""
|
|
|
348
343
|
msgid "If true, will raise an error if there is no default value and no matcher provide a value"
|
|
349
344
|
msgstr "Als gezet, wordt er een fout gegenereerd als er geen standaardwaarde is en geen matcher een waarde aanbiedt"
|
|
350
345
|
|
|
351
|
-
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>"
|
|
352
|
-
msgstr ""
|
|
353
|
-
|
|
354
346
|
msgid "Ignored classes in the environments: %s"
|
|
355
347
|
msgstr "Genegeerde classes in de omgevingen: %s"
|
|
356
348
|
|
|
@@ -687,9 +679,6 @@ msgstr ""
|
|
|
687
679
|
msgid "Smart Class Parameters"
|
|
688
680
|
msgstr ""
|
|
689
681
|
|
|
690
|
-
msgid "Some Puppet Classes are unavailable in the selected environment"
|
|
691
|
-
msgstr ""
|
|
692
|
-
|
|
693
682
|
msgid "Successfully overridden all parameters of Puppet class %s"
|
|
694
683
|
msgstr "Alle parameters van puppet class %s zijn succesvol overridden."
|
|
695
684
|
|
|
Binary file
|
data/locale/pl/foreman_puppet.po
CHANGED
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
# sziolkow <sziolkow@gmail.com>, 2021
|
|
9
9
|
# Michał Foryt <michal.foryt@gmail.com>, 2021
|
|
10
10
|
#
|
|
11
|
+
#, fuzzy
|
|
11
12
|
msgid ""
|
|
12
13
|
msgstr ""
|
|
13
|
-
"Project-Id-Version: foreman_puppet
|
|
14
|
+
"Project-Id-Version: foreman_puppet 2.0.0.alpha.2\n"
|
|
14
15
|
"Report-Msgid-Bugs-To: \n"
|
|
15
16
|
"PO-Revision-Date: 2021-02-03 16:30+0000\n"
|
|
16
17
|
"Last-Translator: Michał Foryt <michal.foryt@gmail.com>, 2021\n"
|
|
@@ -89,9 +90,6 @@ msgstr "Wszystkie środowiska - (nie filtrowane)"
|
|
|
89
90
|
msgid "Allow assigning Puppet environments and classes to the Foreman Hosts."
|
|
90
91
|
msgstr ""
|
|
91
92
|
|
|
92
|
-
msgid "Autosign entries"
|
|
93
|
-
msgstr ""
|
|
94
|
-
|
|
95
93
|
msgid "Available Classes"
|
|
96
94
|
msgstr "Dostępne klasy"
|
|
97
95
|
|
|
@@ -107,9 +105,6 @@ msgstr ""
|
|
|
107
105
|
msgid "Cancel"
|
|
108
106
|
msgstr "Anuluj"
|
|
109
107
|
|
|
110
|
-
msgid "Certificates"
|
|
111
|
-
msgstr ""
|
|
112
|
-
|
|
113
108
|
msgid "Change Environment"
|
|
114
109
|
msgstr "Zmień środowisko"
|
|
115
110
|
|
|
@@ -347,9 +342,6 @@ msgstr ""
|
|
|
347
342
|
msgid "If true, will raise an error if there is no default value and no matcher provide a value"
|
|
348
343
|
msgstr "Jeśli to prawda, zgłosi błąd, jeśli nie ma wartości domyślnej ani podanej dopasowanej wartości"
|
|
349
344
|
|
|
350
|
-
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>"
|
|
351
|
-
msgstr ""
|
|
352
|
-
|
|
353
345
|
msgid "Ignored classes in the environments: %s"
|
|
354
346
|
msgstr ""
|
|
355
347
|
|
|
@@ -686,9 +678,6 @@ msgstr "Parametr inteligentnej klasy"
|
|
|
686
678
|
msgid "Smart Class Parameters"
|
|
687
679
|
msgstr ""
|
|
688
680
|
|
|
689
|
-
msgid "Some Puppet Classes are unavailable in the selected environment"
|
|
690
|
-
msgstr ""
|
|
691
|
-
|
|
692
681
|
msgid "Successfully overridden all parameters of Puppet class %s"
|
|
693
682
|
msgstr "Pomyślnie nadpisano wszystkie parametry klasy Puppet %s"
|
|
694
683
|
|
|
Binary file
|
|
@@ -13,9 +13,10 @@
|
|
|
13
13
|
# Felipe Nogaroto Gonzalez <felipeng84@gmail.com>, 2021
|
|
14
14
|
# Amit Upadhye <aupadhye@redhat.com>, 2021
|
|
15
15
|
#
|
|
16
|
+
#, fuzzy
|
|
16
17
|
msgid ""
|
|
17
18
|
msgstr ""
|
|
18
|
-
"Project-Id-Version: foreman_puppet
|
|
19
|
+
"Project-Id-Version: foreman_puppet 2.0.0.alpha.2\n"
|
|
19
20
|
"Report-Msgid-Bugs-To: \n"
|
|
20
21
|
"PO-Revision-Date: 2021-02-03 16:30+0000\n"
|
|
21
22
|
"Last-Translator: Amit Upadhye <aupadhye@redhat.com>, 2021\n"
|
|
@@ -93,9 +94,6 @@ msgstr "Todos os ambientes - (sem filtro)"
|
|
|
93
94
|
msgid "Allow assigning Puppet environments and classes to the Foreman Hosts."
|
|
94
95
|
msgstr ""
|
|
95
96
|
|
|
96
|
-
msgid "Autosign entries"
|
|
97
|
-
msgstr ""
|
|
98
|
-
|
|
99
97
|
msgid "Available Classes"
|
|
100
98
|
msgstr "Classes disponíveis"
|
|
101
99
|
|
|
@@ -111,9 +109,6 @@ msgstr ""
|
|
|
111
109
|
msgid "Cancel"
|
|
112
110
|
msgstr "Cancelar"
|
|
113
111
|
|
|
114
|
-
msgid "Certificates"
|
|
115
|
-
msgstr ""
|
|
116
|
-
|
|
117
112
|
msgid "Change Environment"
|
|
118
113
|
msgstr "Mudar ambiente"
|
|
119
114
|
|
|
@@ -351,9 +346,6 @@ msgstr ""
|
|
|
351
346
|
msgid "If true, will raise an error if there is no default value and no matcher provide a value"
|
|
352
347
|
msgstr "Se verdadeiro, gerará um erro caso não exista nenhum valor padrão e nenhuma correspondência forneça um valor "
|
|
353
348
|
|
|
354
|
-
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>"
|
|
355
|
-
msgstr ""
|
|
356
|
-
|
|
357
349
|
msgid "Ignored classes in the environments: %s"
|
|
358
350
|
msgstr "Classes ignoradas nos ambientes: %s"
|
|
359
351
|
|
|
@@ -690,9 +682,6 @@ msgstr "Parâmetro de Classe Inteligente"
|
|
|
690
682
|
msgid "Smart Class Parameters"
|
|
691
683
|
msgstr "Parâmetros de classe inteligentes"
|
|
692
684
|
|
|
693
|
-
msgid "Some Puppet Classes are unavailable in the selected environment"
|
|
694
|
-
msgstr ""
|
|
695
|
-
|
|
696
685
|
msgid "Successfully overridden all parameters of Puppet class %s"
|
|
697
686
|
msgstr "Todos os parâmetros da Classe Puppet foram sobrescritos com sucesso %s"
|
|
698
687
|
|
|
Binary file
|
data/locale/ru/foreman_puppet.po
CHANGED
|
@@ -11,14 +11,15 @@
|
|
|
11
11
|
# 0868a4d1af5275b3f70b0a6dac4c99a4, 2021
|
|
12
12
|
# Bryan Kearney <bryan.kearney@gmail.com>, 2021
|
|
13
13
|
# Vladimir Pavlov <v.pavlov@i-teco.ru>, 2021
|
|
14
|
-
#
|
|
14
|
+
# Pavel Ershov <yosho1@yandex.ru>, 2021
|
|
15
15
|
#
|
|
16
|
+
#, fuzzy
|
|
16
17
|
msgid ""
|
|
17
18
|
msgstr ""
|
|
18
|
-
"Project-Id-Version: foreman_puppet
|
|
19
|
+
"Project-Id-Version: foreman_puppet 2.0.0.alpha.2\n"
|
|
19
20
|
"Report-Msgid-Bugs-To: \n"
|
|
20
21
|
"PO-Revision-Date: 2021-02-03 16:30+0000\n"
|
|
21
|
-
"Last-Translator:
|
|
22
|
+
"Last-Translator: Pavel Ershov <yosho1@yandex.ru>, 2021\n"
|
|
22
23
|
"Language-Team: Russian (https://www.transifex.com/foreman/teams/114/ru/)\n"
|
|
23
24
|
"MIME-Version: 1.0\n"
|
|
24
25
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
@@ -94,9 +95,6 @@ msgstr "Все окружения (без фильтра)"
|
|
|
94
95
|
msgid "Allow assigning Puppet environments and classes to the Foreman Hosts."
|
|
95
96
|
msgstr ""
|
|
96
97
|
|
|
97
|
-
msgid "Autosign entries"
|
|
98
|
-
msgstr ""
|
|
99
|
-
|
|
100
98
|
msgid "Available Classes"
|
|
101
99
|
msgstr "Доступные классы"
|
|
102
100
|
|
|
@@ -112,9 +110,6 @@ msgstr ""
|
|
|
112
110
|
msgid "Cancel"
|
|
113
111
|
msgstr "Отмена"
|
|
114
112
|
|
|
115
|
-
msgid "Certificates"
|
|
116
|
-
msgstr ""
|
|
117
|
-
|
|
118
113
|
msgid "Change Environment"
|
|
119
114
|
msgstr "Изменить окружение"
|
|
120
115
|
|
|
@@ -352,9 +347,6 @@ msgstr ""
|
|
|
352
347
|
msgid "If true, will raise an error if there is no default value and no matcher provide a value"
|
|
353
348
|
msgstr "Если установлено, вызовет ошибку, если не установлено значение по умолчанию и не найдет поставщик значения"
|
|
354
349
|
|
|
355
|
-
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>"
|
|
356
|
-
msgstr ""
|
|
357
|
-
|
|
358
350
|
msgid "Ignored classes in the environments: %s"
|
|
359
351
|
msgstr ""
|
|
360
352
|
|
|
@@ -691,9 +683,6 @@ msgstr "Смарт-параметры"
|
|
|
691
683
|
msgid "Smart Class Parameters"
|
|
692
684
|
msgstr ""
|
|
693
685
|
|
|
694
|
-
msgid "Some Puppet Classes are unavailable in the selected environment"
|
|
695
|
-
msgstr ""
|
|
696
|
-
|
|
697
686
|
msgid "Successfully overridden all parameters of Puppet class %s"
|
|
698
687
|
msgstr "Успешно перезаписаны все параметры в классе Puppet %s"
|
|
699
688
|
|
|
Binary file
|
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
# Mikael Fridh <frimik@gmail.com>, 2021
|
|
10
10
|
# johnny.westerlund <johnny.westerlund@gmail.com>, 2021
|
|
11
11
|
#
|
|
12
|
+
#, fuzzy
|
|
12
13
|
msgid ""
|
|
13
14
|
msgstr ""
|
|
14
|
-
"Project-Id-Version: foreman_puppet
|
|
15
|
+
"Project-Id-Version: foreman_puppet 2.0.0.alpha.2\n"
|
|
15
16
|
"Report-Msgid-Bugs-To: \n"
|
|
16
17
|
"PO-Revision-Date: 2021-02-03 16:30+0000\n"
|
|
17
18
|
"Last-Translator: johnny.westerlund <johnny.westerlund@gmail.com>, 2021\n"
|
|
@@ -89,9 +90,6 @@ msgstr ""
|
|
|
89
90
|
msgid "Allow assigning Puppet environments and classes to the Foreman Hosts."
|
|
90
91
|
msgstr ""
|
|
91
92
|
|
|
92
|
-
msgid "Autosign entries"
|
|
93
|
-
msgstr ""
|
|
94
|
-
|
|
95
93
|
msgid "Available Classes"
|
|
96
94
|
msgstr "Tillgängliga Klasser"
|
|
97
95
|
|
|
@@ -107,9 +105,6 @@ msgstr ""
|
|
|
107
105
|
msgid "Cancel"
|
|
108
106
|
msgstr "Avbryt"
|
|
109
107
|
|
|
110
|
-
msgid "Certificates"
|
|
111
|
-
msgstr ""
|
|
112
|
-
|
|
113
108
|
msgid "Change Environment"
|
|
114
109
|
msgstr "Byt Miljö"
|
|
115
110
|
|
|
@@ -347,9 +342,6 @@ msgstr ""
|
|
|
347
342
|
msgid "If true, will raise an error if there is no default value and no matcher provide a value"
|
|
348
343
|
msgstr ""
|
|
349
344
|
|
|
350
|
-
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>"
|
|
351
|
-
msgstr ""
|
|
352
|
-
|
|
353
345
|
msgid "Ignored classes in the environments: %s"
|
|
354
346
|
msgstr ""
|
|
355
347
|
|
|
@@ -686,9 +678,6 @@ msgstr "Smart Klassparameter"
|
|
|
686
678
|
msgid "Smart Class Parameters"
|
|
687
679
|
msgstr ""
|
|
688
680
|
|
|
689
|
-
msgid "Some Puppet Classes are unavailable in the selected environment"
|
|
690
|
-
msgstr ""
|
|
691
|
-
|
|
692
681
|
msgid "Successfully overridden all parameters of Puppet class %s"
|
|
693
682
|
msgstr ""
|
|
694
683
|
|
|
Binary file
|
|
@@ -10,9 +10,10 @@
|
|
|
10
10
|
# Bryan Kearney <bryan.kearney@gmail.com>, 2021
|
|
11
11
|
# Amit Upadhye <aupadhye@redhat.com>, 2021
|
|
12
12
|
#
|
|
13
|
+
#, fuzzy
|
|
13
14
|
msgid ""
|
|
14
15
|
msgstr ""
|
|
15
|
-
"Project-Id-Version: foreman_puppet
|
|
16
|
+
"Project-Id-Version: foreman_puppet 2.0.0.alpha.2\n"
|
|
16
17
|
"Report-Msgid-Bugs-To: \n"
|
|
17
18
|
"PO-Revision-Date: 2021-02-03 16:30+0000\n"
|
|
18
19
|
"Last-Translator: Amit Upadhye <aupadhye@redhat.com>, 2021\n"
|
|
@@ -93,9 +94,6 @@ msgstr "所有环境 - (未过滤)"
|
|
|
93
94
|
msgid "Allow assigning Puppet environments and classes to the Foreman Hosts."
|
|
94
95
|
msgstr ""
|
|
95
96
|
|
|
96
|
-
msgid "Autosign entries"
|
|
97
|
-
msgstr ""
|
|
98
|
-
|
|
99
97
|
msgid "Available Classes"
|
|
100
98
|
msgstr "可用类"
|
|
101
99
|
|
|
@@ -111,9 +109,6 @@ msgstr "找不到具有 Puppet 功能的有效代理"
|
|
|
111
109
|
msgid "Cancel"
|
|
112
110
|
msgstr "取消"
|
|
113
111
|
|
|
114
|
-
msgid "Certificates"
|
|
115
|
-
msgstr ""
|
|
116
|
-
|
|
117
112
|
msgid "Change Environment"
|
|
118
113
|
msgstr "改变环境"
|
|
119
114
|
|
|
@@ -322,7 +317,7 @@ msgid "ID of Puppet class"
|
|
|
322
317
|
msgstr "Puppet 类别 ID"
|
|
323
318
|
|
|
324
319
|
msgid "ID of Puppet environment"
|
|
325
|
-
msgstr "
|
|
320
|
+
msgstr ""
|
|
326
321
|
|
|
327
322
|
msgid "ID of Puppetclass"
|
|
328
323
|
msgstr "Puppetclass ID"
|
|
@@ -331,7 +326,7 @@ msgid "ID of associated puppet Environment"
|
|
|
331
326
|
msgstr "与 puppet 环境关联的 ID"
|
|
332
327
|
|
|
333
328
|
msgid "ID of environment"
|
|
334
|
-
msgstr "
|
|
329
|
+
msgstr "环境的 ID"
|
|
335
330
|
|
|
336
331
|
msgid "ID of host"
|
|
337
332
|
msgstr "主機的 ID"
|
|
@@ -351,9 +346,6 @@ msgstr "与 Puppetclasses 关联的 ID"
|
|
|
351
346
|
msgid "If true, will raise an error if there is no default value and no matcher provide a value"
|
|
352
347
|
msgstr "如为 true,则会在没有默认值且没有匹配程序提供参数值时出错"
|
|
353
348
|
|
|
354
|
-
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>"
|
|
355
|
-
msgstr ""
|
|
356
|
-
|
|
357
349
|
msgid "Ignored classes in the environments: %s"
|
|
358
350
|
msgstr "环境中忽略的类别: %s"
|
|
359
351
|
|
|
@@ -690,9 +682,6 @@ msgstr "智能代理参数"
|
|
|
690
682
|
msgid "Smart Class Parameters"
|
|
691
683
|
msgstr "智能类参数"
|
|
692
684
|
|
|
693
|
-
msgid "Some Puppet Classes are unavailable in the selected environment"
|
|
694
|
-
msgstr ""
|
|
695
|
-
|
|
696
685
|
msgid "Successfully overridden all parameters of Puppet class %s"
|
|
697
686
|
msgstr "成功覆盖 Puppet 类 %s 的所有参数"
|
|
698
687
|
|
|
@@ -725,7 +714,7 @@ msgid "The order in which values are resolved"
|
|
|
725
714
|
msgstr "值解析的順序"
|
|
726
715
|
|
|
727
716
|
msgid "The requested environment cannot be found."
|
|
728
|
-
msgstr "
|
|
717
|
+
msgstr ""
|
|
729
718
|
|
|
730
719
|
msgid "There are no puppet environments set up on this puppet master. Please check the puppet master configuration."
|
|
731
720
|
msgstr "这台 puppet 主服务器中未设置任何 puppet 环境。请检查 puppet 主服务器配置。"
|
|
Binary file
|
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
# 0868a4d1af5275b3f70b0a6dac4c99a4, 2021
|
|
9
9
|
# Bryan Kearney <bryan.kearney@gmail.com>, 2021
|
|
10
10
|
#
|
|
11
|
+
#, fuzzy
|
|
11
12
|
msgid ""
|
|
12
13
|
msgstr ""
|
|
13
|
-
"Project-Id-Version: foreman_puppet
|
|
14
|
+
"Project-Id-Version: foreman_puppet 2.0.0.alpha.2\n"
|
|
14
15
|
"Report-Msgid-Bugs-To: \n"
|
|
15
16
|
"PO-Revision-Date: 2021-02-03 16:30+0000\n"
|
|
16
17
|
"Last-Translator: Bryan Kearney <bryan.kearney@gmail.com>, 2021\n"
|
|
@@ -88,9 +89,6 @@ msgstr "所有環境 -(未篩選)"
|
|
|
88
89
|
msgid "Allow assigning Puppet environments and classes to the Foreman Hosts."
|
|
89
90
|
msgstr ""
|
|
90
91
|
|
|
91
|
-
msgid "Autosign entries"
|
|
92
|
-
msgstr ""
|
|
93
|
-
|
|
94
92
|
msgid "Available Classes"
|
|
95
93
|
msgstr "可用類別"
|
|
96
94
|
|
|
@@ -106,9 +104,6 @@ msgstr ""
|
|
|
106
104
|
msgid "Cancel"
|
|
107
105
|
msgstr "取消"
|
|
108
106
|
|
|
109
|
-
msgid "Certificates"
|
|
110
|
-
msgstr ""
|
|
111
|
-
|
|
112
107
|
msgid "Change Environment"
|
|
113
108
|
msgstr "更改環境"
|
|
114
109
|
|
|
@@ -346,9 +341,6 @@ msgstr ""
|
|
|
346
341
|
msgid "If true, will raise an error if there is no default value and no matcher provide a value"
|
|
347
342
|
msgstr "若為真而沒有預設值並且比對器未提供值的話,將會造成錯誤發生。"
|
|
348
343
|
|
|
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
|
-
|
|
352
344
|
msgid "Ignored classes in the environments: %s"
|
|
353
345
|
msgstr ""
|
|
354
346
|
|
|
@@ -685,9 +677,6 @@ msgstr "智慧類別參數"
|
|
|
685
677
|
msgid "Smart Class Parameters"
|
|
686
678
|
msgstr ""
|
|
687
679
|
|
|
688
|
-
msgid "Some Puppet Classes are unavailable in the selected environment"
|
|
689
|
-
msgstr ""
|
|
690
|
-
|
|
691
680
|
msgid "Successfully overridden all parameters of Puppet class %s"
|
|
692
681
|
msgstr "已成功置換 Puppet 類別 %s 的所有參數"
|
|
693
682
|
|
|
@@ -11,27 +11,33 @@ module ForemanPuppet
|
|
|
11
11
|
let(:environment_attrs) { { name: 'Development' } }
|
|
12
12
|
let(:environment) { FactoryBot.create(:environment) }
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
describe 'GET #index' do
|
|
15
|
+
it 'gets index' do
|
|
16
|
+
environment
|
|
17
|
+
get :index
|
|
18
|
+
assert_response :success
|
|
19
|
+
assert_not_nil assigns(:environments)
|
|
20
|
+
envs = ActiveSupport::JSON.decode(@response.body)
|
|
21
|
+
assert_not envs.empty?
|
|
22
|
+
end
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
it 'shows environment by id' do
|
|
25
|
+
get :show, params: { id: environment.id }
|
|
26
|
+
assert_response :success
|
|
27
|
+
assert_equal environment.name, JSON.parse(@response.body)['name']
|
|
28
|
+
end
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
it 'shows environment by to_param' do
|
|
31
|
+
get :show, params: { id: environment.to_param }
|
|
32
|
+
assert_response :success
|
|
33
|
+
assert_equal environment.name, JSON.parse(@response.body)['name']
|
|
34
|
+
end
|
|
31
35
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
it 'shows environment by name' do
|
|
37
|
+
get :show, params: { id: environment.name }
|
|
38
|
+
assert_response :success
|
|
39
|
+
assert_equal environment.name, JSON.parse(@response.body)['name']
|
|
40
|
+
end
|
|
35
41
|
end
|
|
36
42
|
|
|
37
43
|
test 'should create environment' do
|
|
@@ -421,7 +421,7 @@ module ForemanPuppet
|
|
|
421
421
|
|
|
422
422
|
test_attributes pid: 'd5d5f084-fa62-4ec3-90ea-9fcabd7bda4f'
|
|
423
423
|
test 'validate default value with list' do
|
|
424
|
-
values_list = [RFauxFactory.gen_alpha, RFauxFactory.gen_alphanumeric, rand(100..1 << 64), [true, false].sample]
|
|
424
|
+
values_list = [RFauxFactory.gen_alpha, RFauxFactory.gen_alphanumeric, rand(100..(1 << 64)), [true, false].sample]
|
|
425
425
|
values_list_str = values_list.join(', ')
|
|
426
426
|
value = values_list.sample
|
|
427
427
|
put :update, params: { id: lookup_key.id, smart_class_parameter: { override: true,
|
|
@@ -437,7 +437,7 @@ module ForemanPuppet
|
|
|
437
437
|
|
|
438
438
|
test_attributes pid: 'd5df7804-9633-4ef8-a065-10807351d230'
|
|
439
439
|
test 'validate default value with regexp' do
|
|
440
|
-
value = rand(1..1 << 64)
|
|
440
|
+
value = rand(1..(1 << 64))
|
|
441
441
|
put :update, params: { id: lookup_key.id, smart_class_parameter: { override: true,
|
|
442
442
|
default_value: value,
|
|
443
443
|
validator_type: 'regexp',
|
|
@@ -107,7 +107,7 @@ module ForemanPuppet
|
|
|
107
107
|
{ 'env3' => '[]' } } }, session: set_session_user
|
|
108
108
|
assert_redirected_to environments_url
|
|
109
109
|
assert_equal 'Successfully updated environments and Puppet classes from the on-disk Puppet installation', flash[:success]
|
|
110
|
-
|
|
110
|
+
assert_empty Environment.unscoped.find_by(name: 'env3').puppetclasses.map(&:name).sort
|
|
111
111
|
end
|
|
112
112
|
|
|
113
113
|
test 'should fail to remove active environments' do
|
|
@@ -42,10 +42,10 @@ module Queries
|
|
|
42
42
|
test 'fetching environment attributes' do
|
|
43
43
|
assert_empty result['errors']
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
expect(data['name']).must_equal(environment.name)
|
|
46
|
+
expect(data['id']).must_equal(global_id)
|
|
47
|
+
expect(data['createdAt']).must_equal(environment.created_at.utc.iso8601)
|
|
48
|
+
expect(data['updatedAt']).must_equal(environment.updated_at.utc.iso8601)
|
|
49
49
|
|
|
50
50
|
assert_collection environment.locations, data['locations']
|
|
51
51
|
assert_collection environment.organizations, data['organizations']
|
|
@@ -55,10 +55,10 @@ module Queries
|
|
|
55
55
|
test 'fetching puppetclass attributes' do
|
|
56
56
|
assert_empty result['errors']
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
expect(data['id']).must_equal global_id
|
|
59
|
+
expect(data['createdAt']).must_equal puppetclass.created_at.utc.iso8601
|
|
60
|
+
expect(data['updatedAt']).must_equal puppetclass.updated_at.utc.iso8601
|
|
61
|
+
expect(data['name']).must_equal puppetclass.name
|
|
62
62
|
|
|
63
63
|
assert_collection puppetclass.environments, data['environments']
|
|
64
64
|
assert_collection puppetclass.locations, data['locations']
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
require '
|
|
2
|
-
require 'integration_test_helper'
|
|
1
|
+
require 'integration_puppet_helper'
|
|
3
2
|
require 'integration/shared/host_finders'
|
|
4
3
|
require 'integration/shared/host_orchestration_stubs'
|
|
5
4
|
|
|
@@ -214,7 +213,7 @@ module ForemanPuppet
|
|
|
214
213
|
puppetclass: host.puppet.puppetclasses.first, overrides: { host.lookup_value_matcher => 'hostOverride' })
|
|
215
214
|
visit edit_host_path(host)
|
|
216
215
|
switch_form_tab('Puppet ENC')
|
|
217
|
-
|
|
216
|
+
expect(puppetclass_params.find('textarea').value).must_equal('hostOverride')
|
|
218
217
|
assert puppetclass_params.find('textarea:enabled')
|
|
219
218
|
puppetclass_params.find("a[data-tag='remove']").click
|
|
220
219
|
assert puppetclass_params.find('textarea:disabled')
|
|
@@ -222,17 +221,17 @@ module ForemanPuppet
|
|
|
222
221
|
|
|
223
222
|
visit edit_host_path(host)
|
|
224
223
|
switch_form_tab('Puppet ENC')
|
|
225
|
-
|
|
226
|
-
|
|
224
|
+
expect(puppetclass_params.find('textarea').value).must_equal('default')
|
|
225
|
+
expect(puppetclass_params).must_have_selector('textarea:disabled')
|
|
227
226
|
puppetclass_params.find("a[data-tag='override']").click
|
|
228
|
-
|
|
227
|
+
expect(puppetclass_params).must_have_selector('textarea:enabled')
|
|
229
228
|
puppetclass_params.find('textarea').set('userCustom')
|
|
230
229
|
click_on_submit
|
|
231
230
|
|
|
232
231
|
visit edit_host_path(host)
|
|
233
232
|
switch_form_tab('Puppet ENC')
|
|
234
|
-
|
|
235
|
-
|
|
233
|
+
expect(puppetclass_params.find('textarea').value).must_equal('userCustom')
|
|
234
|
+
expect(puppetclass_params).must_have_selector('textarea:enabled')
|
|
236
235
|
end
|
|
237
236
|
|
|
238
237
|
test 'can override puppetclass lookup values' do
|
|
@@ -241,22 +240,22 @@ module ForemanPuppet
|
|
|
241
240
|
|
|
242
241
|
visit edit_host_path(host)
|
|
243
242
|
switch_form_tab('Puppet ENC')
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
243
|
+
expect(puppetclass_params).must_have_selector("a[data-tag='remove']", visible: :visible)
|
|
244
|
+
expect(puppetclass_params).must_have_selector("a[data-tag='override']", visible: :hidden)
|
|
245
|
+
expect(puppetclass_params.find('textarea').value).must_equal('hostOverride')
|
|
246
|
+
expect(puppetclass_params).must_have_selector('textarea:enabled')
|
|
248
247
|
|
|
249
248
|
puppetclass_params.find("a[data-tag='remove']").click
|
|
250
|
-
|
|
251
|
-
|
|
249
|
+
expect(puppetclass_params).must_have_selector("a[data-tag='remove']", visible: :hidden)
|
|
250
|
+
expect(puppetclass_params).must_have_selector("a[data-tag='override']", visible: :visible)
|
|
252
251
|
assert_equal('default', puppetclass_params.find('textarea').value)
|
|
253
252
|
assert puppetclass_params.find('textarea:disabled')
|
|
254
253
|
|
|
255
254
|
puppetclass_params.find("a[data-tag='override']").click
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
255
|
+
expect(puppetclass_params).must_have_selector("a[data-tag='remove']", visible: :visible)
|
|
256
|
+
expect(puppetclass_params).must_have_selector("a[data-tag='override']", visible: :hidden)
|
|
257
|
+
expect(puppetclass_params.find('textarea').value).must_equal('default')
|
|
258
|
+
expect(puppetclass_params).must_have_selector('textarea:enabled')
|
|
260
259
|
end
|
|
261
260
|
|
|
262
261
|
context 'with non-admin user' do
|