foreman_ansible 2.3.6 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/ui_ansible_roles_controller.rb +14 -0
  3. data/app/helpers/foreman_ansible/ansible_roles_helper.rb +4 -0
  4. data/app/models/ansible_role.rb +1 -0
  5. data/app/models/foreman_ansible/ansible_provider.rb +6 -1
  6. data/app/models/setting/ansible.rb +10 -10
  7. data/app/services/foreman_ansible/inventory_creator.rb +26 -23
  8. data/app/views/foreman_ansible/ansible_roles/_select_tab_content.html.erb +13 -13
  9. data/app/views/ui_ansible_roles/index.json.rabl +3 -0
  10. data/app/views/ui_ansible_roles/main.json.rabl +3 -0
  11. data/app/views/ui_ansible_roles/show.json.rabl +3 -0
  12. data/config/routes.rb +2 -0
  13. data/db/migrate/20190328114657_remove_top_level_ansible_variables_setting.rb +6 -0
  14. data/lib/foreman_ansible/register.rb +3 -2
  15. data/lib/foreman_ansible/version.rb +1 -1
  16. data/locale/de/foreman_ansible.edit.po +90 -191
  17. data/locale/en/foreman_ansible.edit.po +90 -191
  18. data/locale/es/foreman_ansible.edit.po +90 -191
  19. data/locale/fr/foreman_ansible.edit.po +90 -191
  20. data/locale/it/foreman_ansible.edit.po +90 -191
  21. data/locale/ja/foreman_ansible.edit.po +90 -191
  22. data/locale/ko/foreman_ansible.edit.po +90 -191
  23. data/locale/pt_BR/foreman_ansible.edit.po +90 -191
  24. data/locale/ru/foreman_ansible.edit.po +90 -191
  25. data/locale/zh_CN/foreman_ansible.edit.po +90 -191
  26. data/locale/zh_TW/foreman_ansible.edit.po +90 -191
  27. data/package.json +50 -9
  28. data/test/factories/ansible_variables.rb +1 -0
  29. data/test/functional/ui_ansible_roles_controller_test.rb +14 -0
  30. data/test/unit/lib/foreman_ansible_core/playbook_runner_test.rb +11 -11
  31. data/test/unit/services/inventory_creator_test.rb +75 -24
  32. data/webpack/__mocks__/foremanReact/components/Pagination/PaginationWrapper.js +2 -0
  33. data/webpack/__mocks__/foremanReact/components/common/EmptyState.js +5 -0
  34. data/webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcher.js +140 -0
  35. data/webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcher.scss +45 -0
  36. data/webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherActions.js +69 -0
  37. data/webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherConstants.js +7 -0
  38. data/webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherHelpers.js +7 -0
  39. data/webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherReducer.js +69 -0
  40. data/webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherSelectors.js +68 -0
  41. data/webpack/components/AnsibleRolesSwitcher/__fixtures__/ansibleRolesData.fixtures.js +20 -0
  42. data/webpack/components/AnsibleRolesSwitcher/__fixtures__/ansibleRolesSwitcherReducer.fixtures.js +36 -0
  43. data/webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js +30 -0
  44. data/webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcherReducer.test.js +73 -0
  45. data/webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcherSelectors.test.js +43 -0
  46. data/webpack/components/AnsibleRolesSwitcher/__tests__/__snapshots__/AnsibleRolesSwitcher.test.js.snap +79 -0
  47. data/webpack/components/AnsibleRolesSwitcher/__tests__/__snapshots__/AnsibleRolesSwitcherReducer.test.js.snap +399 -0
  48. data/webpack/components/AnsibleRolesSwitcher/__tests__/__snapshots__/AnsibleRolesSwitcherSelectors.test.js.snap +60 -0
  49. data/webpack/components/AnsibleRolesSwitcher/components/AnsiblePermissionDenied.js +33 -0
  50. data/webpack/components/AnsibleRolesSwitcher/components/AnsiblePermissionDenied.test.js +9 -0
  51. data/webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.js +56 -0
  52. data/webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js +26 -0
  53. data/webpack/components/AnsibleRolesSwitcher/components/AnsibleRoleActionButton.js +16 -0
  54. data/webpack/components/AnsibleRolesSwitcher/components/AnsibleRolesSwitcherError.js +32 -0
  55. data/webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.js +67 -0
  56. data/webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.test.js +19 -0
  57. data/webpack/components/AnsibleRolesSwitcher/components/AvailableRolesList.js +52 -0
  58. data/webpack/components/AnsibleRolesSwitcher/components/AvailableRolesList.test.js +22 -0
  59. data/webpack/components/AnsibleRolesSwitcher/components/__snapshots__/AnsiblePermissionDenied.test.js.snap +26 -0
  60. data/webpack/components/AnsibleRolesSwitcher/components/__snapshots__/AnsibleRole.test.js.snap +108 -0
  61. data/webpack/components/AnsibleRolesSwitcher/components/__snapshots__/AssignedRolesList.test.js.snap +64 -0
  62. data/webpack/components/AnsibleRolesSwitcher/components/__snapshots__/AvailableRolesList.test.js.snap +54 -0
  63. data/webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js +14 -0
  64. data/webpack/components/AnsibleRolesSwitcher/index.js +44 -0
  65. data/webpack/components/ReportJsonViewer.js +11 -7
  66. data/webpack/index.js +14 -1
  67. data/webpack/reducer.js +7 -0
  68. data/webpack/test_setup.js +11 -0
  69. metadata +44 -2
@@ -27,19 +27,14 @@ msgstr ""
27
27
  msgid "No changes in roles detected on %s."
28
28
  msgstr ""
29
29
 
30
- #: ../app/controllers/ansible_variables_controller.rb:39
31
- msgid "No changes in variables detected on %s."
32
- msgstr ""
33
-
34
- #: ../app/controllers/ansible_variables_controller.rb:49
30
+ #: ../app/controllers/ansible_variables_controller.rb:31
35
31
  msgid ""
36
32
  "Import of variables successfully finished.\n"
37
- "Added: #{results[:added].count} \n"
38
- " Removed: #{results[:obsolete].count} \n"
39
- "Updated: #{results[:updated].count}"
33
+ "Added: #{results[:added].join(', ')} \n"
34
+ " Removed: #{results[:obsolete].join(', ')}"
40
35
  msgstr ""
41
36
 
42
- #: ../app/controllers/ansible_variables_controller.rb:102
37
+ #: ../app/controllers/ansible_variables_controller.rb:75
43
38
  msgid "No proxy found to import variables from, ensure that the smart proxy has the Ansible feature enabled."
44
39
  msgstr ""
45
40
 
@@ -75,7 +70,7 @@ msgstr ""
75
70
  msgid "Import Ansible roles"
76
71
  msgstr ""
77
72
 
78
- #: ../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
73
+ #: ../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
79
74
  msgid "Smart Proxy to import from"
80
75
  msgstr ""
81
76
 
@@ -95,134 +90,114 @@ msgstr ""
95
90
  msgid "Smart Proxy to fetch from"
96
91
  msgstr ""
97
92
 
98
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:20
93
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:19
99
94
  msgid "Show variable"
100
95
  msgstr ""
101
96
 
102
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:24
97
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:23
103
98
  msgid "List Ansible variables"
104
99
  msgstr ""
105
100
 
106
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:30
101
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:29
107
102
  msgid "Deletes Ansible variable"
108
103
  msgstr ""
109
104
 
110
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:39
105
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:38
111
106
  msgid "Name of variable"
112
107
  msgstr ""
113
108
 
114
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:40
109
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:39
115
110
  msgid "Role ID"
116
111
  msgstr ""
117
112
 
118
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:41
113
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:40
119
114
  msgid "Default value of variable"
120
115
  msgstr ""
121
116
 
122
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:42
117
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:41
123
118
  msgid "When enabled the parameter is hidden in the UI"
124
119
  msgstr ""
125
120
 
126
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:43
121
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:42
127
122
  msgid "The order in which values are resolved"
128
123
  msgstr ""
129
124
 
130
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:44
125
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:43
131
126
  msgid "Description of variable"
132
127
  msgstr ""
133
128
 
134
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:45
129
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:44
135
130
  msgid "Types of validation values"
136
131
  msgstr ""
137
132
 
138
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:46
133
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:45
139
134
  msgid "Used to enforce certain values for the parameter values"
140
135
  msgstr ""
141
136
 
142
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:47
137
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:46
143
138
  msgid "Types of variable values"
144
139
  msgstr ""
145
140
 
146
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:48
141
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:47
147
142
  msgid "Merge all matching values (only array/hash type)"
148
143
  msgstr ""
149
144
 
150
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:49
145
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:48
151
146
  msgid "Include default value when merging all matching values"
152
147
  msgstr ""
153
148
 
154
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:50
149
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:49
155
150
  msgid "Remove duplicate values (only array type)"
156
151
  msgstr ""
157
152
 
158
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:54
159
- msgid "Create Ansible variable"
160
- msgstr ""
161
-
162
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:61
153
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:53
163
154
  msgid "Updates Ansible variable"
164
155
  msgstr ""
165
156
 
166
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:71
157
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:63
167
158
  msgid "Import Ansible variables. This will only import variables for already existing roles, it will not import any new roles"
168
159
  msgstr ""
169
160
 
170
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:81
161
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:73
171
162
  msgid "Obsolete Ansible variables. This will only obsolete variables for already existing roles, it will not delete any old roles"
172
163
  msgstr ""
173
164
 
174
- #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:20
165
+ #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:17
175
166
  msgid "Plays Ansible roles on a hostgroup"
176
167
  msgstr ""
177
168
 
178
- #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:30
169
+ #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:27
179
170
  msgid "Plays Ansible roles on hostgroups"
180
171
  msgstr ""
181
172
 
182
- #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:31
173
+ #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:28
183
174
  msgid "IDs of hostgroups to play roles on"
184
175
  msgstr ""
185
176
 
186
- #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:42
177
+ #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:39
187
178
  msgid "List all Ansible roles for a hostgroup"
188
179
  msgstr ""
189
180
 
190
- #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:53
191
- msgid "Assigns Ansible roles to a hostgroup"
192
- msgstr ""
193
-
194
- #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:56
195
- msgid "Ansible roles to assign to a hostgroup"
196
- msgstr ""
197
-
198
181
  #: ../app/controllers/foreman_ansible/api/v2/hostgroups_param_group_extensions.rb:13 ../app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb:13
199
182
  msgid "IDs of associated ansible roles"
200
183
  msgstr ""
201
184
 
202
- #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:26
185
+ #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:22
203
186
  msgid "Plays Ansible roles on a host"
204
187
  msgstr ""
205
188
 
206
- #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:35
189
+ #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:31
207
190
  msgid "Plays Ansible roles on hosts"
208
191
  msgstr ""
209
192
 
210
- #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:36
193
+ #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:32
211
194
  msgid "IDs of hosts to play roles on"
212
195
  msgstr ""
213
196
 
214
- #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:46
197
+ #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:42
215
198
  msgid "List all Ansible roles for a host"
216
199
  msgstr ""
217
200
 
218
- #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:56
219
- msgid "Assigns Ansible roles to a host"
220
- msgstr ""
221
-
222
- #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:59
223
- msgid "Ansible roles to assign to a host"
224
- msgstr ""
225
-
226
201
  #: ../app/controllers/foreman_ansible/concerns/hostgroups_controller_extensions.rb:27
227
202
  msgid "Host group has no associated hosts"
228
203
  msgstr ""
@@ -236,30 +211,30 @@ msgid "Could not run Ansible roles for %{host}"
236
211
  msgstr ""
237
212
 
238
213
  #: ../app/helpers/foreman_ansible/ansible_roles_helper.rb:8
239
- msgid "Import from %s"
214
+ msgid "From %s"
240
215
  msgstr ""
241
216
 
242
- #: ../app/helpers/foreman_ansible/ansible_roles_helper.rb:23
243
- msgid "Ansible Role"
244
- msgstr ""
245
-
246
- #: ../app/helpers/foreman_ansible/ansible_roles_helper.rb:29
217
+ #: ../app/helpers/foreman_ansible/ansible_roles_helper.rb:15
247
218
  msgid "Import"
248
219
  msgstr ""
249
220
 
250
- #: ../app/helpers/foreman_ansible/ansible_roles_helper.rb:35
221
+ #: ../app/helpers/foreman_ansible/ansible_roles_helper.rb:21
251
222
  msgid "%s ago"
252
223
  msgstr ""
253
224
 
254
- #: ../app/helpers/foreman_ansible/hosts_helper_extensions.rb:13 ../app/lib/actions/foreman_ansible/helpers/host_common.rb:18
225
+ #: ../app/helpers/foreman_ansible/hosts_helper_extensions.rb:23 ../app/lib/actions/foreman_ansible/helpers/host_common.rb:18
255
226
  msgid "Play Ansible roles"
256
227
  msgstr ""
257
228
 
229
+ #: ../app/helpers/foreman_ansible/hosts_helper_extensions.rb:42
230
+ msgid "Run Ansible roles"
231
+ msgstr ""
232
+
258
233
  #: ../app/lib/actions/foreman_ansible/helpers/host_common.rb:10
259
234
  msgid "Playbook execution failed"
260
235
  msgstr ""
261
236
 
262
- #: ../app/lib/actions/foreman_ansible/helpers/host_common.rb:30 ../lib/foreman_ansible_core/remote_execution_core/ansible_runner.rb:36
237
+ #: ../app/lib/actions/foreman_ansible/helpers/host_common.rb:30 ../lib/foreman_ansible_core/remote_execution_core/ansible_runner.rb:35
263
238
  msgid "Error loading data from proxy"
264
239
  msgstr ""
265
240
 
@@ -336,30 +311,30 @@ msgid "Post-provision timeout"
336
311
  msgstr ""
337
312
 
338
313
  #: ../app/models/setting/ansible.rb:71
339
- msgid "Timeout (in minutes) when hosts should have reported."
340
- msgstr ""
341
-
342
- #: ../app/models/setting/ansible.rb:73
343
- msgid "Ansible report timeout"
314
+ 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."
344
315
  msgstr ""
345
316
 
346
317
  #: ../app/models/setting/ansible.rb:77
347
- msgid "Disable host configuration status turning to out of sync for %{cfgmgmt} after report does not arrive within configured interval"
318
+ msgid "Top level Ansible variables"
348
319
  msgstr ""
349
320
 
350
321
  #: ../app/models/setting/ansible.rb:81
351
- msgid "%{cfgmgmt} out of sync disabled"
322
+ msgid "Timeout (in minutes) when hosts should have reported."
352
323
  msgstr ""
353
324
 
354
- #: ../app/models/setting/ansible.rb:86
355
- msgid "Foreman will run Ansible playbooks using this implementation"
325
+ #: ../app/models/setting/ansible.rb:83
326
+ msgid "Ansible report timeout"
356
327
  msgstr ""
357
328
 
358
- #: ../app/models/setting/ansible.rb:88
359
- msgid "Implementation for running Ansible"
329
+ #: ../app/models/setting/ansible.rb:87
330
+ msgid "Disable host configuration status turning to out of sync for %{cfgmgmt} after report does not arrive within configured interval"
331
+ msgstr ""
332
+
333
+ #: ../app/models/setting/ansible.rb:91
334
+ msgid "%{cfgmgmt} out of sync disabled"
360
335
  msgstr ""
361
336
 
362
- #: ../app/models/setting/ansible.rb:104 ../lib/foreman_ansible/register.rb:92
337
+ #: ../app/models/setting/ansible.rb:104 ../lib/foreman_ansible/register.rb:73
363
338
  msgid "Ansible"
364
339
  msgstr ""
365
340
 
@@ -403,43 +378,43 @@ msgstr ""
403
378
  msgid "Check/Uncheck obsolete"
404
379
  msgstr ""
405
380
 
406
- #: ../app/views/ansible_roles/import.html.erb:19 ../app/views/ansible_variables/import.html.erb:22
381
+ #: ../app/views/ansible_roles/import.html.erb:19 ../app/views/ansible_variables/import.html.erb:19
407
382
  msgid "Check/Uncheck all"
408
383
  msgstr ""
409
384
 
410
- #: ../app/views/ansible_roles/import.html.erb:21 ../app/views/ansible_variables/import.html.erb:24
385
+ #: ../app/views/ansible_roles/import.html.erb:21 ../app/views/ansible_variables/import.html.erb:21
411
386
  msgid "Name"
412
387
  msgstr ""
413
388
 
414
- #: ../app/views/ansible_roles/import.html.erb:22 ../app/views/ansible_variables/import.html.erb:26
389
+ #: ../app/views/ansible_roles/import.html.erb:22 ../app/views/ansible_variables/import.html.erb:23
415
390
  msgid "Hosts count"
416
391
  msgstr ""
417
392
 
418
- #: ../app/views/ansible_roles/import.html.erb:23 ../app/views/ansible_variables/import.html.erb:27
393
+ #: ../app/views/ansible_roles/import.html.erb:23 ../app/views/ansible_variables/import.html.erb:24
419
394
  msgid "Hostgroups count"
420
395
  msgstr ""
421
396
 
422
- #: ../app/views/ansible_roles/import.html.erb:24 ../app/views/ansible_variables/import.html.erb:28
397
+ #: ../app/views/ansible_roles/import.html.erb:24 ../app/views/ansible_variables/import.html.erb:25
423
398
  msgid "Operation"
424
399
  msgstr ""
425
400
 
426
- #: ../app/views/ansible_roles/import.html.erb:35 ../app/views/ansible_variables/import.html.erb:39
401
+ #: ../app/views/ansible_roles/import.html.erb:35 ../app/views/ansible_variables/import.html.erb:36
427
402
  msgid "Check/Uncheck all %s changes"
428
403
  msgstr ""
429
404
 
430
- #: ../app/views/ansible_roles/import.html.erb:40 ../app/views/ansible_variables/import.html.erb:45
405
+ #: ../app/views/ansible_roles/import.html.erb:40 ../app/views/ansible_variables/import.html.erb:42
431
406
  msgid "Add"
432
407
  msgstr ""
433
408
 
434
- #: ../app/views/ansible_roles/import.html.erb:40 ../app/views/ansible_variables/import.html.erb:45
409
+ #: ../app/views/ansible_roles/import.html.erb:40 ../app/views/ansible_variables/import.html.erb:42
435
410
  msgid "Remove"
436
411
  msgstr ""
437
412
 
438
- #: ../app/views/ansible_roles/import.html.erb:48 ../app/views/ansible_variables/import.html.erb:53
413
+ #: ../app/views/ansible_roles/import.html.erb:48 ../app/views/ansible_variables/import.html.erb:50
439
414
  msgid "Cancel"
440
415
  msgstr ""
441
416
 
442
- #: ../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
417
+ #: ../app/views/ansible_roles/import.html.erb:49 ../app/views/ansible_variables/import.html.erb:51
443
418
  msgid "Update"
444
419
  msgstr ""
445
420
 
@@ -463,15 +438,15 @@ msgstr ""
463
438
  msgid "Imported at"
464
439
  msgstr ""
465
440
 
466
- #: ../app/views/ansible_roles/index.html.erb:13 ../app/views/ansible_variables/index.html.erb:16
441
+ #: ../app/views/ansible_roles/index.html.erb:13 ../app/views/ansible_variables/index.html.erb:12
467
442
  msgid "Actions"
468
443
  msgstr ""
469
444
 
470
- #: ../app/views/ansible_roles/index.html.erb:27 ../lib/foreman_ansible/register.rb:98
445
+ #: ../app/views/ansible_roles/index.html.erb:27 ../lib/foreman_ansible/register.rb:79
471
446
  msgid "Variables"
472
447
  msgstr ""
473
448
 
474
- #: ../app/views/ansible_roles/index.html.erb:33 ../app/views/ansible_variables/index.html.erb:41
449
+ #: ../app/views/ansible_roles/index.html.erb:33 ../app/views/ansible_variables/index.html.erb:36
475
450
  msgid "Delete %s?"
476
451
  msgstr ""
477
452
 
@@ -485,83 +460,19 @@ msgstr ""
485
460
  msgid "Learn more about this in the documentation."
486
461
  msgstr ""
487
462
 
488
- #: ../app/views/ansible_variables/_fields.erb:4
489
- msgid "Ansible Variable Details (Imported)"
490
- msgstr ""
491
-
492
- #: ../app/views/ansible_variables/_fields.erb:4
493
- msgid "Ansible Variable Details"
494
- msgstr ""
495
-
496
- #: ../app/views/ansible_variables/_fields.erb:11
497
- msgid "Default Behavior"
498
- msgstr ""
499
-
500
- #: ../app/views/ansible_variables/_fields.erb:12
501
- msgid "Override the default value of the Ansible variable."
502
- msgstr ""
503
-
504
- #: ../app/views/ansible_variables/_fields.erb:14
505
- 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."
506
- msgstr ""
507
-
508
- #: ../app/views/ansible_variables/_fields.erb:27
509
- msgid "Value to use when there is no match."
510
- msgstr ""
511
-
512
- #: ../app/views/ansible_variables/_fields.erb:30
513
- msgid "Hidden Value"
514
- msgstr ""
515
-
516
- #: ../app/views/ansible_variables/_fields.erb:33
517
- msgid "Hide all values for this parameter."
518
- msgstr ""
519
-
520
- #: ../app/views/ansible_variables/_fields.erb:39
521
- msgid "Optional Input Validator"
463
+ #: ../app/views/ansible_variables/_ansible_roles_list.html.erb:10
464
+ msgid "Ansible Role"
522
465
  msgstr ""
523
466
 
524
- #: ../app/views/ansible_variables/_fields.erb:41
467
+ #: ../app/views/ansible_variables/_validator_text.html.erb:2
525
468
  msgid "Before including these variables on your playbooks, Foreman will validate that your variables comply with the validation."
526
469
  msgstr ""
527
470
 
528
- #: ../app/views/ansible_variables/_fields.erb:44
529
- msgid "If checked, will raise an error if there is no default value and no matcher provide a value."
530
- msgstr ""
531
-
532
- #: ../app/views/ansible_variables/_fields.erb:53
533
- msgid "Prioritize Attribute Order"
534
- msgstr ""
535
-
536
- #: ../app/views/ansible_variables/_fields.erb:54
537
- msgid "Set the order in which values are resolved."
538
- msgstr ""
539
-
540
- #: ../app/views/ansible_variables/_fields.erb:55
541
- msgid "Order"
542
- msgstr ""
543
-
544
- #: ../app/views/ansible_variables/_fields.erb:56
545
- 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>"
546
- msgstr ""
547
-
548
- #: ../app/views/ansible_variables/_fields.erb:59
549
- msgid "Continue to look for matches after first find (only array/hash type)? Note: merging overrides ignores all matchers that are omitted."
550
- msgstr ""
551
-
552
- #: ../app/views/ansible_variables/_fields.erb:61
553
- msgid "Include default value when merging all matching values."
471
+ #: ../app/views/ansible_variables/_validator_text.html.erb:4
472
+ 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."
554
473
  msgstr ""
555
474
 
556
- #: ../app/views/ansible_variables/_fields.erb:64
557
- msgid "Avoid duplicate values when merging them (only array type)?"
558
- msgstr ""
559
-
560
- #: ../app/views/ansible_variables/_fields.erb:68
561
- msgid "Specify Matchers"
562
- msgstr ""
563
-
564
- #: ../app/views/ansible_variables/edit.html.erb:4 ../app/views/ansible_variables/index.html.erb:1 ../app/views/ansible_variables/new.html.erb:4
475
+ #: ../app/views/ansible_variables/edit.html.erb:4 ../app/views/ansible_variables/index.html.erb:1
565
476
  msgid "Ansible Variables"
566
477
  msgstr ""
567
478
 
@@ -577,42 +488,22 @@ msgstr ""
577
488
  msgid "Changed Ansible variables"
578
489
  msgstr ""
579
490
 
580
- #: ../app/views/ansible_variables/import.html.erb:14
581
- msgid "Check/Uncheck update"
582
- msgstr ""
583
-
584
- #: ../app/views/ansible_variables/import.html.erb:25
491
+ #: ../app/views/ansible_variables/import.html.erb:22
585
492
  msgid "Ansible role"
586
493
  msgstr ""
587
494
 
588
- #: ../app/views/ansible_variables/index.html.erb:5
589
- msgid "New Ansible Variable"
590
- msgstr ""
591
-
592
- #: ../app/views/ansible_variables/index.html.erb:12
495
+ #: ../app/views/ansible_variables/index.html.erb:9
593
496
  msgid "Variable|Name"
594
497
  msgstr ""
595
498
 
596
- #: ../app/views/ansible_variables/index.html.erb:13
499
+ #: ../app/views/ansible_variables/index.html.erb:10
597
500
  msgid "Variable|Role"
598
501
  msgstr ""
599
502
 
600
- #: ../app/views/ansible_variables/index.html.erb:14
503
+ #: ../app/views/ansible_variables/index.html.erb:11
601
504
  msgid "Type"
602
505
  msgstr ""
603
506
 
604
- #: ../app/views/ansible_variables/index.html.erb:15
605
- msgid "Imported?"
606
- msgstr ""
607
-
608
- #: ../app/views/ansible_variables/index.html.erb:23
609
- msgid "Overriden"
610
- msgstr ""
611
-
612
- #: ../app/views/ansible_variables/new.html.erb:8 ../app/views/ansible_variables/new.html.erb:13
613
- msgid "Create Ansible Variable"
614
- msgstr ""
615
-
616
507
  #: ../app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb:5
617
508
  msgid "Play Roles"
618
509
  msgstr ""
@@ -625,6 +516,14 @@ msgstr ""
625
516
  msgid "Clone"
626
517
  msgstr ""
627
518
 
519
+ #: ../app/views/foreman_ansible/ansible_roles/_select_tab_content.html.erb:9
520
+ msgid "Available roles"
521
+ msgstr ""
522
+
523
+ #: ../app/views/foreman_ansible/ansible_roles/_select_tab_content.html.erb:10
524
+ 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 "
525
+ msgstr ""
526
+
628
527
  #: ../app/views/foreman_ansible/config_reports/_ansible.html.erb:7
629
528
  msgid "Level"
630
529
  msgstr ""
@@ -653,32 +552,32 @@ msgstr ""
653
552
  msgid "Insights remediation on %{hosts_count} host(s) has finished successfully"
654
553
  msgstr ""
655
554
 
656
- #: ../lib/foreman_ansible/register.rb:94
555
+ #: ../lib/foreman_ansible/register.rb:75
657
556
  msgid "Roles"
658
557
  msgstr ""
659
558
 
660
559
  #: ../lib/foreman_ansible/remote_execution.rb:20
661
- msgid "Run Ansible roles"
560
+ msgid "Ansible: Run host roles"
662
561
  msgstr ""
663
562
 
664
563
  #: ../lib/foreman_ansible/remote_execution.rb:21
665
564
  msgid "Runs an Ansible playbook which contains all the roles defined for a host"
666
565
  msgstr ""
667
566
 
668
- #: ../lib/foreman_ansible/remote_execution.rb:27
567
+ #: ../lib/foreman_ansible/remote_execution.rb:26
669
568
  msgid "Ansible: Run Insights maintenance plan"
670
569
  msgstr ""
671
570
 
672
- #: ../lib/foreman_ansible/remote_execution.rb:28
571
+ #: ../lib/foreman_ansible/remote_execution.rb:27
673
572
  msgid "Runs a given maintenance plan from Red Hat Access Insights given an ID."
674
573
  msgstr ""
675
574
 
676
575
  #: action_names.rb:2
677
- msgid "Import facts"
576
+ msgid "Remote action:"
678
577
  msgstr ""
679
578
 
680
579
  #: action_names.rb:3
681
- msgid "Action with sub plans"
580
+ msgid "Import facts"
682
581
  msgstr ""
683
582
 
684
583
  #: action_names.rb:4
@@ -686,7 +585,7 @@ msgid "Import Puppet classes"
686
585
  msgstr ""
687
586
 
688
587
  #: action_names.rb:5
689
- msgid "Remote action:"
588
+ msgid "Action with sub plans"
690
589
  msgstr ""
691
590
 
692
591
  #: gemspec.rb:2