Sha256: c993fb5d717c7fecd9e7c84d21b9b1e387f4e9e0f42ecf91034d71a128c55570
Contents?: true
Size: 785 Bytes
Versions: 15
Compression:
Stored size: 785 Bytes
Contents
<%# name: Convert2RHEL analyze snippet: 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 export CONVERT2RHEL_THROUGH_FOREMAN=1 /usr/bin/convert2rhel analyze -y # Workaround for https://issues.redhat.com/browse/RHELC-1280 subscription-manager facts --update 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
15 entries across 15 versions & 1 rubygems