foreman_ansible 11.1.2 → 11.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/foreman_ansible/job_templates/convert_to_rhel.erb +20 -0
- data/db/migrate/20221003153000_add_ansible_callback_enabled_to_templates.rb +1 -1
- data/db/migrate/20230416170000_enable_ansible_callback_for_rex_feature.rb +5 -0
- data/lib/foreman_ansible/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf610471f0b7c4357d630471f3f34f4d99f84d91060904ebc7baee85a0a26162
|
4
|
+
data.tar.gz: 1bf0b29be5c77f3942fd0ec3f1e00b22bdb9d4dc04deda4cb119763a25c1e042
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
7
|
+
Template.where(id: rex_feature.job_template_id).update_all(ansible_callback_enabled: true)
|
8
8
|
end
|
9
9
|
end
|
10
10
|
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.
|
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-
|
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
|