foreman_ansible 13.0.3 → 13.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72f523c6510ef86f864e87e6861cacd4e3d60aa051775c7a2c8fcc358f9c5dd3
4
- data.tar.gz: 4b3286903ba586efe5cded3fc51d4e62ea4379531a9880eda70b0e16b220fda8
3
+ metadata.gz: 7132e432366b88fff7c9b385eb6708aeb04f35d8c52098af9c673d64ab049219
4
+ data.tar.gz: 3761ecc72d5366c6db9260a521f72894b31c335be21800324fd45df09068a503
5
5
  SHA512:
6
- metadata.gz: 222813ad1bafba9d441710ecc46c0c2a046441235d88872c68c869c786798761657ff0461bc416f392c4757cf7142433abc0522bea4d43b770e49fe71eba50e2
7
- data.tar.gz: b975529508ecec0dca43053d04145519aa104a2233c5420cc55bce56247b79588a9328bda0571b6216fb5954cef9696889c0f52db1e1f791581ca717bada89e6
6
+ metadata.gz: 975d0def83217d4dfdb7f53f4da0cede7244f666dba088f63abde4e2f143e88dafe08297f3f2c42c22a15204bd94eac8c6238720fab11c5c1e903324f07e0876
7
+ data.tar.gz: 57b5f9d120e4655a28fb5b5ba3a3ef35de5d4a3a9e1462567a04c38da9d19aeb2e65f3570ba5c8643e78dcfb64a6dbf1646375e949a0102b611eb5d3cc2a8ae6
@@ -97,7 +97,7 @@ module ForemanAnsible
97
97
 
98
98
  def remote_execution_options(host)
99
99
  params = {
100
- 'ansible_user' => host_setting(host, 'remote_execution_ssh_user'),
100
+ 'ansible_user' => @template_invocation&.job_invocation&.ssh_user || host_setting(host, 'remote_execution_ssh_user'),
101
101
  'ansible_become_method' => host_setting(host, 'remote_execution_effective_user_method'),
102
102
  'ansible_ssh_private_key_file' => ansible_ssh_private_key(host),
103
103
  'ansible_port' => host_setting(host, 'remote_execution_ssh_port'),
@@ -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 = '13.0.3'
7
+ VERSION = '13.0.4'
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: 13.0.3
4
+ version: 13.0.4
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: 2024-01-18 00:00:00.000000000 Z
11
+ date: 2024-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acts_as_list
@@ -47,7 +47,7 @@ dependencies:
47
47
  version: '9.0'
48
48
  - - "<"
49
49
  - !ruby/object:Gem::Version
50
- version: '13'
50
+ version: '14'
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -57,7 +57,7 @@ dependencies:
57
57
  version: '9.0'
58
58
  - - "<"
59
59
  - !ruby/object:Gem::Version
60
- version: '13'
60
+ version: '14'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: foreman-tasks
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -500,7 +500,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
500
500
  - !ruby/object:Gem::Version
501
501
  version: '0'
502
502
  requirements: []
503
- rubygems_version: 3.1.4
503
+ rubygems_version: 3.2.3
504
504
  signing_key:
505
505
  specification_version: 4
506
506
  summary: Ansible integration with Foreman (theforeman.org)
@@ -511,23 +511,26 @@ test_files:
511
511
  - test/factories/host_ansible_enhancements.rb
512
512
  - test/fixtures/insights_playbook.yaml
513
513
  - test/fixtures/playbooks_example_output.json
514
+ - test/fixtures/report.json
514
515
  - test/fixtures/sample_facts.json
515
516
  - test/fixtures/sample_playbooks.json
516
- - test/fixtures/report.json
517
517
  - test/foreman_ansible/helpers/ansible_roles_helper_test.rb
518
518
  - test/functional/ansible_roles_controller_test.rb
519
519
  - test/functional/ansible_variables_controller_test.rb
520
+ - test/functional/api/v2/ansible_inventories_controller_test.rb
520
521
  - test/functional/api/v2/ansible_playbooks_controller_test.rb
521
522
  - test/functional/api/v2/ansible_roles_controller_test.rb
522
523
  - test/functional/api/v2/ansible_variables_controller_test.rb
523
524
  - test/functional/api/v2/hostgroups_controller_test.rb
524
525
  - test/functional/api/v2/hosts_controller_test.rb
525
- - test/functional/api/v2/ansible_inventories_controller_test.rb
526
526
  - test/functional/hosts_controller_test.rb
527
527
  - test/functional/ui_ansible_roles_controller_test.rb
528
528
  - test/graphql/mutations/hosts/assign_ansible_roles_mutation_test.rb
529
529
  - test/graphql/queries/ansible_roles_query_test.rb
530
530
  - test/graphql/queries/host_ansible_roles_query_test.rb
531
+ - test/integration/hostgroup_js_test.rb
532
+ - test/test_plugin_helper.rb
533
+ - test/unit/ansible_provider_test.rb
531
534
  - test/unit/ansible_role_test.rb
532
535
  - test/unit/ansible_variable_test.rb
533
536
  - test/unit/concerns/config_reports_extensions_test.rb
@@ -548,6 +551,3 @@ test_files:
548
551
  - test/unit/services/override_resolver_test.rb
549
552
  - test/unit/services/roles_importer_test.rb
550
553
  - test/unit/services/ui_roles_importer_test.rb
551
- - test/unit/ansible_provider_test.rb
552
- - test/integration/hostgroup_js_test.rb
553
- - test/test_plugin_helper.rb