foreman_ansible 4.0.0 → 4.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 75b0679707788dc074b4a0393b12f40e04129508
4
- data.tar.gz: a94d06214e2975de3fe5db4e34a924f83f083a26
2
+ SHA256:
3
+ metadata.gz: ae2931f51898d70f85daf7307b443da9672a8be5054a5af35bc40e153ce2b382
4
+ data.tar.gz: bd5927a48e64ce6f00c256a921abfa222f146e7668342b945903f969a715b946
5
5
  SHA512:
6
- metadata.gz: 44c06deccb3733c5e29bfbe294a0f5a31bf1005c3e1239397142c410224e06990a505d40a3d06c58686664b75e6aa2b0dfabf83b97fce7706d4afa3aa775e607
7
- data.tar.gz: fd568be4b00eafbf89696d4a1468cd0996e5b0c9ecef42ed841982e67ee87bdbe3b3ff1265ebdecd2a402eb0abd4546ebf8ec2a92d5231374ae9dc29e51115f4
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_('Plays Ansible roles on a hostgroup')
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_('Plays Ansible roles on hostgroups')
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_('Plays Ansible roles on a host')
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_('Plays Ansible roles on hosts')
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 += [[_('Play Ansible roles'),
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.to_json,
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
- "<a title='No Roles assigned' href=\"#\">#{_('Play Roles')}</a>".html_safe
3
+ link_to _('Run all Ansible roles'), 'javascript:void(0);', disabled: true, title: 'No Roles assigned'
4
4
  else
5
- display_link_if_authorized(_('Play Roles'), hash_for_play_roles_hostgroup_path(:id => hostgroup), :'data-no-turbolink' => true)
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 = [
@@ -4,5 +4,5 @@
4
4
  # This way other parts of Foreman can just call ForemanAnsible::VERSION
5
5
  # and detect what version the plugin is running.
6
6
  module ForemanAnsible
7
- VERSION = '4.0.0'
7
+ VERSION = '4.0.2'
8
8
  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: 4.0.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-10-25 00:00:00.000000000 Z
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
- rubyforge_project:
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/unit/actions/run_ansible_job_test.rb
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