foreman_ansible 2.3.0 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -4
  3. data/app/controllers/api/v2/ansible_override_values_controller.rb +53 -0
  4. data/app/controllers/api/v2/ansible_roles_controller.rb +2 -1
  5. data/app/controllers/api/v2/ansible_variables_controller.rb +32 -4
  6. data/app/controllers/concerns/foreman/controller/parameters/ansible_override_value.rb +36 -0
  7. data/app/models/concerns/foreman_ansible/host_managed_extensions.rb +56 -37
  8. data/app/services/foreman_ansible/inventory_creator.rb +10 -5
  9. data/app/services/foreman_ansible/operating_system_parser.rb +10 -0
  10. data/app/services/foreman_ansible/roles_importer.rb +1 -2
  11. data/app/views/ansible_variables/index.html.erb +1 -1
  12. data/app/views/api/v2/ansible_override_values/show.json.rabl +3 -0
  13. data/app/views/api/v2/ansible_variables/destroy.json.rabl +3 -0
  14. data/app/views/api/v2/ansible_variables/show.json.rabl +5 -4
  15. data/config/routes.rb +3 -1
  16. data/lib/foreman_ansible/engine.rb +2 -2
  17. data/lib/foreman_ansible/version.rb +1 -1
  18. data/locale/action_names.rb +3 -3
  19. data/locale/de/foreman_ansible.edit.po +238 -87
  20. data/locale/de/foreman_ansible.po +77 -2
  21. data/locale/en/foreman_ansible.edit.po +238 -87
  22. data/locale/en/foreman_ansible.po +77 -2
  23. data/locale/es/foreman_ansible.edit.po +238 -87
  24. data/locale/es/foreman_ansible.po +77 -2
  25. data/locale/foreman_ansible.pot +126 -24
  26. data/locale/fr/foreman_ansible.edit.po +238 -87
  27. data/locale/fr/foreman_ansible.po +77 -2
  28. data/locale/it/foreman_ansible.edit.po +238 -87
  29. data/locale/it/foreman_ansible.po +77 -2
  30. data/locale/ja/foreman_ansible.edit.po +238 -87
  31. data/locale/ja/foreman_ansible.po +77 -2
  32. data/locale/ko/foreman_ansible.edit.po +238 -87
  33. data/locale/ko/foreman_ansible.po +77 -2
  34. data/locale/pt_BR/foreman_ansible.edit.po +238 -87
  35. data/locale/pt_BR/foreman_ansible.po +77 -2
  36. data/locale/ru/foreman_ansible.edit.po +238 -87
  37. data/locale/ru/foreman_ansible.po +77 -2
  38. data/locale/zh_CN/foreman_ansible.edit.po +238 -87
  39. data/locale/zh_CN/foreman_ansible.po +77 -2
  40. data/locale/zh_TW/foreman_ansible.edit.po +238 -87
  41. data/locale/zh_TW/foreman_ansible.po +77 -2
  42. data/test/functional/api/v2/ansible_roles_controller_test.rb +8 -7
  43. data/test/unit/services/fact_parser_test.rb +7 -3
  44. data/test/unit/services/inventory_creator_test.rb +15 -1
  45. metadata +8 -4
@@ -5,7 +5,7 @@
5
5
  #
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_ansible 2.2.6\n"
8
+ "Project-Id-Version: foreman_ansible 2.3.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"
@@ -50,6 +50,9 @@ msgstr ""
50
50
  msgid "Ansible role"
51
51
  msgstr ""
52
52
 
53
+ msgid "Ansible role names to import"
54
+ msgstr ""
55
+
53
56
  msgid "Ansible support in Foreman"
54
57
  msgstr ""
55
58
 
@@ -98,6 +101,12 @@ msgstr ""
98
101
  msgid "Could not run Ansible roles for %{host}"
99
102
  msgstr ""
100
103
 
104
+ msgid "Create an override value for a specific ansible variable"
105
+ msgstr ""
106
+
107
+ msgid "Default value of variable"
108
+ msgstr ""
109
+
101
110
  msgid "Default verbosity level"
102
111
  msgstr ""
103
112
 
@@ -110,6 +119,12 @@ msgstr ""
110
119
  msgid "Deletes Ansible variable"
111
120
  msgstr ""
112
121
 
122
+ msgid "Description of variable"
123
+ msgstr ""
124
+
125
+ msgid "Destroy an override value"
126
+ msgstr ""
127
+
113
128
  msgid "Disable host configuration status turning to out of sync for %{cfgmgmt} after report does not arrive within configured interval"
114
129
  msgstr ""
115
130
 
@@ -128,6 +143,9 @@ msgstr ""
128
143
  msgid "Error loading data from proxy"
129
144
  msgstr ""
130
145
 
146
+ msgid "Fetch Ansible roles available to be imported"
147
+ msgstr ""
148
+
131
149
  msgid "Foreman"
132
150
  msgstr ""
133
151
 
@@ -155,6 +173,12 @@ msgstr ""
155
173
  msgid "IDs of associated ansible roles"
156
174
  msgstr ""
157
175
 
176
+ msgid "IDs of hostgroups to play roles on"
177
+ msgstr ""
178
+
179
+ msgid "IDs of hosts to play roles on"
180
+ msgstr ""
181
+
158
182
  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."
159
183
  msgstr ""
160
184
 
@@ -185,6 +209,9 @@ msgstr ""
185
209
  msgid "Imported at"
186
210
  msgstr ""
187
211
 
212
+ msgid "Include default value when merging all matching values"
213
+ msgstr ""
214
+
188
215
  msgid "Insights remediation on %{hosts_count} host(s) has finished successfully"
189
216
  msgstr ""
190
217
 
@@ -218,6 +245,15 @@ msgstr ""
218
245
  msgid "List Ansible variables"
219
246
  msgstr ""
220
247
 
248
+ msgid "List all Ansible roles for a host"
249
+ msgstr ""
250
+
251
+ msgid "List all Ansible roles for a hostgroup"
252
+ msgstr ""
253
+
254
+ msgid "Merge all matching values (only array/hash type)"
255
+ msgstr ""
256
+
221
257
  msgid "Message"
222
258
  msgstr ""
223
259
 
@@ -227,6 +263,9 @@ msgstr ""
227
263
  msgid "Name"
228
264
  msgstr ""
229
265
 
266
+ msgid "Name of variable"
267
+ msgstr ""
268
+
230
269
  msgid "Nest"
231
270
  msgstr ""
232
271
 
@@ -262,6 +301,12 @@ msgstr ""
262
301
  msgid "Operation"
263
302
  msgstr ""
264
303
 
304
+ msgid "Override match"
305
+ msgstr ""
306
+
307
+ msgid "Override value, required if omit is false"
308
+ msgstr ""
309
+
265
310
  msgid "Play Ansible roles"
266
311
  msgstr ""
267
312
 
@@ -301,6 +346,12 @@ msgstr ""
301
346
  msgid "Remove"
302
347
  msgstr ""
303
348
 
349
+ msgid "Remove duplicate values (only array type)"
350
+ msgstr ""
351
+
352
+ msgid "Role ID"
353
+ msgstr ""
354
+
304
355
  msgid "Roles"
305
356
  msgstr ""
306
357
 
@@ -325,9 +376,18 @@ msgstr ""
325
376
  msgid "Show variable"
326
377
  msgstr ""
327
378
 
379
+ msgid "Smart Proxy to fetch from"
380
+ msgstr ""
381
+
328
382
  msgid "Smart Proxy to import from"
329
383
  msgstr ""
330
384
 
385
+ msgid "The order in which values are resolved"
386
+ msgstr ""
387
+
388
+ msgid "There are no Ansible roles to play"
389
+ msgstr ""
390
+
331
391
  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 "
332
392
  msgstr ""
333
393
 
@@ -346,6 +406,12 @@ msgstr ""
346
406
  msgid "Type"
347
407
  msgstr ""
348
408
 
409
+ msgid "Types of validation values"
410
+ msgstr ""
411
+
412
+ msgid "Types of variable values"
413
+ msgstr ""
414
+
349
415
  msgid "Unable to get roles from Ansible"
350
416
  msgstr ""
351
417
 
@@ -355,12 +421,18 @@ msgstr ""
355
421
  msgid "Update"
356
422
  msgstr ""
357
423
 
424
+ msgid "Updates Ansible variable"
425
+ msgstr ""
426
+
358
427
  msgid "Use this connection type by default when running Ansible playbooks. You can override this on hosts by adding a parameter \"ansible_connection\""
359
428
  msgstr ""
360
429
 
361
430
  msgid "Use this to supply a path to an SSH Private Key that Ansible will use in lieu of a password Override with \"ansible_ssh_private_key_file\" host parameter"
362
431
  msgstr ""
363
432
 
433
+ msgid "Used to enforce certain values for the parameter values"
434
+ msgstr ""
435
+
364
436
  msgid "Variables"
365
437
  msgstr ""
366
438
 
@@ -370,7 +442,10 @@ msgstr ""
370
442
  msgid "Variable|Role"
371
443
  msgstr ""
372
444
 
373
- 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 throughforeman_params[\"host_parameter\"] in the playbooks."
445
+ msgid "When enabled the parameter is hidden in the UI"
446
+ msgstr ""
447
+
448
+ 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."
374
449
  msgstr ""
375
450
 
376
451
  msgid "WinRM cert Validation"
@@ -8,8 +8,8 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: foreman_ansible 1.0.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2018-11-14 17:00-0500\n"
12
- "PO-Revision-Date: 2018-11-14 17:00-0500\n"
11
+ "POT-Creation-Date: 2019-01-25 21:33+0100\n"
12
+ "PO-Revision-Date: 2019-01-25 21:33+0100\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -43,6 +43,22 @@ msgid ""
43
43
  "nsible feature enabled."
44
44
  msgstr ""
45
45
 
46
+ #: ../app/controllers/api/v2/ansible_override_values_controller.rb:17
47
+ msgid "Override match"
48
+ msgstr ""
49
+
50
+ #: ../app/controllers/api/v2/ansible_override_values_controller.rb:18
51
+ msgid "Override value, required if omit is false"
52
+ msgstr ""
53
+
54
+ #: ../app/controllers/api/v2/ansible_override_values_controller.rb:22
55
+ msgid "Create an override value for a specific ansible variable"
56
+ msgstr ""
57
+
58
+ #: ../app/controllers/api/v2/ansible_override_values_controller.rb:34
59
+ msgid "Destroy an override value"
60
+ msgstr ""
61
+
46
62
  #: ../app/controllers/api/v2/ansible_roles_controller.rb:18
47
63
  msgid "Show role"
48
64
  msgstr ""
@@ -60,70 +76,156 @@ msgid "Import Ansible roles"
60
76
  msgstr ""
61
77
 
62
78
  #: ../app/controllers/api/v2/ansible_roles_controller.rb:35
63
- #: ../app/controllers/api/v2/ansible_roles_controller.rb:41
64
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:37
65
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:47
79
+ #: ../app/controllers/api/v2/ansible_roles_controller.rb:42
80
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:65
81
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:75
66
82
  msgid "Smart Proxy to import from"
67
83
  msgstr ""
68
84
 
69
- #: ../app/controllers/api/v2/ansible_roles_controller.rb:40
85
+ #: ../app/controllers/api/v2/ansible_roles_controller.rb:36
86
+ msgid "Ansible role names to import"
87
+ msgstr ""
88
+
89
+ #: ../app/controllers/api/v2/ansible_roles_controller.rb:41
70
90
  msgid "Obsolete Ansible roles"
71
91
  msgstr ""
72
92
 
73
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:18
93
+ #: ../app/controllers/api/v2/ansible_roles_controller.rb:48
94
+ msgid "Fetch Ansible roles available to be imported"
95
+ msgstr ""
96
+
97
+ #: ../app/controllers/api/v2/ansible_roles_controller.rb:49
98
+ msgid "Smart Proxy to fetch from"
99
+ msgstr ""
100
+
101
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:19
74
102
  msgid "Show variable"
75
103
  msgstr ""
76
104
 
77
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:22
105
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:23
78
106
  msgid "List Ansible variables"
79
107
  msgstr ""
80
108
 
81
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:28
109
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:29
82
110
  msgid "Deletes Ansible variable"
83
111
  msgstr ""
84
112
 
85
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:35
113
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:38
114
+ msgid "Name of variable"
115
+ msgstr ""
116
+
117
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:39
118
+ msgid "Role ID"
119
+ msgstr ""
120
+
121
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:40
122
+ msgid "Default value of variable"
123
+ msgstr ""
124
+
125
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:41
126
+ msgid "When enabled the parameter is hidden in the UI"
127
+ msgstr ""
128
+
129
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:42
130
+ msgid "The order in which values are resolved"
131
+ msgstr ""
132
+
133
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:43
134
+ msgid "Description of variable"
135
+ msgstr ""
136
+
137
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:44
138
+ msgid "Types of validation values"
139
+ msgstr ""
140
+
141
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:45
142
+ msgid "Used to enforce certain values for the parameter values"
143
+ msgstr ""
144
+
145
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:46
146
+ msgid "Types of variable values"
147
+ msgstr ""
148
+
149
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:47
150
+ msgid "Merge all matching values (only array/hash type)"
151
+ msgstr ""
152
+
153
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:48
154
+ msgid "Include default value when merging all matching values"
155
+ msgstr ""
156
+
157
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:49
158
+ msgid "Remove duplicate values (only array type)"
159
+ msgstr ""
160
+
161
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:53
162
+ msgid "Updates Ansible variable"
163
+ msgstr ""
164
+
165
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:63
86
166
  msgid ""
87
167
  "Import Ansible variables. This will only import variables for already existing"
88
168
  " roles, it will not import any new roles"
89
169
  msgstr ""
90
170
 
91
- #: ../app/controllers/api/v2/ansible_variables_controller.rb:45
171
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:73
92
172
  msgid ""
93
173
  "Obsolete Ansible variables. This will only obsolete variables for already exis"
94
174
  "ting roles, it will not delete any old roles"
95
175
  msgstr ""
96
176
 
97
177
  #:
98
- #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:16
178
+ #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:17
99
179
  msgid "Plays Ansible roles on a hostgroup"
100
180
  msgstr ""
101
181
 
102
182
  #:
103
- #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:26
183
+ #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:27
104
184
  msgid "Plays Ansible roles on hostgroups"
105
185
  msgstr ""
106
186
 
187
+ #:
188
+ #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:28
189
+ msgid "IDs of hostgroups to play roles on"
190
+ msgstr ""
191
+
192
+ #:
193
+ #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:39
194
+ msgid "List all Ansible roles for a hostgroup"
195
+ msgstr ""
196
+
107
197
  #:
108
198
  #: ../app/controllers/foreman_ansible/api/v2/hostgroups_param_group_extensions.rb:13
109
199
  #: ../app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb:13
110
200
  msgid "IDs of associated ansible roles"
111
201
  msgstr ""
112
202
 
113
- #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:14
203
+ #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:22
114
204
  msgid "Plays Ansible roles on a host"
115
205
  msgstr ""
116
206
 
117
- #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:22
207
+ #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:31
118
208
  msgid "Plays Ansible roles on hosts"
119
209
  msgstr ""
120
210
 
211
+ #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:32
212
+ msgid "IDs of hosts to play roles on"
213
+ msgstr ""
214
+
215
+ #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:42
216
+ msgid "List all Ansible roles for a host"
217
+ msgstr ""
218
+
121
219
  #:
122
220
  #: ../app/controllers/foreman_ansible/concerns/hostgroups_controller_extensions.rb:27
123
221
  msgid "Host group has no associated hosts"
124
222
  msgstr ""
125
223
 
126
224
  #: ../app/controllers/foreman_ansible/concerns/job_invocation_helper.rb:13
225
+ msgid "There are no Ansible roles to play"
226
+ msgstr ""
227
+
228
+ #: ../app/controllers/foreman_ansible/concerns/job_invocation_helper.rb:15
127
229
  msgid "Could not run Ansible roles for %{host}"
128
230
  msgstr ""
129
231
 
@@ -153,7 +255,7 @@ msgid "Playbook execution failed"
153
255
  msgstr ""
154
256
 
155
257
  #: ../app/lib/actions/foreman_ansible/helpers/host_common.rb:30
156
- #: ../lib/foreman_ansible_core/remote_execution_core/ansible_runner.rb:34
258
+ #: ../lib/foreman_ansible_core/remote_execution_core/ansible_runner.rb:35
157
259
  msgid "Error loading data from proxy"
158
260
  msgstr ""
159
261
 
@@ -245,8 +347,8 @@ msgstr ""
245
347
  msgid ""
246
348
  "Whether to put Ansible parameters in the \"hostvars\" top-level key of the inven"
247
349
  "tory. By default it is true, so that Host Parameters can be used directly in t"
248
- "he playbooks.When false, Host Parameters can only be accessed throughforeman_p"
249
- "arams[\"host_parameter\"] in the playbooks."
350
+ "he playbooks. When false, Host Parameters can only be accessed through foreman"
351
+ "_params[\"host_parameter\"] in the playbooks."
250
352
  msgstr ""
251
353
 
252
354
  #: ../app/models/setting/ansible.rb:77
@@ -271,7 +373,7 @@ msgstr ""
271
373
  msgid "%{cfgmgmt} out of sync disabled"
272
374
  msgstr ""
273
375
 
274
- #: ../app/models/setting/ansible.rb:104 ../lib/foreman_ansible/register.rb:67
376
+ #: ../app/models/setting/ansible.rb:104 ../lib/foreman_ansible/register.rb:73
275
377
  msgid "Ansible"
276
378
  msgstr ""
277
379
 
@@ -401,7 +503,7 @@ msgid "Actions"
401
503
  msgstr ""
402
504
 
403
505
  #: ../app/views/ansible_roles/index.html.erb:27
404
- #: ../lib/foreman_ansible/register.rb:73
506
+ #: ../lib/foreman_ansible/register.rb:79
405
507
  msgid "Variables"
406
508
  msgstr ""
407
509
 
@@ -524,7 +626,7 @@ msgstr ""
524
626
  msgid "Insights remediation on %{hosts_count} host(s) has finished successfully"
525
627
  msgstr ""
526
628
 
527
- #: ../lib/foreman_ansible/register.rb:69
629
+ #: ../lib/foreman_ansible/register.rb:75
528
630
  msgid "Roles"
529
631
  msgstr ""
530
632
 
@@ -545,7 +647,7 @@ msgid "Runs a given maintenance plan from Red Hat Access Insights given an ID."
545
647
  msgstr ""
546
648
 
547
649
  #: action_names.rb:2
548
- msgid "Import Puppet classes"
650
+ msgid "Remote action:"
549
651
  msgstr ""
550
652
 
551
653
  #: action_names.rb:3
@@ -553,11 +655,11 @@ msgid "Import facts"
553
655
  msgstr ""
554
656
 
555
657
  #: action_names.rb:4
556
- msgid "Action with sub plans"
658
+ msgid "Import Puppet classes"
557
659
  msgstr ""
558
660
 
559
661
  #: action_names.rb:5
560
- msgid "Remote action:"
662
+ msgid "Action with sub plans"
561
663
  msgstr ""
562
664
 
563
665
  #: gemspec.rb:2