foreman_ansible 5.0.1 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/foreman_ansible/ansible_provider.rb +8 -0
  3. data/app/models/setting/ansible.rb +1 -1
  4. data/app/services/foreman_ansible/operating_system_parser.rb +1 -1
  5. data/app/services/foreman_ansible/variables_importer.rb +8 -9
  6. data/app/views/foreman_ansible/job_templates/capsule_upgrade_-_ansible_default.erb +71 -0
  7. data/app/views/foreman_ansible/job_templates/{connect_red_hat_receptor_controller_-_ansible_default.erb → configure_cloud_connector_-_ansible_default.erb} +5 -2
  8. data/db/migrate/20200421201839_update_ansible_inv_template_name.rb +9 -0
  9. data/db/seeds.d/75_job_templates.rb +1 -1
  10. data/lib/foreman_ansible/engine.rb +22 -25
  11. data/lib/foreman_ansible/remote_execution.rb +11 -0
  12. data/lib/foreman_ansible/version.rb +1 -1
  13. data/locale/action_names.rb +3 -3
  14. data/locale/ca/LC_MESSAGES/foreman_ansible.mo +0 -0
  15. data/locale/ca/foreman_ansible.po +556 -0
  16. data/locale/cs_CZ/LC_MESSAGES/foreman_ansible.mo +0 -0
  17. data/locale/cs_CZ/foreman_ansible.po +556 -0
  18. data/locale/de/LC_MESSAGES/foreman_ansible.mo +0 -0
  19. data/locale/de/foreman_ansible.po +38 -33
  20. data/locale/en/LC_MESSAGES/foreman_ansible.mo +0 -0
  21. data/locale/en/foreman_ansible.po +38 -33
  22. data/locale/en_GB/LC_MESSAGES/foreman_ansible.mo +0 -0
  23. data/locale/en_GB/foreman_ansible.po +555 -0
  24. data/locale/es/LC_MESSAGES/foreman_ansible.mo +0 -0
  25. data/locale/es/foreman_ansible.po +38 -33
  26. data/locale/foreman_ansible.pot +96 -88
  27. data/locale/fr/LC_MESSAGES/foreman_ansible.mo +0 -0
  28. data/locale/fr/foreman_ansible.po +38 -33
  29. data/locale/gl/LC_MESSAGES/foreman_ansible.mo +0 -0
  30. data/locale/gl/foreman_ansible.po +553 -0
  31. data/locale/it/LC_MESSAGES/foreman_ansible.mo +0 -0
  32. data/locale/it/foreman_ansible.po +38 -33
  33. data/locale/ja/LC_MESSAGES/foreman_ansible.mo +0 -0
  34. data/locale/ja/foreman_ansible.po +38 -33
  35. data/locale/ko/LC_MESSAGES/foreman_ansible.mo +0 -0
  36. data/locale/ko/foreman_ansible.po +38 -33
  37. data/locale/nl_NL/LC_MESSAGES/foreman_ansible.mo +0 -0
  38. data/locale/nl_NL/foreman_ansible.po +559 -0
  39. data/locale/pl/LC_MESSAGES/foreman_ansible.mo +0 -0
  40. data/locale/pl/foreman_ansible.po +556 -0
  41. data/locale/pt_BR/LC_MESSAGES/foreman_ansible.mo +0 -0
  42. data/locale/pt_BR/foreman_ansible.po +38 -33
  43. data/locale/ru/LC_MESSAGES/foreman_ansible.mo +0 -0
  44. data/locale/ru/foreman_ansible.po +38 -33
  45. data/locale/sv_SE/LC_MESSAGES/foreman_ansible.mo +0 -0
  46. data/locale/sv_SE/foreman_ansible.po +556 -0
  47. data/locale/zh_CN/LC_MESSAGES/foreman_ansible.mo +0 -0
  48. data/locale/zh_CN/foreman_ansible.po +38 -33
  49. data/locale/zh_TW/LC_MESSAGES/foreman_ansible.mo +0 -0
  50. data/locale/zh_TW/foreman_ansible.po +38 -33
  51. data/test/factories/ansible_variables.rb +5 -0
  52. data/test/unit/services/ansible_variables_importer_test.rb +68 -43
  53. metadata +55 -61
  54. data/locale/de/foreman_ansible.edit.po +0 -825
  55. data/locale/de/foreman_ansible.po.time_stamp +0 -0
  56. data/locale/en/foreman_ansible.edit.po +0 -714
  57. data/locale/en/foreman_ansible.po.time_stamp +0 -0
  58. data/locale/es/foreman_ansible.edit.po +0 -845
  59. data/locale/es/foreman_ansible.po.time_stamp +0 -0
  60. data/locale/fr/foreman_ansible.edit.po +0 -847
  61. data/locale/fr/foreman_ansible.po.time_stamp +0 -0
  62. data/locale/it/foreman_ansible.edit.po +0 -818
  63. data/locale/it/foreman_ansible.po.time_stamp +0 -0
  64. data/locale/ja/foreman_ansible.edit.po +0 -818
  65. data/locale/ja/foreman_ansible.po.time_stamp +0 -0
  66. data/locale/ko/foreman_ansible.edit.po +0 -804
  67. data/locale/ko/foreman_ansible.po.time_stamp +0 -0
  68. data/locale/pt_BR/foreman_ansible.edit.po +0 -845
  69. data/locale/pt_BR/foreman_ansible.po.time_stamp +0 -0
  70. data/locale/ru/foreman_ansible.edit.po +0 -819
  71. data/locale/ru/foreman_ansible.po.time_stamp +0 -0
  72. data/locale/zh_CN/foreman_ansible.edit.po +0 -813
  73. data/locale/zh_CN/foreman_ansible.po.time_stamp +0 -0
  74. data/locale/zh_TW/foreman_ansible.edit.po +0 -804
  75. data/locale/zh_TW/foreman_ansible.po.time_stamp +0 -0
@@ -5,7 +5,7 @@
5
5
  #
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_ansible 3.0.1\n"
8
+ "Project-Id-Version: foreman_ansible 5.0.1\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"
@@ -131,6 +131,9 @@ msgstr ""
131
131
  msgid "Create an override value for a specific ansible variable"
132
132
  msgstr ""
133
133
 
134
+ msgid "Default Ansible inventory report template"
135
+ msgstr ""
136
+
134
137
  msgid "Default Behavior"
135
138
  msgstr ""
136
139
 
@@ -179,10 +182,13 @@ msgstr ""
179
182
  msgid "Foreman"
180
183
  msgstr ""
181
184
 
182
- msgid "Foreman will add the this level of verbosity for additional debugging output when running Ansible playbooks."
185
+ msgid "Foreman will add this level of verbosity for additional debugging output when running Ansible playbooks."
186
+ msgstr ""
187
+
188
+ msgid "Foreman will use this template to schedule the report with Ansible inventory"
183
189
  msgstr ""
184
190
 
185
- msgid "Foreman will run Ansible playbooks using this implementation"
191
+ msgid "Hash of input values of type input=>value"
186
192
  msgstr ""
187
193
 
188
194
  msgid "Hidden Value"
@@ -224,9 +230,6 @@ msgstr ""
224
230
  msgid "If checked, will raise an error if there is no default value and no matcher provide a value."
225
231
  msgstr ""
226
232
 
227
- msgid "Implementation for running Ansible"
228
- msgstr ""
229
-
230
233
  msgid "Import"
231
234
  msgstr ""
232
235
 
@@ -248,13 +251,6 @@ msgstr ""
248
251
  msgid "Import of roles successfully finished."
249
252
  msgstr ""
250
253
 
251
- msgid ""
252
- "Import of variables successfully finished.\n"
253
- "Added: #{results[:added].count} \n"
254
- " Removed: #{results[:obsolete].count} \n"
255
- "Updated: #{results[:updated].count}"
256
- msgstr ""
257
-
258
254
  msgid "Imported at"
259
255
  msgstr ""
260
256
 
@@ -383,69 +379,78 @@ msgstr ""
383
379
  msgid "Overriden"
384
380
  msgstr ""
385
381
 
386
- msgid "Play Ansible roles"
382
+ msgid "Post-provision timeout"
387
383
  msgstr ""
388
384
 
389
- msgid "Play Roles"
385
+ msgid "Prioritize Attribute Order"
390
386
  msgstr ""
391
387
 
392
- msgid "Playbook execution failed"
388
+ msgid "Private Key Path"
393
389
  msgstr ""
394
390
 
395
- msgid "Plays Ansible roles on a host"
391
+ msgid "Proxy not found"
396
392
  msgstr ""
397
393
 
398
- msgid "Plays Ansible roles on a hostgroup"
394
+ msgid "Remediation Plan"
399
395
  msgstr ""
400
396
 
401
- msgid "Plays Ansible roles on hostgroups"
397
+ msgid "Remote action:"
402
398
  msgstr ""
403
399
 
404
- msgid "Plays Ansible roles on hosts"
400
+ msgid "Remove"
405
401
  msgstr ""
406
402
 
407
- msgid "Post-provision timeout"
403
+ msgid "Remove duplicate values (only array type)"
408
404
  msgstr ""
409
405
 
410
- msgid "Prioritize Attribute Order"
406
+ msgid "Report format, defaults to '%s'"
411
407
  msgstr ""
412
408
 
413
- msgid "Private Key Path"
409
+ msgid "Role ID"
414
410
  msgstr ""
415
411
 
416
- msgid "Proxy not found"
412
+ msgid "Roles"
417
413
  msgstr ""
418
414
 
419
- msgid "Remediation Plan"
415
+ msgid "Role|Name"
420
416
  msgstr ""
421
417
 
422
- msgid "Remote action:"
418
+ msgid "Run Ansible roles"
423
419
  msgstr ""
424
420
 
425
- msgid "Remove"
421
+ msgid "Run all Ansible roles"
426
422
  msgstr ""
427
423
 
428
- msgid "Remove duplicate values (only array type)"
424
+ msgid "Run all Ansible roles on hosts belonging to this host group"
429
425
  msgstr ""
430
426
 
431
- msgid "Role ID"
427
+ msgid "Run an Ansible playbook against given hosts"
432
428
  msgstr ""
433
429
 
434
- msgid "Roles"
430
+ msgid "Run playbook"
435
431
  msgstr ""
436
432
 
437
- msgid "Role|Name"
433
+ msgid "Runs a given maintenance plan from Red Hat Access Insights given an ID."
438
434
  msgstr ""
439
435
 
440
- msgid "Run Ansible roles"
436
+ msgid "Runs all Ansible roles on a host"
441
437
  msgstr ""
442
438
 
443
- msgid "Runs a given maintenance plan from Red Hat Access Insights given an ID."
439
+ msgid "Runs all Ansible roles on a hostgroup"
440
+ msgstr ""
441
+
442
+ msgid "Runs all Ansible roles on hostgroups"
443
+ msgstr ""
444
+
445
+ msgid "Runs all Ansible roles on hosts"
444
446
  msgstr ""
445
447
 
446
448
  msgid "Runs an Ansible playbook which contains all the roles defined for a host"
447
449
  msgstr ""
448
450
 
451
+ msgid "Schedule generating of Ansible Inventory report"
452
+ msgstr ""
453
+
449
454
  msgid "Select the changes you want to realize in Foreman"
450
455
  msgstr ""
451
456
 
@@ -5,7 +5,7 @@
5
5
  #
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_ansible 3.0.1\n"
8
+ "Project-Id-Version: foreman_ansible 5.0.1\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"
@@ -131,6 +131,9 @@ msgstr ""
131
131
  msgid "Create an override value for a specific ansible variable"
132
132
  msgstr ""
133
133
 
134
+ msgid "Default Ansible inventory report template"
135
+ msgstr ""
136
+
134
137
  msgid "Default Behavior"
135
138
  msgstr ""
136
139
 
@@ -179,10 +182,13 @@ msgstr ""
179
182
  msgid "Foreman"
180
183
  msgstr ""
181
184
 
182
- msgid "Foreman will add the this level of verbosity for additional debugging output when running Ansible playbooks."
185
+ msgid "Foreman will add this level of verbosity for additional debugging output when running Ansible playbooks."
186
+ msgstr ""
187
+
188
+ msgid "Foreman will use this template to schedule the report with Ansible inventory"
183
189
  msgstr ""
184
190
 
185
- msgid "Foreman will run Ansible playbooks using this implementation"
191
+ msgid "Hash of input values of type input=>value"
186
192
  msgstr ""
187
193
 
188
194
  msgid "Hidden Value"
@@ -224,9 +230,6 @@ msgstr ""
224
230
  msgid "If checked, will raise an error if there is no default value and no matcher provide a value."
225
231
  msgstr ""
226
232
 
227
- msgid "Implementation for running Ansible"
228
- msgstr ""
229
-
230
233
  msgid "Import"
231
234
  msgstr ""
232
235
 
@@ -248,13 +251,6 @@ msgstr ""
248
251
  msgid "Import of roles successfully finished."
249
252
  msgstr ""
250
253
 
251
- msgid ""
252
- "Import of variables successfully finished.\n"
253
- "Added: #{results[:added].count} \n"
254
- " Removed: #{results[:obsolete].count} \n"
255
- "Updated: #{results[:updated].count}"
256
- msgstr ""
257
-
258
254
  msgid "Imported at"
259
255
  msgstr ""
260
256
 
@@ -383,69 +379,78 @@ msgstr ""
383
379
  msgid "Overriden"
384
380
  msgstr ""
385
381
 
386
- msgid "Play Ansible roles"
382
+ msgid "Post-provision timeout"
387
383
  msgstr ""
388
384
 
389
- msgid "Play Roles"
385
+ msgid "Prioritize Attribute Order"
390
386
  msgstr ""
391
387
 
392
- msgid "Playbook execution failed"
388
+ msgid "Private Key Path"
393
389
  msgstr ""
394
390
 
395
- msgid "Plays Ansible roles on a host"
391
+ msgid "Proxy not found"
396
392
  msgstr ""
397
393
 
398
- msgid "Plays Ansible roles on a hostgroup"
394
+ msgid "Remediation Plan"
399
395
  msgstr ""
400
396
 
401
- msgid "Plays Ansible roles on hostgroups"
397
+ msgid "Remote action:"
402
398
  msgstr ""
403
399
 
404
- msgid "Plays Ansible roles on hosts"
400
+ msgid "Remove"
405
401
  msgstr ""
406
402
 
407
- msgid "Post-provision timeout"
403
+ msgid "Remove duplicate values (only array type)"
408
404
  msgstr ""
409
405
 
410
- msgid "Prioritize Attribute Order"
406
+ msgid "Report format, defaults to '%s'"
411
407
  msgstr ""
412
408
 
413
- msgid "Private Key Path"
409
+ msgid "Role ID"
414
410
  msgstr ""
415
411
 
416
- msgid "Proxy not found"
412
+ msgid "Roles"
417
413
  msgstr ""
418
414
 
419
- msgid "Remediation Plan"
415
+ msgid "Role|Name"
420
416
  msgstr ""
421
417
 
422
- msgid "Remote action:"
418
+ msgid "Run Ansible roles"
423
419
  msgstr ""
424
420
 
425
- msgid "Remove"
421
+ msgid "Run all Ansible roles"
426
422
  msgstr ""
427
423
 
428
- msgid "Remove duplicate values (only array type)"
424
+ msgid "Run all Ansible roles on hosts belonging to this host group"
429
425
  msgstr ""
430
426
 
431
- msgid "Role ID"
427
+ msgid "Run an Ansible playbook against given hosts"
432
428
  msgstr ""
433
429
 
434
- msgid "Roles"
430
+ msgid "Run playbook"
435
431
  msgstr ""
436
432
 
437
- msgid "Role|Name"
433
+ msgid "Runs a given maintenance plan from Red Hat Access Insights given an ID."
438
434
  msgstr ""
439
435
 
440
- msgid "Run Ansible roles"
436
+ msgid "Runs all Ansible roles on a host"
441
437
  msgstr ""
442
438
 
443
- msgid "Runs a given maintenance plan from Red Hat Access Insights given an ID."
439
+ msgid "Runs all Ansible roles on a hostgroup"
440
+ msgstr ""
441
+
442
+ msgid "Runs all Ansible roles on hostgroups"
443
+ msgstr ""
444
+
445
+ msgid "Runs all Ansible roles on hosts"
444
446
  msgstr ""
445
447
 
446
448
  msgid "Runs an Ansible playbook which contains all the roles defined for a host"
447
449
  msgstr ""
448
450
 
451
+ msgid "Schedule generating of Ansible Inventory report"
452
+ msgstr ""
453
+
449
454
  msgid "Select the changes you want to realize in Foreman"
450
455
  msgstr ""
451
456
 
@@ -6,5 +6,10 @@ FactoryBot.define do
6
6
  sequence(:default_value) { |n| "default_value_#{n}" }
7
7
  ansible_role
8
8
  imported { true }
9
+ override { false }
10
+
11
+ after(:build) do |variable|
12
+ variable.key_type ||= ForemanAnsible::VariablesImporter::VARIABLE_TYPES[variable.default_value.class.to_s] || 'string'
13
+ end
9
14
  end
10
15
  end
@@ -5,52 +5,77 @@ require 'test_plugin_helper'
5
5
  # This service is meant to take in essentially a string coming from
6
6
  # the proxy API, and parse that into AnsibleVariables.
7
7
  class AnsibleVariablesImporterTest < ActiveSupport::TestCase
8
- setup do
9
- @importer = ForemanAnsible::VariablesImporter.new
10
- end
11
- test 'does not reimport already existing variables' do
12
- already_existing = FactoryBot.create(:ansible_variable)
13
- new_role = FactoryBot.create(:ansible_role)
14
- api_response = {
15
- new_role.name => { 'new_var' => 'new value' },
16
- already_existing.ansible_role.name => { already_existing.key => already_existing.default_value }
17
- }
18
- changes = @importer.import_variables(api_response, [new_role.name])
19
- assert_not_empty changes['new']
20
- assert_equal 'new_var', changes['new'].first.key
21
- assert_equal new_role, changes['new'].first.ansible_role
22
- end
8
+ let(:importer) { ForemanAnsible::VariablesImporter.new }
23
9
 
24
- test "variables attempts to remove variables that don't exist anymore" do
25
- obsolete_variable = FactoryBot.create(:ansible_variable)
26
- changes = @importer.import_variables({}, [])
27
- assert_not_empty changes['obsolete']
28
- assert_equal obsolete_variable.key, changes['obsolete'].first.key
29
- assert_equal(
30
- obsolete_variable.ansible_role,
31
- changes['obsolete'].first.ansible_role
32
- )
33
- end
10
+ describe '#import_variables' do
11
+ test 'does not reimport already existing variables' do
12
+ already_existing = FactoryBot.create(:ansible_variable)
13
+ new_role = FactoryBot.create(:ansible_role)
14
+ api_response = {
15
+ new_role.name => { 'new_var' => 'new value' },
16
+ already_existing.ansible_role.name => { already_existing.key => already_existing.default_value }
17
+ }
18
+ changes = importer.import_variables(api_response, [new_role.name])
19
+ assert_empty changes['update']
20
+ assert_not_empty changes['new']
21
+ assert_equal 'new_var', changes['new'].first.key
22
+ assert_equal new_role, changes['new'].first.ansible_role
23
+ end
34
24
 
35
- test 'does not do anything if response is empty' do
36
- changes = @importer.import_variables({}, [])
37
- assert_equal({ 'new' => [], 'obsolete' => [], 'update' => [] }, changes)
38
- end
25
+ test "variables attempts to remove variables that don't exist anymore" do
26
+ obsolete_variable = FactoryBot.create(:ansible_variable)
27
+ changes = importer.import_variables({}, [])
28
+ assert_not_empty changes['obsolete']
29
+ assert_equal obsolete_variable.key, changes['obsolete'].first.key
30
+ assert_equal(
31
+ obsolete_variable.ansible_role,
32
+ changes['obsolete'].first.ansible_role
33
+ )
34
+ end
39
35
 
40
- test 'do not update changed defaults' do
41
- role = FactoryBot.create(:ansible_role)
42
- variable = FactoryBot.create(:ansible_variable, :default_value => 'default value', :ansible_role_id => role.id)
43
- api_response = {
44
- role.name => { variable.key => 'changed value', 'new_variable' => 'new value' }
45
- }
46
- changes = @importer.import_variables(api_response, [])
47
- assert_empty changes['update']
48
- assert_equal 'new_variable', changes['new'].first.key
49
- end
36
+ test 'does not do anything if response is empty' do
37
+ changes = importer.import_variables({}, [])
38
+ assert_equal({ 'new' => [], 'obsolete' => [], 'update' => [] }, changes)
39
+ end
40
+
41
+ test 'update changed defaults' do
42
+ role = FactoryBot.create(:ansible_role)
43
+ variable = FactoryBot.create(:ansible_variable, :default_value => 'default value', :ansible_role => role)
44
+ api_response = {
45
+ role.name => { variable.key => 'changed value' }
46
+ }
47
+ changes = importer.import_variables(api_response, [])
48
+ assert_not_empty changes['update']
49
+ assert_equal variable.key, changes['update'].first.key
50
+ end
51
+
52
+ test 'does not update overriden defaults' do
53
+ role = FactoryBot.create(:ansible_role)
54
+ variable = FactoryBot.create(:ansible_variable, :default_value => 'default value', :override => true, :ansible_role => role)
55
+ api_response = {
56
+ role.name => { variable.key => 'changed value' }
57
+ }
58
+ changes = importer.import_variables(api_response, [])
59
+ assert_empty changes['update']
60
+ end
61
+
62
+ test 'reimports variable with same key for different role' do
63
+ role = FactoryBot.create(:ansible_role)
64
+ variable = FactoryBot.create(:ansible_variable)
65
+ api_response = {
66
+ role.name => { variable.key => 'new value' }
67
+ }
68
+ changes = importer.import_variables(api_response, [role.name])
69
+ assert_empty changes['update']
70
+ assert_not_empty changes['new']
71
+ assert_equal variable.key, changes['new'].first.key
72
+ assert_equal 'new value', changes['new'].first.default_value
73
+ end
50
74
 
51
- test 'should ignore custom variables' do
52
- FactoryBot.create(:ansible_variable, :imported => false)
53
- changes = @importer.import_variables({}, [])
54
- assert_empty changes['obsolete']
75
+ test 'ignores custom variables' do
76
+ FactoryBot.create(:ansible_variable, :imported => false)
77
+ changes = importer.import_variables({}, [])
78
+ assert_empty changes['obsolete']
79
+ end
55
80
  end
56
81
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_ansible
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 5.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lobato Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-09 00:00:00.000000000 Z
11
+ date: 2020-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.52'
19
+ version: 0.80.0
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.52'
26
+ version: 0.80.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: foreman_ansible_core
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 2.0.0
61
+ version: 3.3.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 2.0.0
68
+ version: 3.3.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: ipaddress
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -186,7 +186,8 @@ files:
186
186
  - app/views/foreman_ansible/job_templates/ansible_roles_-_ansible_default.erb
187
187
  - app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_galaxy.erb
188
188
  - app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_git.erb
189
- - app/views/foreman_ansible/job_templates/connect_red_hat_receptor_controller_-_ansible_default.erb
189
+ - app/views/foreman_ansible/job_templates/capsule_upgrade_-_ansible_default.erb
190
+ - app/views/foreman_ansible/job_templates/configure_cloud_connector_-_ansible_default.erb
190
191
  - app/views/foreman_ansible/job_templates/maintenance_plan.erb
191
192
  - app/views/foreman_ansible/job_templates/module_action_-_ansible_default.erb
192
193
  - app/views/foreman_ansible/job_templates/package_action_-_ansible_default.erb
@@ -211,6 +212,7 @@ files:
211
212
  - db/migrate/20190318094437_add_imported_attr_to_ansible_variables.rb
212
213
  - db/migrate/20190328114657_remove_top_level_ansible_variables_setting.rb
213
214
  - db/migrate/20191010074208_remove_ansible_implementation_setting.rb
215
+ - db/migrate/20200421201839_update_ansible_inv_template_name.rb
214
216
  - db/seeds.d/62_ansible_proxy_feature.rb
215
217
  - db/seeds.d/75_job_templates.rb
216
218
  - db/seeds.d/90_notification_blueprints.rb
@@ -221,52 +223,44 @@ files:
221
223
  - lib/foreman_ansible/version.rb
222
224
  - locale/Makefile
223
225
  - locale/action_names.rb
226
+ - locale/ca/LC_MESSAGES/foreman_ansible.mo
227
+ - locale/ca/foreman_ansible.po
228
+ - locale/cs_CZ/LC_MESSAGES/foreman_ansible.mo
229
+ - locale/cs_CZ/foreman_ansible.po
224
230
  - locale/de/LC_MESSAGES/foreman_ansible.mo
225
- - locale/de/foreman_ansible.edit.po
226
231
  - locale/de/foreman_ansible.po
227
- - locale/de/foreman_ansible.po.time_stamp
228
232
  - locale/en/LC_MESSAGES/foreman_ansible.mo
229
- - locale/en/foreman_ansible.edit.po
230
233
  - locale/en/foreman_ansible.po
231
- - locale/en/foreman_ansible.po.time_stamp
234
+ - locale/en_GB/LC_MESSAGES/foreman_ansible.mo
235
+ - locale/en_GB/foreman_ansible.po
232
236
  - locale/es/LC_MESSAGES/foreman_ansible.mo
233
- - locale/es/foreman_ansible.edit.po
234
237
  - locale/es/foreman_ansible.po
235
- - locale/es/foreman_ansible.po.time_stamp
236
238
  - locale/foreman_ansible.pot
237
239
  - locale/fr/LC_MESSAGES/foreman_ansible.mo
238
- - locale/fr/foreman_ansible.edit.po
239
240
  - locale/fr/foreman_ansible.po
240
- - locale/fr/foreman_ansible.po.time_stamp
241
241
  - locale/gemspec.rb
242
+ - locale/gl/LC_MESSAGES/foreman_ansible.mo
243
+ - locale/gl/foreman_ansible.po
242
244
  - locale/it/LC_MESSAGES/foreman_ansible.mo
243
- - locale/it/foreman_ansible.edit.po
244
245
  - locale/it/foreman_ansible.po
245
- - locale/it/foreman_ansible.po.time_stamp
246
246
  - locale/ja/LC_MESSAGES/foreman_ansible.mo
247
- - locale/ja/foreman_ansible.edit.po
248
247
  - locale/ja/foreman_ansible.po
249
- - locale/ja/foreman_ansible.po.time_stamp
250
248
  - locale/ko/LC_MESSAGES/foreman_ansible.mo
251
- - locale/ko/foreman_ansible.edit.po
252
249
  - locale/ko/foreman_ansible.po
253
- - locale/ko/foreman_ansible.po.time_stamp
250
+ - locale/nl_NL/LC_MESSAGES/foreman_ansible.mo
251
+ - locale/nl_NL/foreman_ansible.po
252
+ - locale/pl/LC_MESSAGES/foreman_ansible.mo
253
+ - locale/pl/foreman_ansible.po
254
254
  - locale/pt_BR/LC_MESSAGES/foreman_ansible.mo
255
- - locale/pt_BR/foreman_ansible.edit.po
256
255
  - locale/pt_BR/foreman_ansible.po
257
- - locale/pt_BR/foreman_ansible.po.time_stamp
258
256
  - locale/ru/LC_MESSAGES/foreman_ansible.mo
259
- - locale/ru/foreman_ansible.edit.po
260
257
  - locale/ru/foreman_ansible.po
261
- - locale/ru/foreman_ansible.po.time_stamp
258
+ - locale/sv_SE/LC_MESSAGES/foreman_ansible.mo
259
+ - locale/sv_SE/foreman_ansible.po
262
260
  - locale/zh_CN/LC_MESSAGES/foreman_ansible.mo
263
- - locale/zh_CN/foreman_ansible.edit.po
264
261
  - locale/zh_CN/foreman_ansible.po
265
- - locale/zh_CN/foreman_ansible.po.time_stamp
266
262
  - locale/zh_TW/LC_MESSAGES/foreman_ansible.mo
267
- - locale/zh_TW/foreman_ansible.edit.po
268
263
  - locale/zh_TW/foreman_ansible.po
269
- - locale/zh_TW/foreman_ansible.po.time_stamp
270
264
  - package.json
271
265
  - test/factories/ansible_proxy.rb
272
266
  - test/factories/ansible_roles.rb
@@ -373,44 +367,44 @@ specification_version: 4
373
367
  summary: Ansible integration with Foreman (theforeman.org)
374
368
  test_files:
375
369
  - test/factories/ansible_proxy.rb
376
- - test/factories/ansible_variables.rb
377
370
  - test/factories/ansible_roles.rb
378
- - test/test_plugin_helper.rb
379
- - test/unit/host_ansible_role_test.rb
380
- - test/unit/ansible_role_test.rb
381
- - test/unit/services/ui_roles_importer_test.rb
382
- - test/unit/services/roles_importer_test.rb
383
- - test/unit/services/insights_plan_runner_test.rb
384
- - test/unit/services/ansible_report_importer_test.rb
385
- - test/unit/services/inventory_creator_test.rb
386
- - test/unit/services/fact_importer_test.rb
387
- - test/unit/services/fact_sparser_test.rb
388
- - test/unit/services/structured_fact_importer_test.rb
389
- - test/unit/services/fact_parser_test.rb
390
- - test/unit/services/ansible_variables_importer_test.rb
391
- - test/unit/services/api_roles_importer_test.rb
392
- - test/unit/ansible_variable_test.rb
393
- - test/unit/lib/foreman_ansible_core/playbook_runner_test.rb
394
- - test/unit/lib/foreman_ansible_core/command_creator_test.rb
395
- - test/unit/lib/foreman_ansible_core/ansible_runner_test.rb
396
- - test/unit/lib/proxy_api/ansible_test.rb
397
- - test/unit/hostgroup_ansible_role_test.rb
398
- - test/unit/concerns/hostgroup_extensions_test.rb
399
- - test/unit/concerns/host_managed_extensions_test.rb
400
- - test/unit/concerns/config_reports_extensions_test.rb
401
- - test/unit/helpers/ansible_reports_helper_test.rb
402
- - test/unit/actions/run_proxy_ansible_command_test.rb
403
- - test/unit/actions/run_ansible_job_test.rb
404
- - test/unit/ansible_provider_test.rb
371
+ - test/factories/ansible_variables.rb
405
372
  - test/fixtures/insights_playbook.yaml
406
- - test/fixtures/sample_facts.json
407
373
  - test/fixtures/report.json
408
- - test/functional/hosts_controller_test.rb
409
- - test/functional/api/v2/hosts_controller_test.rb
374
+ - test/fixtures/sample_facts.json
410
375
  - test/functional/api/v2/ansible_roles_controller_test.rb
411
- - test/functional/api/v2/ansible_variables_controller_test.rb
412
376
  - test/functional/api/v2/hostgroups_controller_test.rb
377
+ - test/functional/api/v2/hosts_controller_test.rb
413
378
  - test/functional/api/v2/ansible_inventories_controller_test.rb
379
+ - test/functional/api/v2/ansible_variables_controller_test.rb
414
380
  - test/functional/ansible_roles_controller_test.rb
415
381
  - test/functional/ansible_variables_controller_test.rb
416
382
  - test/functional/ui_ansible_roles_controller_test.rb
383
+ - test/functional/hosts_controller_test.rb
384
+ - test/unit/actions/run_ansible_job_test.rb
385
+ - test/unit/actions/run_proxy_ansible_command_test.rb
386
+ - test/unit/concerns/config_reports_extensions_test.rb
387
+ - test/unit/concerns/host_managed_extensions_test.rb
388
+ - test/unit/concerns/hostgroup_extensions_test.rb
389
+ - test/unit/helpers/ansible_reports_helper_test.rb
390
+ - test/unit/lib/foreman_ansible_core/command_creator_test.rb
391
+ - test/unit/lib/foreman_ansible_core/ansible_runner_test.rb
392
+ - test/unit/lib/foreman_ansible_core/playbook_runner_test.rb
393
+ - test/unit/lib/proxy_api/ansible_test.rb
394
+ - test/unit/services/api_roles_importer_test.rb
395
+ - test/unit/services/fact_sparser_test.rb
396
+ - test/unit/services/insights_plan_runner_test.rb
397
+ - test/unit/services/roles_importer_test.rb
398
+ - test/unit/services/structured_fact_importer_test.rb
399
+ - test/unit/services/ui_roles_importer_test.rb
400
+ - test/unit/services/ansible_report_importer_test.rb
401
+ - test/unit/services/fact_importer_test.rb
402
+ - test/unit/services/fact_parser_test.rb
403
+ - test/unit/services/inventory_creator_test.rb
404
+ - test/unit/services/ansible_variables_importer_test.rb
405
+ - test/unit/ansible_role_test.rb
406
+ - test/unit/host_ansible_role_test.rb
407
+ - test/unit/hostgroup_ansible_role_test.rb
408
+ - test/unit/ansible_provider_test.rb
409
+ - test/unit/ansible_variable_test.rb
410
+ - test/test_plugin_helper.rb