Skip to content

Commit

Permalink
add telemetry to template
Browse files Browse the repository at this point in the history
  • Loading branch information
hosekadam authored and stejskalleos committed Apr 20, 2023
1 parent b9c0e34 commit add2f8c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions app/views/foreman_ansible/job_templates/convert_to_rhel.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,32 @@ template_inputs:
value_type: plain
resource_type: Katello::ActivationKey
hidden_value: false
- name: Data telemetry
required: true
input_type: user
description: "The convert2rhel utility uploads the following data about the system
conversion to Red Hat servers for the purpose of the utility usage analysis:<br>\r\n-
The conver2rhel command as executed<br>\r\n- The convert2rhel RPM version and
GPG signature<br>\r\n- Success or failure status of the conversion<br>\r\n- Conversion
start and end timestamps<br>\r\n- Source OS vendor and version<br>\r\n- Target
RHEL version<br>\r\n- convert2rhel related environment variables<br>"
options: "yes\r\nno"
advanced: false
value_type: plain
resource_type: Katello::ActivationKey
default: 'yes'
hidden_value: false
model: JobTemplate
job_category: Convert 2 RHEL
provider_type: Ansible
kind: job_template
%>
---
- hosts: all
<%- if input('Data telemetry') != "yes" -%>
environment:
CONVERT2RHEL_DISABLE_TELEMETRY: 1
<%- end -%>
tasks:
- name: Install convert2rhel
ansible.builtin.package:
Expand All @@ -44,5 +63,6 @@ kind: job_template
reboot:
reboot_timeout: 1800
<%- end -%>
<%- # This will update system facts in Satellite and link the correct OS of the host %->
- name: Update system facts
command: subscription-manager facts --update

0 comments on commit add2f8c

Please sign in to comment.