foreman_ansible 4.0.0 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb +2 -2
- data/app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb +2 -2
- data/app/helpers/foreman_ansible/hosts_helper_extensions.rb +1 -1
- data/app/models/foreman_ansible/ansible_provider.rb +1 -1
- data/app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb +2 -2
- data/lib/foreman_ansible/version.rb +1 -1
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ae2931f51898d70f85daf7307b443da9672a8be5054a5af35bc40e153ce2b382
|
4
|
+
data.tar.gz: bd5927a48e64ce6f00c256a921abfa222f146e7668342b945903f969a715b946
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67b60a5be70bd5f1605904c59784792d8ea78ce5e0acb9cfe9369b18df667a7209c588191c44af33f9267b9f950dbb7e5b355712bc0d0e9d5254ef685a85dfe0
|
7
|
+
data.tar.gz: b7cdd2cbd9d8ba3fca66780fe78b1ac0ff3dfbeae19ec4742ca529a880082045df2381d78e17edff3fee260f3d954821f35d8cecb368afe9e8ae15fcfed4744b
|
@@ -17,7 +17,7 @@ module ForemanAnsible
|
|
17
17
|
before_action :find_ansible_roles, :only => [:assign_ansible_roles]
|
18
18
|
|
19
19
|
api :POST, '/hostgroups/:id/play_roles',
|
20
|
-
N_('
|
20
|
+
N_('Runs all Ansible roles on a hostgroup')
|
21
21
|
param :id, :identifier, :required => true
|
22
22
|
|
23
23
|
def play_roles
|
@@ -27,7 +27,7 @@ module ForemanAnsible
|
|
27
27
|
end
|
28
28
|
|
29
29
|
api :POST, '/hostgroups/multiple_play_roles',
|
30
|
-
N_('
|
30
|
+
N_('Runs all Ansible roles on hostgroups')
|
31
31
|
param :hostgroup_ids, Array, N_('IDs of hostgroups to play roles on'),
|
32
32
|
:required => true
|
33
33
|
|
@@ -23,7 +23,7 @@ module ForemanAnsible
|
|
23
23
|
end
|
24
24
|
|
25
25
|
api :POST, '/hosts/:id/play_roles',
|
26
|
-
N_('
|
26
|
+
N_('Runs all Ansible roles on a host')
|
27
27
|
param :id, :identifier, :required => true
|
28
28
|
|
29
29
|
def play_roles
|
@@ -32,7 +32,7 @@ module ForemanAnsible
|
|
32
32
|
end
|
33
33
|
|
34
34
|
api :POST, '/hosts/multiple_play_roles',
|
35
|
-
N_('
|
35
|
+
N_('Runs all Ansible roles on hosts')
|
36
36
|
param :host_ids, Array, N_('IDs of hosts to play roles on'),
|
37
37
|
:required => true
|
38
38
|
|
@@ -10,7 +10,7 @@ module ForemanAnsible
|
|
10
10
|
actions = super
|
11
11
|
if User.current.can?(:create_job_invocations) &&
|
12
12
|
User.current.can?(:play_roles_on_host)
|
13
|
-
actions += [[_('
|
13
|
+
actions += [[_('Run all Ansible roles'),
|
14
14
|
multiple_play_roles_hosts_path,
|
15
15
|
false]]
|
16
16
|
end
|
@@ -22,7 +22,7 @@ if defined? ForemanRemoteExecution
|
|
22
22
|
super(template_invocation, host).merge(
|
23
23
|
'ansible_inventory' => ::ForemanAnsible::InventoryCreator.new(
|
24
24
|
[host], template_invocation
|
25
|
-
).to_hash
|
25
|
+
).to_hash,
|
26
26
|
:verbosity_level => Setting[:ansible_verbosity],
|
27
27
|
:remote_execution_command => ansible_command?(
|
28
28
|
template_invocation.template
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<%=
|
2
2
|
play_roles = if hostgroup.all_ansible_roles.empty?
|
3
|
-
|
3
|
+
link_to _('Run all Ansible roles'), 'javascript:void(0);', disabled: true, title: 'No Roles assigned'
|
4
4
|
else
|
5
|
-
display_link_if_authorized(_('
|
5
|
+
display_link_if_authorized(_('Run all Ansible roles'), hash_for_play_roles_hostgroup_path(id: hostgroup), :'data-no-turbolink' => true, title: _('Run all Ansible roles on hosts belonging to this host group'))
|
6
6
|
end
|
7
7
|
|
8
8
|
actions = [
|
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: 4.0.
|
4
|
+
version: 4.0.2
|
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: 2019-
|
11
|
+
date: 2019-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -364,8 +364,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
364
364
|
- !ruby/object:Gem::Version
|
365
365
|
version: '0'
|
366
366
|
requirements: []
|
367
|
-
|
368
|
-
rubygems_version: 2.6.14
|
367
|
+
rubygems_version: 3.0.3
|
369
368
|
signing_key:
|
370
369
|
specification_version: 4
|
371
370
|
summary: Ansible integration with Foreman (theforeman.org)
|
@@ -373,39 +372,39 @@ test_files:
|
|
373
372
|
- test/factories/ansible_proxy.rb
|
374
373
|
- test/factories/ansible_roles.rb
|
375
374
|
- test/factories/ansible_variables.rb
|
375
|
+
- test/fixtures/sample_facts.json
|
376
376
|
- test/fixtures/insights_playbook.yaml
|
377
377
|
- test/fixtures/report.json
|
378
|
-
- test/fixtures/sample_facts.json
|
379
378
|
- test/functional/api/v2/ansible_roles_controller_test.rb
|
379
|
+
- test/functional/api/v2/ansible_variables_controller_test.rb
|
380
380
|
- test/functional/api/v2/hostgroups_controller_test.rb
|
381
381
|
- test/functional/api/v2/hosts_controller_test.rb
|
382
382
|
- test/functional/api/v2/ansible_inventories_controller_test.rb
|
383
|
-
- test/functional/api/v2/ansible_variables_controller_test.rb
|
384
383
|
- test/functional/ansible_roles_controller_test.rb
|
385
384
|
- test/functional/hosts_controller_test.rb
|
386
|
-
- test/functional/ui_ansible_roles_controller_test.rb
|
387
385
|
- test/functional/ansible_variables_controller_test.rb
|
388
|
-
- test/
|
389
|
-
- test/unit/actions/run_proxy_ansible_command_test.rb
|
386
|
+
- test/functional/ui_ansible_roles_controller_test.rb
|
390
387
|
- test/unit/concerns/config_reports_extensions_test.rb
|
391
388
|
- test/unit/concerns/host_managed_extensions_test.rb
|
392
389
|
- test/unit/concerns/hostgroup_extensions_test.rb
|
393
390
|
- test/unit/helpers/ansible_reports_helper_test.rb
|
391
|
+
- test/unit/lib/proxy_api/ansible_test.rb
|
394
392
|
- test/unit/lib/foreman_ansible_core/command_creator_test.rb
|
395
393
|
- test/unit/lib/foreman_ansible_core/ansible_runner_test.rb
|
396
394
|
- test/unit/lib/foreman_ansible_core/playbook_runner_test.rb
|
397
|
-
- test/unit/lib/proxy_api/ansible_test.rb
|
398
|
-
- test/unit/services/ansible_report_importer_test.rb
|
399
395
|
- test/unit/services/api_roles_importer_test.rb
|
400
396
|
- test/unit/services/fact_sparser_test.rb
|
401
397
|
- test/unit/services/insights_plan_runner_test.rb
|
402
398
|
- test/unit/services/roles_importer_test.rb
|
403
399
|
- test/unit/services/structured_fact_importer_test.rb
|
404
400
|
- test/unit/services/ui_roles_importer_test.rb
|
401
|
+
- test/unit/services/ansible_report_importer_test.rb
|
405
402
|
- test/unit/services/ansible_variables_importer_test.rb
|
406
403
|
- test/unit/services/fact_importer_test.rb
|
407
404
|
- test/unit/services/fact_parser_test.rb
|
408
405
|
- test/unit/services/inventory_creator_test.rb
|
406
|
+
- test/unit/actions/run_ansible_job_test.rb
|
407
|
+
- test/unit/actions/run_proxy_ansible_command_test.rb
|
409
408
|
- test/unit/ansible_role_test.rb
|
410
409
|
- test/unit/host_ansible_role_test.rb
|
411
410
|
- test/unit/hostgroup_ansible_role_test.rb
|