foreman_ansible 13.0.3 → 13.0.5

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: 5c4af68ee17d90327c926378e19f7c6fc1cc7141c1379074ba6dca91cb6cc0ff
4
+ data.tar.gz: 0b1fbfd87e48bcbd01fcef781388992bcf03ca274e3187011b02adf2cf379715
5
5
  SHA512:
6
- metadata.gz: 222813ad1bafba9d441710ecc46c0c2a046441235d88872c68c869c786798761657ff0461bc416f392c4757cf7142433abc0522bea4d43b770e49fe71eba50e2
7
- data.tar.gz: b975529508ecec0dca43053d04145519aa104a2233c5420cc55bce56247b79588a9328bda0571b6216fb5954cef9696889c0f52db1e1f791581ca717bada89e6
6
+ metadata.gz: 645645d8d3a3be25011a1cf87ce63d3ee58b3016710c9dec5a5635fd4abf827f8da1a85118430feb4e59ac0fffd975be62c651a0c1657d256d27a57da7931887
7
+ data.tar.gz: 98c523e75f9e5c5bfbee9de973d8dad7281a1d0af614e86ffefb1f9f77bc7305e27778ada8476dbfa55d7d040b7829a1941811bbf84db5db8cca26b7d5fbe917
@@ -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'),
@@ -19,7 +19,6 @@ template_inputs:
19
19
  options: "yes\r\nno"
20
20
  advanced: false
21
21
  value_type: plain
22
- resource_type: Katello::ActivationKey
23
22
  hidden_value: false
24
23
  - name: Data telemetry
25
24
  required: true
@@ -52,12 +51,27 @@ kind: job_template
52
51
  ansible.builtin.package:
53
52
  name: convert2rhel
54
53
  state: present
54
+
55
+ - name: Gather package facts
56
+ package_facts:
57
+ manager: auto
58
+
59
+ - name: Set fact for package version
60
+ set_fact:
61
+ convert2rhel_version: "{{ ansible_facts.packages['convert2rhel'][0].version }}"
62
+ when: "'convert2rhel' in ansible_facts.packages"
63
+ no_log: true
64
+
55
65
  - name: Prepopulate katello-ca-consumer
56
66
  get_url:
57
67
  url: <%= subscription_manager_configuration_url(@host) %>
58
68
  dest: /usr/share/convert2rhel/subscription-manager/katello-ca-consumer-latest.noarch.rpm
69
+ when:
70
+ - "convert2rhel_version is version('2.0.0', '<')"
71
+
59
72
  - name: Start convert2rhel
60
- command: convert2rhel -y --activationkey "<%= input_resource('Activation Key').name %>" --org "<%= @host.organization.label %>" --keep-rhsm
73
+ command: convert2rhel -y --activationkey "<%= input_resource('Activation Key').name %>" --org "<%= @host.organization.label %>"
74
+
61
75
  <%- if input('Restart') == "yes" -%>
62
76
  - name: Reboot the machine
63
77
  reboot:
@@ -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.5'
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.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lobato Garcia
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-18 00:00:00.000000000 Z
11
+ date: 2024-05-06 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
@@ -485,7 +485,7 @@ homepage: https://github.com/theforeman/foreman_ansible
485
485
  licenses:
486
486
  - GPL-3.0
487
487
  metadata: {}
488
- post_install_message:
488
+ post_install_message:
489
489
  rdoc_options: []
490
490
  require_paths:
491
491
  - lib
@@ -500,8 +500,8 @@ 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
504
- signing_key:
503
+ rubygems_version: 3.3.27
504
+ signing_key:
505
505
  specification_version: 4
506
506
  summary: Ansible integration with Foreman (theforeman.org)
507
507
  test_files:
@@ -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