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

Version Path
foreman_remote_execution-14.1.3 app/views/templates/script/convert2rhel_analyze.erb
foreman_remote_execution-14.1.2 app/views/templates/script/convert2rhel_analyze.erb
foreman_remote_execution-14.1.1 app/views/templates/script/convert2rhel_analyze.erb
foreman_remote_execution-14.1.0 app/views/templates/script/convert2rhel_analyze.erb
foreman_remote_execution-14.0.2 app/views/templates/script/convert2rhel_analyze.erb
foreman_remote_execution-14.0.1 app/views/templates/script/convert2rhel_analyze.erb
foreman_remote_execution-13.2.6 app/views/templates/script/convert2rhel_analyze.erb
foreman_remote_execution-14.0.0 app/views/templates/script/convert2rhel_analyze.erb
foreman_remote_execution-13.2.5 app/views/templates/script/convert2rhel_analyze.erb
foreman_remote_execution-13.2.4 app/views/templates/script/convert2rhel_analyze.erb
foreman_remote_execution-13.2.3 app/views/templates/script/convert2rhel_analyze.erb
foreman_remote_execution-13.2.2 app/views/templates/script/convert2rhel_analyze.erb
foreman_remote_execution-12.0.7 app/views/templates/script/convert2rhel_analyze.erb
foreman_remote_execution-13.2.1 app/views/templates/script/convert2rhel_analyze.erb
foreman_remote_execution-13.2.0 app/views/templates/script/convert2rhel_analyze.erb