foreman_ansible 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/ansible_variables_controller.rb +7 -2
  3. data/app/views/foreman_ansible/ansible_roles/_select_tab_content.html.erb +16 -8
  4. data/lib/foreman_ansible/version.rb +1 -1
  5. data/locale/action_names.rb +1 -1
  6. data/locale/de/LC_MESSAGES/foreman_ansible.mo +0 -0
  7. data/locale/de/foreman_ansible.edit.po +191 -90
  8. data/locale/de/foreman_ansible.po +93 -17
  9. data/locale/en/LC_MESSAGES/foreman_ansible.mo +0 -0
  10. data/locale/en/foreman_ansible.edit.po +191 -90
  11. data/locale/en/foreman_ansible.po +93 -17
  12. data/locale/es/LC_MESSAGES/foreman_ansible.mo +0 -0
  13. data/locale/es/foreman_ansible.edit.po +191 -90
  14. data/locale/es/foreman_ansible.po +93 -17
  15. data/locale/foreman_ansible.pot +209 -99
  16. data/locale/fr/LC_MESSAGES/foreman_ansible.mo +0 -0
  17. data/locale/fr/foreman_ansible.edit.po +191 -90
  18. data/locale/fr/foreman_ansible.po +93 -17
  19. data/locale/it/LC_MESSAGES/foreman_ansible.mo +0 -0
  20. data/locale/it/foreman_ansible.edit.po +191 -90
  21. data/locale/it/foreman_ansible.po +93 -17
  22. data/locale/ja/LC_MESSAGES/foreman_ansible.mo +0 -0
  23. data/locale/ja/foreman_ansible.edit.po +191 -90
  24. data/locale/ja/foreman_ansible.po +93 -17
  25. data/locale/ko/LC_MESSAGES/foreman_ansible.mo +0 -0
  26. data/locale/ko/foreman_ansible.edit.po +191 -90
  27. data/locale/ko/foreman_ansible.po +93 -17
  28. data/locale/pt_BR/LC_MESSAGES/foreman_ansible.mo +0 -0
  29. data/locale/pt_BR/foreman_ansible.edit.po +191 -90
  30. data/locale/pt_BR/foreman_ansible.po +93 -17
  31. data/locale/ru/LC_MESSAGES/foreman_ansible.mo +0 -0
  32. data/locale/ru/foreman_ansible.edit.po +191 -90
  33. data/locale/ru/foreman_ansible.po +93 -17
  34. data/locale/zh_CN/LC_MESSAGES/foreman_ansible.mo +0 -0
  35. data/locale/zh_CN/foreman_ansible.edit.po +191 -90
  36. data/locale/zh_CN/foreman_ansible.po +93 -17
  37. data/locale/zh_TW/LC_MESSAGES/foreman_ansible.mo +0 -0
  38. data/locale/zh_TW/foreman_ansible.edit.po +191 -90
  39. data/locale/zh_TW/foreman_ansible.po +93 -17
  40. data/package.json +6 -6
  41. data/test/functional/ansible_variables_controller_test.rb +17 -2
  42. data/webpack/index.js +11 -0
  43. metadata +28 -28
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa8c652bdc73b061ee0592c326628e21a4bea04f
4
- data.tar.gz: d9c5060f8ead222efbbaf437ee5864df794940e9
3
+ metadata.gz: c22bb92d030adea05ee3fd2bec068d463387a319
4
+ data.tar.gz: 85741d09d78a9beab26eef91276d587c8f40d32c
5
5
  SHA512:
6
- metadata.gz: ec83abd766e3637ca9eeadf4ad73a25139c3f88ec3567b6c85d76e3fb593c53dd800bfe54f6a3f413f77de94b1f18e7dab6ac4a6dda69602dde6c3d1f3e6d01c
7
- data.tar.gz: ba89361c44726fb46e7af987f5b496ef364d3aaa7ff367e92cd3e5397bc422f4dad4302dc55468e46859e4cf90942d704cef2bd10ca637ba7c9763a76ad2b250
6
+ metadata.gz: 4760aa95956f022b1259a39039761beb43ecccf8ff6f483b3c67e4b889545a3c3fab0baaea87c3c3f484abab851bf8aa27752ef2863a5296801a16d571aa3636
7
+ data.tar.gz: 359a57e464ac6f408e0cc8e84b2e6d2eeb0bb45ac9db30daa55e3d942f8c82c002a0f03875223fc2eff159c4bb5eb5e4e733a0044e4beed0a293f62360b6ddaf
@@ -35,8 +35,13 @@ class AnsibleVariablesController < ::LookupKeysController
35
35
  import_roles = @importer_roles.import_role_names
36
36
  import_roles[:new_roles] = import_roles[:new]
37
37
  import_variables = @importer.import_variable_names(import_roles[:new_roles])
38
- render 'ansible_variables/import',
39
- :locals => { :changed => import_variables }
38
+ if import_variables.values.all?(&:empty?)
39
+ success(_('No changes in variables detected on %s.') % @proxy.name)
40
+ redirect_to ansible_variables_path
41
+ else
42
+ render 'ansible_variables/import',
43
+ :locals => { :changed => import_variables }
44
+ end
40
45
  end
41
46
 
42
47
  def confirm_import
@@ -2,14 +2,22 @@
2
2
  <%= webpacked_plugins_css_for :foreman_ansible %>
3
3
 
4
4
  <div class='tab-pane' id='ansible_roles'>
5
- <div id='ansible_roles_switcher'></div>
6
5
  <% roles = f.object.is_a?(Hostgroup) ? roles_attrs(f.object.inherited_and_own_ansible_roles) : roles_attrs(f.object.all_ansible_roles) %>
7
6
  <% class_name = f.object.is_a?(Hostgroup) ? 'Hostgroup' : 'Host' %>
8
- <%= mount_react_component('AnsibleRolesSwitcher', '#ansible_roles_switcher', { :initialAssignedRoles => roles,
9
- :inheritedRoleIds => f.object.inherited_ansible_roles.map(&:id),
10
- :availableRolesUrl => ui_ansible_roles_path,
11
- :resourceId => f.object.id,
12
- :resourceName => class_name,
13
- :canView => User.current.can?(:view_ansible_roles)
14
- }.to_json) %>
7
+ <%= content_tag(:div, '',
8
+ :id => 'ansible_roles_switcher',
9
+ 'data-roles' => {
10
+ :initialAssignedRoles => roles,
11
+ :inheritedRoleIds => f.object.inherited_ansible_roles.map(&:id),
12
+ :availableRolesUrl => ui_ansible_roles_path,
13
+ :resourceId => f.object.id,
14
+ :resourceName => class_name,
15
+ :canView => User.current.can?(:view_ansible_roles)
16
+ }.to_json
17
+ ) %>
18
+ <% unless request.xhr? %>
19
+ <script type="text/javascript">
20
+ tfm.initAnsibleRoleSwitcher();
21
+ </script>
22
+ <% end %>
15
23
  </div>
@@ -4,5 +4,5 @@
4
4
  # This way other parts of Foreman can just call ForemanAnsible::VERSION
5
5
  # and detect what version the plugin is running.
6
6
  module ForemanAnsible
7
- VERSION = '3.0.0'
7
+ VERSION = '3.0.1'
8
8
  end
@@ -1,5 +1,5 @@
1
1
  # Autogenerated!
2
2
  _("Remote action:")
3
- _("Import facts")
4
3
  _("Import Puppet classes")
4
+ _("Import facts")
5
5
  _("Action with sub plans")
@@ -5,7 +5,7 @@
5
5
  #
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_ansible 2.3.0\n"
8
+ "Project-Id-Version: foreman_ansible 3.0.0\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
10
  "PO-Revision-Date: 2018-03-12 12:24-0400\n"
11
11
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
@@ -29,14 +29,19 @@ msgstr ""
29
29
  msgid "No changes in roles detected on %s."
30
30
  msgstr ""
31
31
 
32
- #: ../app/controllers/ansible_variables_controller.rb:31
32
+ #: ../app/controllers/ansible_variables_controller.rb:39
33
+ msgid "No changes in variables detected on %s."
34
+ msgstr ""
35
+
36
+ #: ../app/controllers/ansible_variables_controller.rb:49
33
37
  msgid ""
34
38
  "Import of variables successfully finished.\n"
35
- "Added: #{results[:added].join(', ')} \n"
36
- " Removed: #{results[:obsolete].join(', ')}"
39
+ "Added: #{results[:added].count} \n"
40
+ " Removed: #{results[:obsolete].count} \n"
41
+ "Updated: #{results[:updated].count}"
37
42
  msgstr ""
38
43
 
39
- #: ../app/controllers/ansible_variables_controller.rb:75
44
+ #: ../app/controllers/ansible_variables_controller.rb:102
40
45
  msgid "No proxy found to import variables from, ensure that the smart proxy has the Ansible feature enabled."
41
46
  msgstr ""
42
47
 
@@ -72,7 +77,7 @@ msgstr ""
72
77
  msgid "Import Ansible roles"
73
78
  msgstr ""
74
79
 
75
- #: ../app/controllers/api/v2/ansible_roles_controller.rb:35 ../app/controllers/api/v2/ansible_roles_controller.rb:42 ../app/controllers/api/v2/ansible_variables_controller.rb:65 ../app/controllers/api/v2/ansible_variables_controller.rb:75
80
+ #: ../app/controllers/api/v2/ansible_roles_controller.rb:35 ../app/controllers/api/v2/ansible_roles_controller.rb:42 ../app/controllers/api/v2/ansible_variables_controller.rb:73 ../app/controllers/api/v2/ansible_variables_controller.rb:83
76
81
  msgid "Smart Proxy to import from"
77
82
  msgstr ""
78
83
 
@@ -92,114 +97,134 @@ msgstr ""
92
97
  msgid "Smart Proxy to fetch from"
93
98
  msgstr ""
94
99
 
95
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:19
100
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:20
96
101
  msgid "Show variable"
97
102
  msgstr ""
98
103
 
99
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:23
104
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:24
100
105
  msgid "List Ansible variables"
101
106
  msgstr ""
102
107
 
103
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:29
108
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:30
104
109
  msgid "Deletes Ansible variable"
105
110
  msgstr ""
106
111
 
107
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:38
112
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:39
108
113
  msgid "Name of variable"
109
114
  msgstr ""
110
115
 
111
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:39
116
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:40
112
117
  msgid "Role ID"
113
118
  msgstr ""
114
119
 
115
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:40
120
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:41
116
121
  msgid "Default value of variable"
117
122
  msgstr ""
118
123
 
119
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:41
124
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:42
120
125
  msgid "When enabled the parameter is hidden in the UI"
121
126
  msgstr ""
122
127
 
123
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:42
128
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:43
124
129
  msgid "The order in which values are resolved"
125
130
  msgstr ""
126
131
 
127
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:43
132
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:44
128
133
  msgid "Description of variable"
129
134
  msgstr ""
130
135
 
131
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:44
136
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:45
132
137
  msgid "Types of validation values"
133
138
  msgstr ""
134
139
 
135
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:45
140
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:46
136
141
  msgid "Used to enforce certain values for the parameter values"
137
142
  msgstr ""
138
143
 
139
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:46
144
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:47
140
145
  msgid "Types of variable values"
141
146
  msgstr ""
142
147
 
143
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:47
148
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:48
144
149
  msgid "Merge all matching values (only array/hash type)"
145
150
  msgstr ""
146
151
 
147
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:48
152
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:49
148
153
  msgid "Include default value when merging all matching values"
149
154
  msgstr ""
150
155
 
151
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:49
156
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:50
152
157
  msgid "Remove duplicate values (only array type)"
153
158
  msgstr ""
154
159
 
155
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:53
160
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:54
161
+ msgid "Create Ansible variable"
162
+ msgstr ""
163
+
164
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:61
156
165
  msgid "Updates Ansible variable"
157
166
  msgstr ""
158
167
 
159
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:63
168
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:71
160
169
  msgid "Import Ansible variables. This will only import variables for already existing roles, it will not import any new roles"
161
170
  msgstr ""
162
171
 
163
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:73
172
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:81
164
173
  msgid "Obsolete Ansible variables. This will only obsolete variables for already existing roles, it will not delete any old roles"
165
174
  msgstr ""
166
175
 
167
- #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:17
176
+ #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:20
168
177
  msgid "Plays Ansible roles on a hostgroup"
169
178
  msgstr ""
170
179
 
171
- #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:27
180
+ #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:30
172
181
  msgid "Plays Ansible roles on hostgroups"
173
182
  msgstr ""
174
183
 
175
- #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:28
184
+ #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:31
176
185
  msgid "IDs of hostgroups to play roles on"
177
186
  msgstr ""
178
187
 
179
- #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:39
188
+ #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:42
180
189
  msgid "List all Ansible roles for a hostgroup"
181
190
  msgstr ""
182
191
 
192
+ #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:53
193
+ msgid "Assigns Ansible roles to a hostgroup"
194
+ msgstr ""
195
+
196
+ #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:56
197
+ msgid "Ansible roles to assign to a hostgroup"
198
+ msgstr ""
199
+
183
200
  #: ../app/controllers/foreman_ansible/api/v2/hostgroups_param_group_extensions.rb:13 ../app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb:13
184
201
  msgid "IDs of associated ansible roles"
185
202
  msgstr ""
186
203
 
187
- #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:22
204
+ #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:26
188
205
  msgid "Plays Ansible roles on a host"
189
206
  msgstr ""
190
207
 
191
- #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:31
208
+ #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:35
192
209
  msgid "Plays Ansible roles on hosts"
193
210
  msgstr ""
194
211
 
195
- #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:32
212
+ #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:36
196
213
  msgid "IDs of hosts to play roles on"
197
214
  msgstr ""
198
215
 
199
- #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:42
216
+ #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:46
200
217
  msgid "List all Ansible roles for a host"
201
218
  msgstr ""
202
219
 
220
+ #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:56
221
+ msgid "Assigns Ansible roles to a host"
222
+ msgstr ""
223
+
224
+ #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:59
225
+ msgid "Ansible roles to assign to a host"
226
+ msgstr ""
227
+
203
228
  #: ../app/controllers/foreman_ansible/concerns/hostgroups_controller_extensions.rb:27
204
229
  msgid "Host group has no associated hosts"
205
230
  msgstr ""
@@ -213,30 +238,30 @@ msgid "Could not run Ansible roles for %{host}"
213
238
  msgstr ""
214
239
 
215
240
  #: ../app/helpers/foreman_ansible/ansible_roles_helper.rb:8
216
- msgid "From %s"
241
+ msgid "Import from %s"
217
242
  msgstr ""
218
243
 
219
- #: ../app/helpers/foreman_ansible/ansible_roles_helper.rb:15
244
+ #: ../app/helpers/foreman_ansible/ansible_roles_helper.rb:23
245
+ msgid "Ansible Role"
246
+ msgstr ""
247
+
248
+ #: ../app/helpers/foreman_ansible/ansible_roles_helper.rb:29
220
249
  msgid "Import"
221
250
  msgstr ""
222
251
 
223
- #: ../app/helpers/foreman_ansible/ansible_roles_helper.rb:21
252
+ #: ../app/helpers/foreman_ansible/ansible_roles_helper.rb:35
224
253
  msgid "%s ago"
225
254
  msgstr ""
226
255
 
227
- #: ../app/helpers/foreman_ansible/hosts_helper_extensions.rb:23 ../app/lib/actions/foreman_ansible/helpers/host_common.rb:18
256
+ #: ../app/helpers/foreman_ansible/hosts_helper_extensions.rb:13 ../app/lib/actions/foreman_ansible/helpers/host_common.rb:18
228
257
  msgid "Play Ansible roles"
229
258
  msgstr ""
230
259
 
231
- #: ../app/helpers/foreman_ansible/hosts_helper_extensions.rb:42
232
- msgid "Run Ansible roles"
233
- msgstr ""
234
-
235
260
  #: ../app/lib/actions/foreman_ansible/helpers/host_common.rb:10
236
261
  msgid "Playbook execution failed"
237
262
  msgstr ""
238
263
 
239
- #: ../app/lib/actions/foreman_ansible/helpers/host_common.rb:30 ../lib/foreman_ansible_core/remote_execution_core/ansible_runner.rb:35
264
+ #: ../app/lib/actions/foreman_ansible/helpers/host_common.rb:30 ../lib/foreman_ansible_core/remote_execution_core/ansible_runner.rb:36
240
265
  msgid "Error loading data from proxy"
241
266
  msgstr ""
242
267
 
@@ -313,30 +338,30 @@ msgid "Post-provision timeout"
313
338
  msgstr ""
314
339
 
315
340
  #: ../app/models/setting/ansible.rb:71
316
- msgid "Whether to put Ansible parameters in the \"hostvars\" top-level key of the inventory. By default it is true, so that Host Parameters can be used directly in the playbooks. When false, Host Parameters can only be accessed through foreman_params[\"host_parameter\"] in the playbooks."
317
- msgstr ""
318
-
319
- #: ../app/models/setting/ansible.rb:77
320
- msgid "Top level Ansible variables"
321
- msgstr ""
322
-
323
- #: ../app/models/setting/ansible.rb:81
324
341
  msgid "Timeout (in minutes) when hosts should have reported."
325
342
  msgstr ""
326
343
 
327
- #: ../app/models/setting/ansible.rb:83
344
+ #: ../app/models/setting/ansible.rb:73
328
345
  msgid "Ansible report timeout"
329
346
  msgstr ""
330
347
 
331
- #: ../app/models/setting/ansible.rb:87
348
+ #: ../app/models/setting/ansible.rb:77
332
349
  msgid "Disable host configuration status turning to out of sync for %{cfgmgmt} after report does not arrive within configured interval"
333
350
  msgstr ""
334
351
 
335
- #: ../app/models/setting/ansible.rb:91
352
+ #: ../app/models/setting/ansible.rb:81
336
353
  msgid "%{cfgmgmt} out of sync disabled"
337
354
  msgstr ""
338
355
 
339
- #: ../app/models/setting/ansible.rb:104 ../lib/foreman_ansible/register.rb:73
356
+ #: ../app/models/setting/ansible.rb:86
357
+ msgid "Foreman will run Ansible playbooks using this implementation"
358
+ msgstr ""
359
+
360
+ #: ../app/models/setting/ansible.rb:88
361
+ msgid "Implementation for running Ansible"
362
+ msgstr ""
363
+
364
+ #: ../app/models/setting/ansible.rb:104 ../lib/foreman_ansible/register.rb:92
340
365
  msgid "Ansible"
341
366
  msgstr ""
342
367
 
@@ -380,43 +405,43 @@ msgstr ""
380
405
  msgid "Check/Uncheck obsolete"
381
406
  msgstr ""
382
407
 
383
- #: ../app/views/ansible_roles/import.html.erb:19 ../app/views/ansible_variables/import.html.erb:19
408
+ #: ../app/views/ansible_roles/import.html.erb:19 ../app/views/ansible_variables/import.html.erb:22
384
409
  msgid "Check/Uncheck all"
385
410
  msgstr ""
386
411
 
387
- #: ../app/views/ansible_roles/import.html.erb:21 ../app/views/ansible_variables/import.html.erb:21
412
+ #: ../app/views/ansible_roles/import.html.erb:21 ../app/views/ansible_variables/import.html.erb:24
388
413
  msgid "Name"
389
414
  msgstr ""
390
415
 
391
- #: ../app/views/ansible_roles/import.html.erb:22 ../app/views/ansible_variables/import.html.erb:23
416
+ #: ../app/views/ansible_roles/import.html.erb:22 ../app/views/ansible_variables/import.html.erb:26
392
417
  msgid "Hosts count"
393
418
  msgstr ""
394
419
 
395
- #: ../app/views/ansible_roles/import.html.erb:23 ../app/views/ansible_variables/import.html.erb:24
420
+ #: ../app/views/ansible_roles/import.html.erb:23 ../app/views/ansible_variables/import.html.erb:27
396
421
  msgid "Hostgroups count"
397
422
  msgstr ""
398
423
 
399
- #: ../app/views/ansible_roles/import.html.erb:24 ../app/views/ansible_variables/import.html.erb:25
424
+ #: ../app/views/ansible_roles/import.html.erb:24 ../app/views/ansible_variables/import.html.erb:28
400
425
  msgid "Operation"
401
426
  msgstr ""
402
427
 
403
- #: ../app/views/ansible_roles/import.html.erb:35 ../app/views/ansible_variables/import.html.erb:36
428
+ #: ../app/views/ansible_roles/import.html.erb:35 ../app/views/ansible_variables/import.html.erb:39
404
429
  msgid "Check/Uncheck all %s changes"
405
430
  msgstr ""
406
431
 
407
- #: ../app/views/ansible_roles/import.html.erb:40 ../app/views/ansible_variables/import.html.erb:42
432
+ #: ../app/views/ansible_roles/import.html.erb:40 ../app/views/ansible_variables/import.html.erb:45
408
433
  msgid "Add"
409
434
  msgstr ""
410
435
 
411
- #: ../app/views/ansible_roles/import.html.erb:40 ../app/views/ansible_variables/import.html.erb:42
436
+ #: ../app/views/ansible_roles/import.html.erb:40 ../app/views/ansible_variables/import.html.erb:45
412
437
  msgid "Remove"
413
438
  msgstr ""
414
439
 
415
- #: ../app/views/ansible_roles/import.html.erb:48 ../app/views/ansible_variables/import.html.erb:50
440
+ #: ../app/views/ansible_roles/import.html.erb:48 ../app/views/ansible_variables/import.html.erb:53
416
441
  msgid "Cancel"
417
442
  msgstr ""
418
443
 
419
- #: ../app/views/ansible_roles/import.html.erb:49 ../app/views/ansible_variables/import.html.erb:51
444
+ #: ../app/views/ansible_roles/import.html.erb:49 ../app/views/ansible_variables/import.html.erb:12 ../app/views/ansible_variables/import.html.erb:45 ../app/views/ansible_variables/import.html.erb:54
420
445
  msgid "Update"
421
446
  msgstr ""
422
447
 
@@ -440,15 +465,15 @@ msgstr ""
440
465
  msgid "Imported at"
441
466
  msgstr ""
442
467
 
443
- #: ../app/views/ansible_roles/index.html.erb:13 ../app/views/ansible_variables/index.html.erb:12
468
+ #: ../app/views/ansible_roles/index.html.erb:13 ../app/views/ansible_variables/index.html.erb:16
444
469
  msgid "Actions"
445
470
  msgstr ""
446
471
 
447
- #: ../app/views/ansible_roles/index.html.erb:27 ../lib/foreman_ansible/register.rb:79
472
+ #: ../app/views/ansible_roles/index.html.erb:27 ../lib/foreman_ansible/register.rb:98
448
473
  msgid "Variables"
449
474
  msgstr ""
450
475
 
451
- #: ../app/views/ansible_roles/index.html.erb:33 ../app/views/ansible_variables/index.html.erb:36
476
+ #: ../app/views/ansible_roles/index.html.erb:33 ../app/views/ansible_variables/index.html.erb:41
452
477
  msgid "Delete %s?"
453
478
  msgstr ""
454
479
 
@@ -462,19 +487,83 @@ msgstr ""
462
487
  msgid "Learn more about this in the documentation."
463
488
  msgstr ""
464
489
 
465
- #: ../app/views/ansible_variables/_ansible_roles_list.html.erb:10
466
- msgid "Ansible Role"
490
+ #: ../app/views/ansible_variables/_fields.erb:4
491
+ msgid "Ansible Variable Details (Imported)"
467
492
  msgstr ""
468
493
 
469
- #: ../app/views/ansible_variables/_validator_text.html.erb:2
494
+ #: ../app/views/ansible_variables/_fields.erb:4
495
+ msgid "Ansible Variable Details"
496
+ msgstr ""
497
+
498
+ #: ../app/views/ansible_variables/_fields.erb:11
499
+ msgid "Default Behavior"
500
+ msgstr ""
501
+
502
+ #: ../app/views/ansible_variables/_fields.erb:12
503
+ msgid "Override the default value of the Ansible variable."
504
+ msgstr ""
505
+
506
+ #: ../app/views/ansible_variables/_fields.erb:14
507
+ msgid "Mark the variable to be managed by Foreman. When the Ansible role of this variable is assigned to a host, the default value will be added to Ansible inventory as a host variable. Specify matchers to set a different value for such variable."
508
+ msgstr ""
509
+
510
+ #: ../app/views/ansible_variables/_fields.erb:27
511
+ msgid "Value to use when there is no match."
512
+ msgstr ""
513
+
514
+ #: ../app/views/ansible_variables/_fields.erb:30
515
+ msgid "Hidden Value"
516
+ msgstr ""
517
+
518
+ #: ../app/views/ansible_variables/_fields.erb:33
519
+ msgid "Hide all values for this parameter."
520
+ msgstr ""
521
+
522
+ #: ../app/views/ansible_variables/_fields.erb:39
523
+ msgid "Optional Input Validator"
524
+ msgstr ""
525
+
526
+ #: ../app/views/ansible_variables/_fields.erb:41
470
527
  msgid "Before including these variables on your playbooks, Foreman will validate that your variables comply with the validation."
471
528
  msgstr ""
472
529
 
473
- #: ../app/views/ansible_variables/_validator_text.html.erb:4
474
- msgid "If ERB is used in a parameter value, the validation of the value will happen during the ENC request. If the value is invalid, the ENC request will fail."
530
+ #: ../app/views/ansible_variables/_fields.erb:44
531
+ msgid "If checked, will raise an error if there is no default value and no matcher provide a value."
532
+ msgstr ""
533
+
534
+ #: ../app/views/ansible_variables/_fields.erb:53
535
+ msgid "Prioritize Attribute Order"
475
536
  msgstr ""
476
537
 
477
- #: ../app/views/ansible_variables/edit.html.erb:4 ../app/views/ansible_variables/index.html.erb:1
538
+ #: ../app/views/ansible_variables/_fields.erb:54
539
+ msgid "Set the order in which values are resolved."
540
+ msgstr ""
541
+
542
+ #: ../app/views/ansible_variables/_fields.erb:55
543
+ msgid "Order"
544
+ msgstr ""
545
+
546
+ #: ../app/views/ansible_variables/_fields.erb:56
547
+ msgid "The order in which matchers keys are processed, first match wins.<br> You may use multiple attributes as a matcher key, for example, an order of <code>host group, environment</code> would expect a matcher such as <code>hostgroup = \"web servers\", environment = production</code>"
548
+ msgstr ""
549
+
550
+ #: ../app/views/ansible_variables/_fields.erb:59
551
+ msgid "Continue to look for matches after first find (only array/hash type)? Note: merging overrides ignores all matchers that are omitted."
552
+ msgstr ""
553
+
554
+ #: ../app/views/ansible_variables/_fields.erb:61
555
+ msgid "Include default value when merging all matching values."
556
+ msgstr ""
557
+
558
+ #: ../app/views/ansible_variables/_fields.erb:64
559
+ msgid "Avoid duplicate values when merging them (only array type)?"
560
+ msgstr ""
561
+
562
+ #: ../app/views/ansible_variables/_fields.erb:68
563
+ msgid "Specify Matchers"
564
+ msgstr ""
565
+
566
+ #: ../app/views/ansible_variables/edit.html.erb:4 ../app/views/ansible_variables/index.html.erb:1 ../app/views/ansible_variables/new.html.erb:4
478
567
  msgid "Ansible Variables"
479
568
  msgstr ""
480
569
 
@@ -490,22 +579,42 @@ msgstr ""
490
579
  msgid "Changed Ansible variables"
491
580
  msgstr ""
492
581
 
493
- #: ../app/views/ansible_variables/import.html.erb:22
582
+ #: ../app/views/ansible_variables/import.html.erb:14
583
+ msgid "Check/Uncheck update"
584
+ msgstr ""
585
+
586
+ #: ../app/views/ansible_variables/import.html.erb:25
494
587
  msgid "Ansible role"
495
588
  msgstr ""
496
589
 
497
- #: ../app/views/ansible_variables/index.html.erb:9
590
+ #: ../app/views/ansible_variables/index.html.erb:5
591
+ msgid "New Ansible Variable"
592
+ msgstr ""
593
+
594
+ #: ../app/views/ansible_variables/index.html.erb:12
498
595
  msgid "Variable|Name"
499
596
  msgstr ""
500
597
 
501
- #: ../app/views/ansible_variables/index.html.erb:10
598
+ #: ../app/views/ansible_variables/index.html.erb:13
502
599
  msgid "Variable|Role"
503
600
  msgstr ""
504
601
 
505
- #: ../app/views/ansible_variables/index.html.erb:11
602
+ #: ../app/views/ansible_variables/index.html.erb:14
506
603
  msgid "Type"
507
604
  msgstr ""
508
605
 
606
+ #: ../app/views/ansible_variables/index.html.erb:15
607
+ msgid "Imported?"
608
+ msgstr ""
609
+
610
+ #: ../app/views/ansible_variables/index.html.erb:23
611
+ msgid "Overriden"
612
+ msgstr ""
613
+
614
+ #: ../app/views/ansible_variables/new.html.erb:8 ../app/views/ansible_variables/new.html.erb:13
615
+ msgid "Create Ansible Variable"
616
+ msgstr ""
617
+
509
618
  #: ../app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb:5
510
619
  msgid "Play Roles"
511
620
  msgstr ""
@@ -518,14 +627,6 @@ msgstr ""
518
627
  msgid "Clone"
519
628
  msgstr ""
520
629
 
521
- #: ../app/views/foreman_ansible/ansible_roles/_select_tab_content.html.erb:9
522
- msgid "Available roles"
523
- msgstr ""
524
-
525
- #: ../app/views/foreman_ansible/ansible_roles/_select_tab_content.html.erb:10
526
- msgid "This list of roles will be applied when the host finishes<br/> provisioning. Users can also play these roles through the API<br/>or by clicking on the Play Roles button on the Host page "
527
- msgstr ""
528
-
529
630
  #: ../app/views/foreman_ansible/config_reports/_ansible.html.erb:7
530
631
  msgid "Level"
531
632
  msgstr ""
@@ -554,23 +655,23 @@ msgstr ""
554
655
  msgid "Insights remediation on %{hosts_count} host(s) has finished successfully"
555
656
  msgstr ""
556
657
 
557
- #: ../lib/foreman_ansible/register.rb:75
658
+ #: ../lib/foreman_ansible/register.rb:94
558
659
  msgid "Roles"
559
660
  msgstr ""
560
661
 
561
662
  #: ../lib/foreman_ansible/remote_execution.rb:20
562
- msgid "Ansible: Run host roles"
663
+ msgid "Run Ansible roles"
563
664
  msgstr ""
564
665
 
565
666
  #: ../lib/foreman_ansible/remote_execution.rb:21
566
667
  msgid "Runs an Ansible playbook which contains all the roles defined for a host"
567
668
  msgstr ""
568
669
 
569
- #: ../lib/foreman_ansible/remote_execution.rb:26
670
+ #: ../lib/foreman_ansible/remote_execution.rb:27
570
671
  msgid "Ansible: Run Insights maintenance plan"
571
672
  msgstr ""
572
673
 
573
- #: ../lib/foreman_ansible/remote_execution.rb:27
674
+ #: ../lib/foreman_ansible/remote_execution.rb:28
574
675
  msgid "Runs a given maintenance plan from Red Hat Access Insights given an ID."
575
676
  msgstr ""
576
677
 
@@ -579,11 +680,11 @@ msgid "Remote action:"
579
680
  msgstr ""
580
681
 
581
682
  #: action_names.rb:3
582
- msgid "Import facts"
683
+ msgid "Import Puppet classes"
583
684
  msgstr ""
584
685
 
585
686
  #: action_names.rb:4
586
- msgid "Import Puppet classes"
687
+ msgid "Import facts"
587
688
  msgstr ""
588
689
 
589
690
  #: action_names.rb:5