Sha256: 1da5c7f1f95e456df18d4b6a41fec602a9cfc2b86eaacc40bd30542462ec66f6
Contents?: true
Size: 936 Bytes
Versions: 3
Compression:
Stored size: 936 Bytes
Contents
<%# name: Convert2RHEL analyze snippet: false template_inputs: - name: Data telemetry required: false input_type: user options: "yes\r\nno" advanced: false value_type: plain default: 'yes' hidden_value: false model: JobTemplate job_category: Convert 2 RHEL provider_type: script kind: job_template %> <% if @host.operatingsystem.family == 'Redhat' -%> if ! [ $(id -u) -eq 0 ]; then echo "You must run convert2rhel as a root user." exit 1 fi if ! rpm -q convert2rhel &> /dev/null; then yum install -y convert2rhel fi <% if input('Data telemetry') != "yes" -%> export CONVERT2RHEL_DISABLE_TELEMETRY=1 <% end -%> /usr/bin/convert2rhel analyze -y if grep -q ERROR /var/log/convert2rhel/convert2rhel-pre-conversion.json; then echo "Error: Some error(s) have been found." echo "Exiting ..." exit 1 fi <% else %> echo 'Unsupported OS, it must be from the Red Hat family.' exit 1 <% end -%>
Version data entries
3 entries across 3 versions & 1 rubygems