foreman_ansible 2.2.14 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +2 -0
  3. data/app/controllers/ansible_roles_controller.rb +4 -11
  4. data/app/controllers/ansible_variables_controller.rb +80 -0
  5. data/app/controllers/api/v2/ansible_roles_controller.rb +2 -0
  6. data/app/controllers/api/v2/ansible_variables_controller.rb +68 -0
  7. data/app/controllers/concerns/foreman/controller/parameters/ansible_variable.rb +36 -0
  8. data/app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb +2 -0
  9. data/app/controllers/foreman_ansible/api/v2/hostgroups_param_group_extensions.rb +2 -0
  10. data/app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb +2 -0
  11. data/app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb +2 -0
  12. data/app/controllers/foreman_ansible/concerns/hostgroups_controller_extensions.rb +2 -0
  13. data/app/controllers/foreman_ansible/concerns/hosts_controller_extensions.rb +2 -0
  14. data/app/controllers/foreman_ansible/concerns/import_controller_helper.rb +24 -0
  15. data/app/controllers/foreman_ansible/concerns/job_invocation_helper.rb +2 -0
  16. data/app/helpers/foreman_ansible/ansible_plugin_helper.rb +2 -0
  17. data/app/helpers/foreman_ansible/ansible_reports_helper.rb +6 -4
  18. data/app/helpers/foreman_ansible/ansible_roles_helper.rb +2 -0
  19. data/app/helpers/foreman_ansible/hosts_helper_extensions.rb +2 -0
  20. data/app/lib/actions/foreman_ansible/helpers/host_common.rb +2 -0
  21. data/app/lib/actions/foreman_ansible/helpers/play_roles_description.rb +2 -0
  22. data/app/lib/proxy_api/ansible.rb +16 -0
  23. data/app/models/ansible_role.rb +5 -0
  24. data/app/models/ansible_variable.rb +23 -0
  25. data/app/models/concerns/foreman_ansible/host_managed_extensions.rb +3 -1
  26. data/app/models/concerns/foreman_ansible/hostgroup_extensions.rb +2 -0
  27. data/app/models/foreman_ansible/ansible_provider.rb +2 -0
  28. data/app/models/foreman_ansible/fact_name.rb +2 -0
  29. data/app/models/host_ansible_role.rb +2 -0
  30. data/app/models/hostgroup_ansible_role.rb +2 -0
  31. data/app/models/setting/ansible.rb +7 -5
  32. data/app/overrides/ansible_roles_tab.rb +2 -0
  33. data/app/overrides/ansible_variables_edit.rb +15 -0
  34. data/app/overrides/hostgroup_ansible_roles_tab.rb +2 -0
  35. data/app/overrides/hostgroup_play_roles.rb +2 -0
  36. data/app/overrides/report_output.rb +2 -0
  37. data/app/services/foreman_ansible/ansible_report_importer.rb +15 -0
  38. data/app/services/foreman_ansible/ansible_report_scanner.rb +2 -0
  39. data/app/services/foreman_ansible/api_roles_importer.rb +2 -0
  40. data/app/services/foreman_ansible/fact_importer.rb +2 -0
  41. data/app/services/foreman_ansible/fact_parser.rb +13 -1
  42. data/app/services/foreman_ansible/fact_sparser.rb +2 -0
  43. data/app/services/foreman_ansible/insights_notification_builder.rb +2 -0
  44. data/app/services/foreman_ansible/insights_plan_runner.rb +3 -2
  45. data/app/services/foreman_ansible/inventory_creator.rb +0 -6
  46. data/app/services/foreman_ansible/operating_system_parser.rb +3 -1
  47. data/app/services/foreman_ansible/playbook_creator.rb +2 -0
  48. data/app/services/foreman_ansible/proxy_api.rb +24 -0
  49. data/app/services/foreman_ansible/renderer_methods.rb +2 -0
  50. data/app/services/foreman_ansible/roles_importer.rb +4 -17
  51. data/app/services/foreman_ansible/structured_fact_importer.rb +2 -0
  52. data/app/services/foreman_ansible/ui_roles_importer.rb +2 -0
  53. data/app/services/foreman_ansible/variables_importer.rb +100 -0
  54. data/app/views/ansible_roles/index.html.erb +13 -3
  55. data/app/views/ansible_variables/_ansible_roles_list.html.erb +15 -0
  56. data/app/views/ansible_variables/_validator_text.html.erb +5 -0
  57. data/app/views/ansible_variables/edit.html.erb +17 -0
  58. data/app/views/ansible_variables/import.html.erb +53 -0
  59. data/app/views/ansible_variables/index.html.erb +46 -0
  60. data/app/views/api/v2/ansible_roles/import.json.rabl +2 -0
  61. data/app/views/api/v2/ansible_roles/index.json.rabl +2 -0
  62. data/app/views/api/v2/ansible_roles/obsolete.json.rabl +2 -0
  63. data/app/views/api/v2/ansible_roles/show.json.rabl +2 -0
  64. data/app/views/api/v2/ansible_variables/import.json.rabl +3 -0
  65. data/app/views/api/v2/ansible_variables/index.json.rabl +3 -0
  66. data/app/views/api/v2/ansible_variables/obsolete.json.rabl +3 -0
  67. data/app/views/api/v2/ansible_variables/show.json.rabl +20 -0
  68. data/app/views/foreman_ansible/api/v2/ansible_roles/import.json.rabl +2 -0
  69. data/app/views/foreman_ansible/api/v2/ansible_roles/index.json.rabl +2 -0
  70. data/app/views/foreman_ansible/api/v2/ansible_roles/obsolete.json.rabl +2 -0
  71. data/app/views/foreman_ansible/api/v2/ansible_roles/show.json.rabl +2 -0
  72. data/config/routes.rb +17 -0
  73. data/db/migrate/20160705082036_create_ansible_role.rb +2 -0
  74. data/db/migrate/20160706074540_create_join_table_hosts_ansible_roles.rb +2 -0
  75. data/db/migrate/20160707195442_create_host_ansible_roles.rb +2 -0
  76. data/db/migrate/20160729094457_add_columns_to_ansible_role.rb +2 -0
  77. data/db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb +2 -0
  78. data/db/migrate/20160805094233_add_primary_key_hostgroup_ansible_roles.rb +2 -0
  79. data/db/migrate/20161122154057_automatically_set_role_timestamps.rb +2 -0
  80. data/db/migrate/20180410125416_rename_ansible_job_categories.rb +6 -3
  81. data/db/migrate/20180628125416_add_ansible_role_id_to_lookup_keys.rb +14 -0
  82. data/db/seeds.d/62_ansible_proxy_feature.rb +2 -0
  83. data/db/seeds.d/75_job_templates.rb +3 -1
  84. data/db/seeds.d/90_notification_blueprints.rb +2 -0
  85. data/lib/foreman_ansible.rb +2 -0
  86. data/lib/foreman_ansible/engine.rb +2 -0
  87. data/lib/foreman_ansible/register.rb +28 -1
  88. data/lib/foreman_ansible/remote_execution.rb +2 -0
  89. data/lib/foreman_ansible/version.rb +3 -1
  90. data/locale/action_names.rb +2 -2
  91. data/locale/de/LC_MESSAGES/foreman_ansible.mo +0 -0
  92. data/locale/de/foreman_ansible.edit.po +444 -0
  93. data/locale/de/foreman_ansible.po +56 -17
  94. data/locale/de/foreman_ansible.po.time_stamp +0 -0
  95. data/locale/en/LC_MESSAGES/foreman_ansible.mo +0 -0
  96. data/locale/en/foreman_ansible.edit.po +442 -0
  97. data/locale/en/foreman_ansible.po +56 -17
  98. data/locale/en/foreman_ansible.po.time_stamp +0 -0
  99. data/locale/es/LC_MESSAGES/foreman_ansible.mo +0 -0
  100. data/locale/es/foreman_ansible.edit.po +444 -0
  101. data/locale/es/foreman_ansible.po +56 -17
  102. data/locale/es/foreman_ansible.po.time_stamp +0 -0
  103. data/locale/foreman_ansible.pot +174 -93
  104. data/locale/fr/LC_MESSAGES/foreman_ansible.mo +0 -0
  105. data/locale/fr/foreman_ansible.edit.po +444 -0
  106. data/locale/fr/foreman_ansible.po +56 -17
  107. data/locale/fr/foreman_ansible.po.time_stamp +0 -0
  108. data/locale/it/LC_MESSAGES/foreman_ansible.mo +0 -0
  109. data/locale/it/foreman_ansible.edit.po +444 -0
  110. data/locale/it/foreman_ansible.po +56 -17
  111. data/locale/it/foreman_ansible.po.time_stamp +0 -0
  112. data/locale/ja/LC_MESSAGES/foreman_ansible.mo +0 -0
  113. data/locale/ja/foreman_ansible.edit.po +444 -0
  114. data/locale/ja/foreman_ansible.po +56 -17
  115. data/locale/ja/foreman_ansible.po.time_stamp +0 -0
  116. data/locale/ko/LC_MESSAGES/foreman_ansible.mo +0 -0
  117. data/locale/ko/foreman_ansible.edit.po +444 -0
  118. data/locale/ko/foreman_ansible.po +56 -17
  119. data/locale/ko/foreman_ansible.po.time_stamp +0 -0
  120. data/locale/pt_BR/LC_MESSAGES/foreman_ansible.mo +0 -0
  121. data/locale/pt_BR/foreman_ansible.edit.po +444 -0
  122. data/locale/pt_BR/foreman_ansible.po +56 -17
  123. data/locale/pt_BR/foreman_ansible.po.time_stamp +0 -0
  124. data/locale/ru/LC_MESSAGES/foreman_ansible.mo +0 -0
  125. data/locale/ru/foreman_ansible.edit.po +445 -0
  126. data/locale/ru/foreman_ansible.po +56 -17
  127. data/locale/ru/foreman_ansible.po.time_stamp +0 -0
  128. data/locale/zh_CN/LC_MESSAGES/foreman_ansible.mo +0 -0
  129. data/locale/zh_CN/foreman_ansible.edit.po +444 -0
  130. data/locale/zh_CN/foreman_ansible.po +56 -17
  131. data/locale/zh_CN/foreman_ansible.po.time_stamp +0 -0
  132. data/locale/zh_TW/LC_MESSAGES/foreman_ansible.mo +0 -0
  133. data/locale/zh_TW/foreman_ansible.edit.po +444 -0
  134. data/locale/zh_TW/foreman_ansible.po +56 -17
  135. data/locale/zh_TW/foreman_ansible.po.time_stamp +0 -0
  136. data/test/factories/ansible_proxy.rb +2 -0
  137. data/test/factories/ansible_roles.rb +2 -0
  138. data/test/factories/ansible_variables.rb +8 -0
  139. data/test/functional/ansible_roles_controller_test.rb +2 -0
  140. data/test/functional/ansible_variables_controller_test.rb +36 -0
  141. data/test/functional/api/v2/ansible_roles_controller_test.rb +21 -9
  142. data/test/functional/api/v2/ansible_variables_controller_test.rb +41 -0
  143. data/test/functional/api/v2/hostgroups_controller_test.rb +2 -0
  144. data/test/functional/api/v2/hosts_controller_test.rb +2 -0
  145. data/test/functional/hosts_controller_test.rb +2 -0
  146. data/test/test_plugin_helper.rb +2 -0
  147. data/test/unit/ansible_provider_test.rb +2 -0
  148. data/test/unit/ansible_role_test.rb +5 -9
  149. data/test/unit/ansible_variable_test.rb +14 -0
  150. data/test/unit/concerns/config_reports_extensions_test.rb +2 -0
  151. data/test/unit/concerns/host_managed_extensions_test.rb +2 -0
  152. data/test/unit/concerns/hostgroup_extensions_test.rb +2 -0
  153. data/test/unit/helpers/ansible_reports_helper_test.rb +2 -0
  154. data/test/unit/host_ansible_role_test.rb +2 -0
  155. data/test/unit/hostgroup_ansible_role_test.rb +2 -0
  156. data/test/unit/lib/foreman_ansible_core/command_creator_test.rb +2 -0
  157. data/test/unit/lib/foreman_ansible_core/playbook_runner_test.rb +2 -0
  158. data/test/unit/lib/proxy_api/ansible_test.rb +2 -0
  159. data/test/unit/services/ansible_report_importer_test.rb +15 -0
  160. data/test/unit/services/ansible_variables_importer_test.rb +39 -0
  161. data/test/unit/services/api_roles_importer_test.rb +2 -0
  162. data/test/unit/services/fact_importer_test.rb +2 -0
  163. data/test/unit/services/fact_parser_test.rb +47 -0
  164. data/test/unit/services/fact_sparser_test.rb +2 -0
  165. data/test/unit/services/insights_plan_runner_test.rb +2 -0
  166. data/test/unit/services/inventory_creator_test.rb +1 -13
  167. data/test/unit/services/roles_importer_test.rb +2 -0
  168. data/test/unit/services/structured_fact_importer_test.rb +2 -0
  169. data/test/unit/services/ui_roles_importer_test.rb +2 -0
  170. metadata +101 -42
  171. data/test/unit/lib/foreman_ansible_core/roles_reader_test.rb +0 -92
@@ -5,7 +5,7 @@
5
5
  #
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_ansible 2.2.9\n"
8
+ "Project-Id-Version: foreman_ansible 2.2.6\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"
@@ -35,13 +35,19 @@ msgstr ""
35
35
  msgid "Ansible"
36
36
  msgstr ""
37
37
 
38
+ msgid "Ansible Role"
39
+ msgstr ""
40
+
38
41
  msgid "Ansible Roles"
39
42
  msgstr ""
40
43
 
44
+ msgid "Ansible Variables"
45
+ msgstr ""
46
+
41
47
  msgid "Ansible report timeout"
42
48
  msgstr ""
43
49
 
44
- msgid "Ansible role names to import"
50
+ msgid "Ansible role"
45
51
  msgstr ""
46
52
 
47
53
  msgid "Ansible support in Foreman"
@@ -59,12 +65,18 @@ msgstr ""
59
65
  msgid "Available roles"
60
66
  msgstr ""
61
67
 
68
+ msgid "Before including these variables on your playbooks, Foreman will validate that your variables comply with the validation."
69
+ msgstr ""
70
+
62
71
  msgid "Cancel"
63
72
  msgstr ""
64
73
 
65
74
  msgid "Changed Ansible roles"
66
75
  msgstr ""
67
76
 
77
+ msgid "Changed Ansible variables"
78
+ msgstr ""
79
+
68
80
  msgid "Check/Uncheck all"
69
81
  msgstr ""
70
82
 
@@ -95,19 +107,25 @@ msgstr ""
95
107
  msgid "Deletes Ansible role"
96
108
  msgstr ""
97
109
 
110
+ msgid "Deletes Ansible variable"
111
+ msgstr ""
112
+
98
113
  msgid "Disable host configuration status turning to out of sync for %{cfgmgmt} after report does not arrive within configured interval"
99
114
  msgstr ""
100
115
 
101
116
  msgid "Disabled"
102
117
  msgstr ""
103
118
 
104
- msgid "Enable/disable WinRM server certificate validation when running Ansible playbooks. You can override this on hosts by adding a parameter \"ansible_winrm_server_cert_validation\""
119
+ msgid "Edit %s"
105
120
  msgstr ""
106
121
 
107
- msgid "Error loading data from proxy"
122
+ msgid "Edit Ansible Variable"
108
123
  msgstr ""
109
124
 
110
- msgid "Fetch Ansible roles available to be imported"
125
+ msgid "Enable/disable WinRM server certificate validation when running Ansible playbooks. You can override this on hosts by adding a parameter \"ansible_winrm_server_cert_validation\""
126
+ msgstr ""
127
+
128
+ msgid "Error loading data from proxy"
111
129
  msgstr ""
112
130
 
113
131
  msgid "Foreman"
@@ -137,10 +155,7 @@ msgstr ""
137
155
  msgid "IDs of associated ansible roles"
138
156
  msgstr ""
139
157
 
140
- msgid "IDs of hostgroups to play roles on"
141
- msgstr ""
142
-
143
- msgid "IDs of hosts to play roles on"
158
+ 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."
144
159
  msgstr ""
145
160
 
146
161
  msgid "Import"
@@ -149,6 +164,9 @@ msgstr ""
149
164
  msgid "Import Ansible roles"
150
165
  msgstr ""
151
166
 
167
+ msgid "Import Ansible variables. This will only import variables for already existing roles, it will not import any new roles"
168
+ msgstr ""
169
+
152
170
  msgid "Import Puppet classes"
153
171
  msgstr ""
154
172
 
@@ -158,6 +176,12 @@ msgstr ""
158
176
  msgid "Import of roles successfully finished."
159
177
  msgstr ""
160
178
 
179
+ msgid ""
180
+ "Import of variables successfully finished.\n"
181
+ "Added: #{results[:added].join(', ')} \n"
182
+ " Removed: #{results[:obsolete].join(', ')}"
183
+ msgstr ""
184
+
161
185
  msgid "Imported at"
162
186
  msgstr ""
163
187
 
@@ -191,10 +215,7 @@ msgstr ""
191
215
  msgid "List Ansible roles"
192
216
  msgstr ""
193
217
 
194
- msgid "List all Ansible roles for a host"
195
- msgstr ""
196
-
197
- msgid "List all Ansible roles for a hostgroup"
218
+ msgid "List Ansible variables"
198
219
  msgstr ""
199
220
 
200
221
  msgid "Message"
@@ -223,6 +244,9 @@ msgstr ""
223
244
  msgid "No changes in roles detected."
224
245
  msgstr ""
225
246
 
247
+ msgid "No proxy found to import variables from, ensure that the smart proxy has the Ansible feature enabled."
248
+ msgstr ""
249
+
226
250
  msgid "Nothing to show"
227
251
  msgstr ""
228
252
 
@@ -232,6 +256,9 @@ msgstr ""
232
256
  msgid "Obsolete Ansible roles"
233
257
  msgstr ""
234
258
 
259
+ msgid "Obsolete Ansible variables. This will only obsolete variables for already existing roles, it will not delete any old roles"
260
+ msgstr ""
261
+
235
262
  msgid "Operation"
236
263
  msgstr ""
237
264
 
@@ -295,15 +322,12 @@ msgstr ""
295
322
  msgid "Show role"
296
323
  msgstr ""
297
324
 
298
- msgid "Smart Proxy to fetch from"
325
+ msgid "Show variable"
299
326
  msgstr ""
300
327
 
301
328
  msgid "Smart Proxy to import from"
302
329
  msgstr ""
303
330
 
304
- msgid "There are no Ansible roles to play"
305
- msgstr ""
306
-
307
331
  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 "
308
332
  msgstr ""
309
333
 
@@ -319,9 +343,15 @@ msgstr ""
319
343
  msgid "Top level Ansible variables"
320
344
  msgstr ""
321
345
 
346
+ msgid "Type"
347
+ msgstr ""
348
+
322
349
  msgid "Unable to get roles from Ansible"
323
350
  msgstr ""
324
351
 
352
+ msgid "Unable to get roles/variables from Ansible"
353
+ msgstr ""
354
+
325
355
  msgid "Update"
326
356
  msgstr ""
327
357
 
@@ -331,6 +361,15 @@ msgstr ""
331
361
  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"
332
362
  msgstr ""
333
363
 
364
+ msgid "Variables"
365
+ msgstr ""
366
+
367
+ msgid "Variable|Name"
368
+ msgstr ""
369
+
370
+ msgid "Variable|Role"
371
+ msgstr ""
372
+
334
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."
335
374
  msgstr ""
336
375
 
@@ -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-19 16:17+0100\n"
12
- "PO-Revision-Date: 2018-11-19 16:17+0100\n"
11
+ "POT-Creation-Date: 2018-11-14 17:00-0500\n"
12
+ "PO-Revision-Date: 2018-11-14 17:00-0500\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -18,221 +18,230 @@ msgstr ""
18
18
  "Content-Transfer-Encoding: 8bit\n"
19
19
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
20
20
 
21
- #: ../app/controllers/ansible_roles_controller.rb:37
21
+ #: ../app/controllers/ansible_roles_controller.rb:35
22
22
  msgid "Import of roles successfully finished."
23
23
  msgstr ""
24
24
 
25
- #: ../app/controllers/ansible_roles_controller.rb:57
25
+ #: ../app/controllers/ansible_roles_controller.rb:50
26
26
  msgid "No changes in roles detected."
27
27
  msgstr ""
28
28
 
29
- #: ../app/controllers/ansible_roles_controller.rb:58
29
+ #: ../app/controllers/ansible_roles_controller.rb:51
30
30
  msgid "No changes in roles detected on %s."
31
31
  msgstr ""
32
32
 
33
- #: ../app/controllers/api/v2/ansible_roles_controller.rb:16
33
+ #: ../app/controllers/ansible_variables_controller.rb:31
34
+ msgid ""
35
+ "Import of variables successfully finished.\n"
36
+ "Added: #{results[:added].join(', ')} \n"
37
+ " Removed: #{results[:obsolete].join(', ')}"
38
+ msgstr ""
39
+
40
+ #: ../app/controllers/ansible_variables_controller.rb:75
41
+ msgid ""
42
+ "No proxy found to import variables from, ensure that the smart proxy has the A"
43
+ "nsible feature enabled."
44
+ msgstr ""
45
+
46
+ #: ../app/controllers/api/v2/ansible_roles_controller.rb:18
34
47
  msgid "Show role"
35
48
  msgstr ""
36
49
 
37
- #: ../app/controllers/api/v2/ansible_roles_controller.rb:20
50
+ #: ../app/controllers/api/v2/ansible_roles_controller.rb:22
38
51
  msgid "List Ansible roles"
39
52
  msgstr ""
40
53
 
41
- #: ../app/controllers/api/v2/ansible_roles_controller.rb:26
54
+ #: ../app/controllers/api/v2/ansible_roles_controller.rb:28
42
55
  msgid "Deletes Ansible role"
43
56
  msgstr ""
44
57
 
45
- #: ../app/controllers/api/v2/ansible_roles_controller.rb:32
58
+ #: ../app/controllers/api/v2/ansible_roles_controller.rb:34
46
59
  msgid "Import Ansible roles"
47
60
  msgstr ""
48
61
 
49
- #: ../app/controllers/api/v2/ansible_roles_controller.rb:33
50
- #: ../app/controllers/api/v2/ansible_roles_controller.rb:40
62
+ #: ../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
51
66
  msgid "Smart Proxy to import from"
52
67
  msgstr ""
53
68
 
54
- #: ../app/controllers/api/v2/ansible_roles_controller.rb:34
55
- msgid "Ansible role names to import"
69
+ #: ../app/controllers/api/v2/ansible_roles_controller.rb:40
70
+ msgid "Obsolete Ansible roles"
56
71
  msgstr ""
57
72
 
58
- #: ../app/controllers/api/v2/ansible_roles_controller.rb:39
59
- msgid "Obsolete Ansible roles"
73
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:18
74
+ msgid "Show variable"
60
75
  msgstr ""
61
76
 
62
- #: ../app/controllers/api/v2/ansible_roles_controller.rb:46
63
- msgid "Fetch Ansible roles available to be imported"
77
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:22
78
+ msgid "List Ansible variables"
64
79
  msgstr ""
65
80
 
66
- #: ../app/controllers/api/v2/ansible_roles_controller.rb:47
67
- msgid "Smart Proxy to fetch from"
81
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:28
82
+ msgid "Deletes Ansible variable"
68
83
  msgstr ""
69
84
 
70
- #:
71
- #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:15
72
- msgid "Plays Ansible roles on a hostgroup"
85
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:35
86
+ msgid ""
87
+ "Import Ansible variables. This will only import variables for already existing"
88
+ " roles, it will not import any new roles"
73
89
  msgstr ""
74
90
 
75
- #:
76
- #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:25
77
- msgid "Plays Ansible roles on hostgroups"
91
+ #: ../app/controllers/api/v2/ansible_variables_controller.rb:45
92
+ msgid ""
93
+ "Obsolete Ansible variables. This will only obsolete variables for already exis"
94
+ "ting roles, it will not delete any old roles"
78
95
  msgstr ""
79
96
 
80
97
  #:
81
- #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:26
82
- msgid "IDs of hostgroups to play roles on"
98
+ #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:16
99
+ msgid "Plays Ansible roles on a hostgroup"
83
100
  msgstr ""
84
101
 
85
102
  #:
86
- #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:37
87
- msgid "List all Ansible roles for a hostgroup"
103
+ #: ../app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb:26
104
+ msgid "Plays Ansible roles on hostgroups"
88
105
  msgstr ""
89
106
 
90
107
  #:
91
- #: ../app/controllers/foreman_ansible/api/v2/hostgroups_param_group_extensions.rb:11
92
- #: ../app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb:11
108
+ #: ../app/controllers/foreman_ansible/api/v2/hostgroups_param_group_extensions.rb:13
109
+ #: ../app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb:13
93
110
  msgid "IDs of associated ansible roles"
94
111
  msgstr ""
95
112
 
96
- #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:20
113
+ #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:14
97
114
  msgid "Plays Ansible roles on a host"
98
115
  msgstr ""
99
116
 
100
- #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:29
117
+ #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:22
101
118
  msgid "Plays Ansible roles on hosts"
102
119
  msgstr ""
103
120
 
104
- #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:30
105
- msgid "IDs of hosts to play roles on"
106
- msgstr ""
107
-
108
- #: ../app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb:40
109
- msgid "List all Ansible roles for a host"
110
- msgstr ""
111
-
112
121
  #:
113
- #: ../app/controllers/foreman_ansible/concerns/hostgroups_controller_extensions.rb:25
122
+ #: ../app/controllers/foreman_ansible/concerns/hostgroups_controller_extensions.rb:27
114
123
  msgid "Host group has no associated hosts"
115
124
  msgstr ""
116
125
 
117
- #: ../app/controllers/foreman_ansible/concerns/job_invocation_helper.rb:11
118
- msgid "There are no Ansible roles to play"
119
- msgstr ""
120
-
121
126
  #: ../app/controllers/foreman_ansible/concerns/job_invocation_helper.rb:13
122
127
  msgid "Could not run Ansible roles for %{host}"
123
128
  msgstr ""
124
129
 
125
- #: ../app/helpers/foreman_ansible/ansible_roles_helper.rb:6
130
+ #: ../app/helpers/foreman_ansible/ansible_roles_helper.rb:8
126
131
  msgid "From %s"
127
132
  msgstr ""
128
133
 
129
- #: ../app/helpers/foreman_ansible/ansible_roles_helper.rb:13
134
+ #: ../app/helpers/foreman_ansible/ansible_roles_helper.rb:15
130
135
  msgid "Import"
131
136
  msgstr ""
132
137
 
133
- #: ../app/helpers/foreman_ansible/ansible_roles_helper.rb:19
138
+ #: ../app/helpers/foreman_ansible/ansible_roles_helper.rb:21
134
139
  msgid "%s ago"
135
140
  msgstr ""
136
141
 
137
- #: ../app/helpers/foreman_ansible/hosts_helper_extensions.rb:21
138
- #: ../app/lib/actions/foreman_ansible/helpers/host_common.rb:16
142
+ #: ../app/helpers/foreman_ansible/hosts_helper_extensions.rb:23
143
+ #: ../app/lib/actions/foreman_ansible/helpers/host_common.rb:18
139
144
  msgid "Play Ansible roles"
140
145
  msgstr ""
141
146
 
142
- #: ../app/helpers/foreman_ansible/hosts_helper_extensions.rb:40
147
+ #: ../app/helpers/foreman_ansible/hosts_helper_extensions.rb:42
143
148
  msgid "Run Ansible roles"
144
149
  msgstr ""
145
150
 
146
- #: ../app/lib/actions/foreman_ansible/helpers/host_common.rb:8
151
+ #: ../app/lib/actions/foreman_ansible/helpers/host_common.rb:10
147
152
  msgid "Playbook execution failed"
148
153
  msgstr ""
149
154
 
150
- #: ../app/lib/actions/foreman_ansible/helpers/host_common.rb:28
151
- #: ../lib/foreman_ansible_core/remote_execution_core/ansible_runner.rb:31
155
+ #: ../app/lib/actions/foreman_ansible/helpers/host_common.rb:30
156
+ #: ../lib/foreman_ansible_core/remote_execution_core/ansible_runner.rb:34
152
157
  msgid "Error loading data from proxy"
153
158
  msgstr ""
154
159
 
155
- #: ../app/lib/actions/foreman_ansible/helpers/play_roles_description.rb:11
160
+ #: ../app/lib/actions/foreman_ansible/helpers/play_roles_description.rb:13
156
161
  msgid "Foreman"
157
162
  msgstr ""
158
163
 
159
- #: ../app/lib/proxy_api/ansible.rb:25
164
+ #: ../app/lib/proxy_api/ansible.rb:27
160
165
  msgid "Unable to get roles from Ansible"
161
166
  msgstr ""
162
167
 
163
- #: ../app/models/setting/ansible.rb:18
168
+ #: ../app/lib/proxy_api/ansible.rb:34 ../app/lib/proxy_api/ansible.rb:41
169
+ msgid "Unable to get roles/variables from Ansible"
170
+ msgstr ""
171
+
172
+ #: ../app/models/setting/ansible.rb:20
164
173
  msgid ""
165
174
  "Use this to supply a path to an SSH Private Key that Ansible will use in lieu "
166
175
  "of a password Override with \"ansible_ssh_private_key_file\" host parameter"
167
176
  msgstr ""
168
177
 
169
- #: ../app/models/setting/ansible.rb:23
178
+ #: ../app/models/setting/ansible.rb:25
170
179
  msgid "Private Key Path"
171
180
  msgstr ""
172
181
 
173
- #: ../app/models/setting/ansible.rb:27
182
+ #: ../app/models/setting/ansible.rb:29
174
183
  msgid ""
175
184
  "Use this connection type by default when running Ansible playbooks. You can ov"
176
185
  "erride this on hosts by adding a parameter \"ansible_connection\""
177
186
  msgstr ""
178
187
 
179
- #: ../app/models/setting/ansible.rb:31
188
+ #: ../app/models/setting/ansible.rb:33
180
189
  msgid "Connection type"
181
190
  msgstr ""
182
191
 
183
- #: ../app/models/setting/ansible.rb:35
192
+ #: ../app/models/setting/ansible.rb:37
184
193
  msgid ""
185
194
  "Enable/disable WinRM server certificate validation when running Ansible playbo"
186
195
  "oks. You can override this on hosts by adding a parameter \"ansible_winrm_serve"
187
196
  "r_cert_validation\""
188
197
  msgstr ""
189
198
 
190
- #: ../app/models/setting/ansible.rb:40
199
+ #: ../app/models/setting/ansible.rb:42
191
200
  msgid "WinRM cert Validation"
192
201
  msgstr ""
193
202
 
194
- #: ../app/models/setting/ansible.rb:44
203
+ #: ../app/models/setting/ansible.rb:46
195
204
  msgid ""
196
205
  "Foreman will add the this level of verbosity for additional debugging output w"
197
206
  "hen running Ansible playbooks."
198
207
  msgstr ""
199
208
 
200
- #: ../app/models/setting/ansible.rb:47
209
+ #: ../app/models/setting/ansible.rb:49
201
210
  msgid "Default verbosity level"
202
211
  msgstr ""
203
212
 
204
- #: ../app/models/setting/ansible.rb:50
213
+ #: ../app/models/setting/ansible.rb:52
205
214
  msgid "Disabled"
206
215
  msgstr ""
207
216
 
208
- #: ../app/models/setting/ansible.rb:51
217
+ #: ../app/models/setting/ansible.rb:53
209
218
  msgid "Level 1 (-v)"
210
219
  msgstr ""
211
220
 
212
- #: ../app/models/setting/ansible.rb:52
221
+ #: ../app/models/setting/ansible.rb:54
213
222
  msgid "Level 2 (-vv)"
214
223
  msgstr ""
215
224
 
216
- #: ../app/models/setting/ansible.rb:53
225
+ #: ../app/models/setting/ansible.rb:55
217
226
  msgid "Level 3 (-vvv)"
218
227
  msgstr ""
219
228
 
220
- #: ../app/models/setting/ansible.rb:54
229
+ #: ../app/models/setting/ansible.rb:56
221
230
  msgid "Level 4 (-vvvv)"
222
231
  msgstr ""
223
232
 
224
- #: ../app/models/setting/ansible.rb:60
233
+ #: ../app/models/setting/ansible.rb:62
225
234
  msgid ""
226
235
  "Timeout (in seconds) to set when Foreman will trigger a play Ansible roles tas"
227
236
  "k after a host is fully provisioned. Set this to the maximum time you expect a"
228
237
  " host to take until it is ready after a reboot."
229
238
  msgstr ""
230
239
 
231
- #: ../app/models/setting/ansible.rb:65
240
+ #: ../app/models/setting/ansible.rb:67
232
241
  msgid "Post-provision timeout"
233
242
  msgstr ""
234
243
 
235
- #: ../app/models/setting/ansible.rb:69
244
+ #: ../app/models/setting/ansible.rb:71
236
245
  msgid ""
237
246
  "Whether to put Ansible parameters in the \"hostvars\" top-level key of the inven"
238
247
  "tory. By default it is true, so that Host Parameters can be used directly in t"
@@ -240,42 +249,42 @@ msgid ""
240
249
  "arams[\"host_parameter\"] in the playbooks."
241
250
  msgstr ""
242
251
 
243
- #: ../app/models/setting/ansible.rb:75
252
+ #: ../app/models/setting/ansible.rb:77
244
253
  msgid "Top level Ansible variables"
245
254
  msgstr ""
246
255
 
247
- #: ../app/models/setting/ansible.rb:79
256
+ #: ../app/models/setting/ansible.rb:81
248
257
  msgid "Timeout (in minutes) when hosts should have reported."
249
258
  msgstr ""
250
259
 
251
- #: ../app/models/setting/ansible.rb:81
260
+ #: ../app/models/setting/ansible.rb:83
252
261
  msgid "Ansible report timeout"
253
262
  msgstr ""
254
263
 
255
- #: ../app/models/setting/ansible.rb:85
264
+ #: ../app/models/setting/ansible.rb:87
256
265
  msgid ""
257
266
  "Disable host configuration status turning to out of sync for %{cfgmgmt} after "
258
267
  "report does not arrive within configured interval"
259
268
  msgstr ""
260
269
 
261
- #: ../app/models/setting/ansible.rb:89
270
+ #: ../app/models/setting/ansible.rb:91
262
271
  msgid "%{cfgmgmt} out of sync disabled"
263
272
  msgstr ""
264
273
 
265
- #: ../app/models/setting/ansible.rb:102 ../lib/foreman_ansible/register.rb:50
274
+ #: ../app/models/setting/ansible.rb:104 ../lib/foreman_ansible/register.rb:67
266
275
  msgid "Ansible"
267
276
  msgstr ""
268
277
 
269
- #: ../app/services/foreman_ansible/insights_notification_builder.rb:49
278
+ #: ../app/services/foreman_ansible/insights_notification_builder.rb:51
270
279
  msgid "Remediation Plan"
271
280
  msgstr ""
272
281
 
273
- #: ../app/services/foreman_ansible/insights_notification_builder.rb:59
274
- #: ../db/seeds.d/90_notification_blueprints.rb:11
282
+ #: ../app/services/foreman_ansible/insights_notification_builder.rb:61
283
+ #: ../db/seeds.d/90_notification_blueprints.rb:13
275
284
  msgid "Job Details"
276
285
  msgstr ""
277
286
 
278
- #: ../app/services/foreman_ansible/roles_importer.rb:37
287
+ #: ../app/services/foreman_ansible/proxy_api.rb:13
279
288
  msgid "Proxy not found"
280
289
  msgstr ""
281
290
 
@@ -284,66 +293,82 @@ msgid "Changed Ansible roles"
284
293
  msgstr ""
285
294
 
286
295
  #: ../app/views/ansible_roles/import.html.erb:3
296
+ #: ../app/views/ansible_variables/import.html.erb:3
287
297
  msgid "Select the changes you want to realize in Foreman"
288
298
  msgstr ""
289
299
 
290
300
  #: ../app/views/ansible_roles/import.html.erb:5
301
+ #: ../app/views/ansible_variables/import.html.erb:5
291
302
  msgid "Toggle"
292
303
  msgstr ""
293
304
 
294
305
  #: ../app/views/ansible_roles/import.html.erb:6
306
+ #: ../app/views/ansible_variables/import.html.erb:6
295
307
  msgid "New"
296
308
  msgstr ""
297
309
 
298
310
  #: ../app/views/ansible_roles/import.html.erb:8
311
+ #: ../app/views/ansible_variables/import.html.erb:8
299
312
  msgid "Check/Uncheck new"
300
313
  msgstr ""
301
314
 
302
315
  #: ../app/views/ansible_roles/import.html.erb:9
316
+ #: ../app/views/ansible_variables/import.html.erb:9
303
317
  msgid "Obsolete"
304
318
  msgstr ""
305
319
 
306
320
  #: ../app/views/ansible_roles/import.html.erb:11
321
+ #: ../app/views/ansible_variables/import.html.erb:11
307
322
  msgid "Check/Uncheck obsolete"
308
323
  msgstr ""
309
324
 
310
325
  #: ../app/views/ansible_roles/import.html.erb:19
326
+ #: ../app/views/ansible_variables/import.html.erb:19
311
327
  msgid "Check/Uncheck all"
312
328
  msgstr ""
313
329
 
314
330
  #: ../app/views/ansible_roles/import.html.erb:21
331
+ #: ../app/views/ansible_variables/import.html.erb:21
315
332
  msgid "Name"
316
333
  msgstr ""
317
334
 
318
335
  #: ../app/views/ansible_roles/import.html.erb:22
336
+ #: ../app/views/ansible_variables/import.html.erb:23
319
337
  msgid "Hosts count"
320
338
  msgstr ""
321
339
 
322
340
  #: ../app/views/ansible_roles/import.html.erb:23
341
+ #: ../app/views/ansible_variables/import.html.erb:24
323
342
  msgid "Hostgroups count"
324
343
  msgstr ""
325
344
 
326
345
  #: ../app/views/ansible_roles/import.html.erb:24
346
+ #: ../app/views/ansible_variables/import.html.erb:25
327
347
  msgid "Operation"
328
348
  msgstr ""
329
349
 
330
350
  #: ../app/views/ansible_roles/import.html.erb:35
351
+ #: ../app/views/ansible_variables/import.html.erb:36
331
352
  msgid "Check/Uncheck all %s changes"
332
353
  msgstr ""
333
354
 
334
355
  #: ../app/views/ansible_roles/import.html.erb:40
356
+ #: ../app/views/ansible_variables/import.html.erb:42
335
357
  msgid "Add"
336
358
  msgstr ""
337
359
 
338
360
  #: ../app/views/ansible_roles/import.html.erb:40
361
+ #: ../app/views/ansible_variables/import.html.erb:42
339
362
  msgid "Remove"
340
363
  msgstr ""
341
364
 
342
365
  #: ../app/views/ansible_roles/import.html.erb:48
366
+ #: ../app/views/ansible_variables/import.html.erb:50
343
367
  msgid "Cancel"
344
368
  msgstr ""
345
369
 
346
370
  #: ../app/views/ansible_roles/import.html.erb:49
371
+ #: ../app/views/ansible_variables/import.html.erb:51
347
372
  msgid "Update"
348
373
  msgstr ""
349
374
 
@@ -371,10 +396,17 @@ msgid "Imported at"
371
396
  msgstr ""
372
397
 
373
398
  #: ../app/views/ansible_roles/index.html.erb:13
399
+ #: ../app/views/ansible_variables/index.html.erb:12
374
400
  msgid "Actions"
375
401
  msgstr ""
376
402
 
377
- #: ../app/views/ansible_roles/index.html.erb:26
403
+ #: ../app/views/ansible_roles/index.html.erb:27
404
+ #: ../lib/foreman_ansible/register.rb:73
405
+ msgid "Variables"
406
+ msgstr ""
407
+
408
+ #: ../app/views/ansible_roles/index.html.erb:33
409
+ #: ../app/views/ansible_variables/index.html.erb:36
378
410
  msgid "Delete %s?"
379
411
  msgstr ""
380
412
 
@@ -389,6 +421,55 @@ msgstr ""
389
421
  msgid "Learn more about this in the documentation."
390
422
  msgstr ""
391
423
 
424
+ #: ../app/views/ansible_variables/_ansible_roles_list.html.erb:10
425
+ msgid "Ansible Role"
426
+ msgstr ""
427
+
428
+ #: ../app/views/ansible_variables/_validator_text.html.erb:2
429
+ msgid ""
430
+ "Before including these variables on your playbooks, Foreman will validate that"
431
+ " your variables comply with the validation."
432
+ msgstr ""
433
+
434
+ #: ../app/views/ansible_variables/_validator_text.html.erb:4
435
+ msgid ""
436
+ "If ERB is used in a parameter value, the validation of the value will happen d"
437
+ "uring the ENC request. If the value is invalid, the ENC request will fail."
438
+ msgstr ""
439
+
440
+ #: ../app/views/ansible_variables/edit.html.erb:4
441
+ #: ../app/views/ansible_variables/index.html.erb:1
442
+ msgid "Ansible Variables"
443
+ msgstr ""
444
+
445
+ #: ../app/views/ansible_variables/edit.html.erb:8
446
+ msgid "Edit %s"
447
+ msgstr ""
448
+
449
+ #: ../app/views/ansible_variables/edit.html.erb:13
450
+ msgid "Edit Ansible Variable"
451
+ msgstr ""
452
+
453
+ #: ../app/views/ansible_variables/import.html.erb:1
454
+ msgid "Changed Ansible variables"
455
+ msgstr ""
456
+
457
+ #: ../app/views/ansible_variables/import.html.erb:22
458
+ msgid "Ansible role"
459
+ msgstr ""
460
+
461
+ #: ../app/views/ansible_variables/index.html.erb:9
462
+ msgid "Variable|Name"
463
+ msgstr ""
464
+
465
+ #: ../app/views/ansible_variables/index.html.erb:10
466
+ msgid "Variable|Role"
467
+ msgstr ""
468
+
469
+ #: ../app/views/ansible_variables/index.html.erb:11
470
+ msgid "Type"
471
+ msgstr ""
472
+
392
473
  #:
393
474
  #: ../app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb:5
394
475
  msgid "Play Roles"
@@ -435,36 +516,36 @@ msgstr ""
435
516
  msgid "Nothing to show"
436
517
  msgstr ""
437
518
 
438
- #: ../db/seeds.d/90_notification_blueprints.rb:3
519
+ #: ../db/seeds.d/90_notification_blueprints.rb:5
439
520
  msgid "Jobs"
440
521
  msgstr ""
441
522
 
442
- #: ../db/seeds.d/90_notification_blueprints.rb:5
523
+ #: ../db/seeds.d/90_notification_blueprints.rb:7
443
524
  msgid "Insights remediation on %{hosts_count} host(s) has finished successfully"
444
525
  msgstr ""
445
526
 
446
- #: ../lib/foreman_ansible/register.rb:52
527
+ #: ../lib/foreman_ansible/register.rb:69
447
528
  msgid "Roles"
448
529
  msgstr ""
449
530
 
450
- #: ../lib/foreman_ansible/remote_execution.rb:18
531
+ #: ../lib/foreman_ansible/remote_execution.rb:20
451
532
  msgid "Ansible: Run host roles"
452
533
  msgstr ""
453
534
 
454
- #: ../lib/foreman_ansible/remote_execution.rb:19
535
+ #: ../lib/foreman_ansible/remote_execution.rb:21
455
536
  msgid "Runs an Ansible playbook which contains all the roles defined for a host"
456
537
  msgstr ""
457
538
 
458
- #: ../lib/foreman_ansible/remote_execution.rb:24
539
+ #: ../lib/foreman_ansible/remote_execution.rb:26
459
540
  msgid "Ansible: Run Insights maintenance plan"
460
541
  msgstr ""
461
542
 
462
- #: ../lib/foreman_ansible/remote_execution.rb:25
543
+ #: ../lib/foreman_ansible/remote_execution.rb:27
463
544
  msgid "Runs a given maintenance plan from Red Hat Access Insights given an ID."
464
545
  msgstr ""
465
546
 
466
547
  #: action_names.rb:2
467
- msgid "Action with sub plans"
548
+ msgid "Import Puppet classes"
468
549
  msgstr ""
469
550
 
470
551
  #: action_names.rb:3
@@ -472,7 +553,7 @@ msgid "Import facts"
472
553
  msgstr ""
473
554
 
474
555
  #: action_names.rb:4
475
- msgid "Import Puppet classes"
556
+ msgid "Action with sub plans"
476
557
  msgstr ""
477
558
 
478
559
  #: action_names.rb:5