foreman_ansible 11.1.2 → 11.2.0

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: 7a38c12c105eac8039a45829e0f05e766b91be42e5ed014b1bd83cf7ba6f96e0
4
- data.tar.gz: 6482567cf6c8c10f20d14783270c12c2dcb137f05001d54e834ec50472789739
3
+ metadata.gz: bf610471f0b7c4357d630471f3f34f4d99f84d91060904ebc7baee85a0a26162
4
+ data.tar.gz: 1bf0b29be5c77f3942fd0ec3f1e00b22bdb9d4dc04deda4cb119763a25c1e042
5
5
  SHA512:
6
- metadata.gz: 640d6cd564a0a4b6b61d58a571a30365a85d1c6905944c5a6fcbd4db8fde689072100e308e5d9579f577f2ec9129da197c2d829640e6b4d5bcf018771ea5a1fc
7
- data.tar.gz: 7d0748946cff9d8541ed08fa0fc8c006376f109816f20edbfd43969aac3115d7feba28ea6ae4c634ea616663e0c289e92bd7036bb767545994dc66353d361168
6
+ metadata.gz: 16c9980e47104205c17326496bf12c2bbf3913db2c80155395b20f0b35f78e7d94c25ad763778431ad11b25ae894a1c5e4c92a14483efe769012fafcc1dbf084
7
+ data.tar.gz: cba6767ef45ff810159320b9351e89f9e984234364e9d2206aa72ec172d2dd5878111e2ff7febd058ae6ba9aa3642b31e9aad446997117dd799138699b0c5d1d
@@ -21,6 +21,21 @@ template_inputs:
21
21
  value_type: plain
22
22
  resource_type: Katello::ActivationKey
23
23
  hidden_value: false
24
+ - name: Data telemetry
25
+ required: true
26
+ input_type: user
27
+ description: "The convert2rhel utility uploads the following data about the system
28
+ conversion to Red Hat servers for the purpose of the utility usage analysis:<br>\r\n-
29
+ The conver2rhel command as executed<br>\r\n- The convert2rhel RPM version and
30
+ GPG signature<br>\r\n- Success or failure status of the conversion<br>\r\n- Conversion
31
+ start and end timestamps<br>\r\n- Source OS vendor and version<br>\r\n- Target
32
+ RHEL version<br>\r\n- convert2rhel related environment variables<br>"
33
+ options: "yes\r\nno"
34
+ advanced: false
35
+ value_type: plain
36
+ resource_type: Katello::ActivationKey
37
+ default: 'yes'
38
+ hidden_value: false
24
39
  model: JobTemplate
25
40
  job_category: Convert 2 RHEL
26
41
  provider_type: Ansible
@@ -28,6 +43,10 @@ kind: job_template
28
43
  %>
29
44
  ---
30
45
  - hosts: all
46
+ <%- if input('Data telemetry') != "yes" -%>
47
+ environment:
48
+ CONVERT2RHEL_DISABLE_TELEMETRY: 1
49
+ <%- end -%>
31
50
  tasks:
32
51
  - name: Install convert2rhel
33
52
  ansible.builtin.package:
@@ -44,5 +63,6 @@ kind: job_template
44
63
  reboot:
45
64
  reboot_timeout: 1800
46
65
  <%- end -%>
66
+ <%- # This will update system facts in Satellite and link the correct OS of the host %->
47
67
  - name: Update system facts
48
68
  command: subscription-manager facts --update
@@ -4,7 +4,7 @@ class AddAnsibleCallbackEnabledToTemplates < ActiveRecord::Migration[6.0]
4
4
  def change
5
5
  add_column :templates, :ansible_callback_enabled, :boolean, default: false
6
6
  RemoteExecutionFeature.where(label: 'ansible_run_host').each do |rex_feature|
7
- Template.find(rex_feature.job_template_id).update(ansible_callback_enabled: true)
7
+ Template.where(id: rex_feature.job_template_id).update_all(ansible_callback_enabled: true)
8
8
  end
9
9
  end
10
10
  end
@@ -0,0 +1,5 @@
1
+ class EnableAnsibleCallbackForRexFeature < ActiveRecord::Migration[6.0]
2
+ def change
3
+ Template.where(id: RemoteExecutionFeature.select(:job_template_id).where(label: 'ansible_run_host')).update_all(ansible_callback_enabled: true)
4
+ end
5
+ end
@@ -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 = '11.1.2'
7
+ VERSION = '11.2.0'
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: 11.1.2
4
+ version: 11.2.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: 2023-03-21 00:00:00.000000000 Z
11
+ date: 2023-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acts_as_list
@@ -225,6 +225,7 @@ files:
225
225
  - db/migrate/20210818083407_fix_ansible_setting_category_to_dsl.rb
226
226
  - db/migrate/20221003153000_add_ansible_callback_enabled_to_templates.rb
227
227
  - db/migrate/20221031114720_rename_capsule_upgrade_playbook.rb
228
+ - db/migrate/20230416170000_enable_ansible_callback_for_rex_feature.rb
228
229
  - db/seeds.d/100_common_parameters.rb
229
230
  - db/seeds.d/62_ansible_proxy_feature.rb
230
231
  - db/seeds.d/75_job_templates.rb