Sha256: 708178579e44ffa051cc55a0f7bbd08211975f9eca47dd40c7e4ff3d81175912

Contents?: true

Size: 739 Bytes

Versions: 4

Compression:

Stored size: 739 Bytes

Contents

<% if @host.params['kt_activation_keys'] %>
  # add subscription manager
 <% if @host.operatingsystem.name.match(/.*atomic.*/i) %>
  curl -s <%= subscription_manager_configuration_url(@host, false) %> | IS_ATOMIC=true bash
 <% else %>
  yum -t -y -e 0 install subscription-manager
  rpm -ivh <%= subscription_manager_configuration_url(@host) %>
 <% end %>

  echo "Registering the System"
  subscription-manager register --org="<%= @host.rhsm_organization_label %>" --name="<%= @host.name %>" --activationkey="<%= @host.params['kt_activation_keys'] %>"

  <% unless @host.operatingsystem.name.match(/.*atomic.*/i) %>
    echo "Installing Katello Agent"
    yum -t -y -e 0 install katello-agent
    chkconfig goferd on
  <% end %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
katello-3.0.0.rc5 app/views/foreman/unattended/snippets/_subscription_manager_registration.erb
katello-3.0.0.rc4 app/views/foreman/unattended/snippets/_subscription_manager_registration.erb
katello-3.0.0.rc3 app/views/foreman/unattended/snippets/_subscription_manager_registration.erb
katello-3.0.0.rc2 app/views/foreman/unattended/snippets/_subscription_manager_registration.erb