anchor.diff:  subscription-manager unregister
   rm -rf /etc/yum.repos.d/redhat.repo
   
  +#Disable subscription-manager plugins
  +for plugin in $rhsm_plugins; do
  +  sed -i 's/^enabled.*/enabled=1/' "/etc/yum/pluginconf.d/${plugin}.conf" 2>/dev/null || :
  +done
  +
   #Run registration
   
   rhnreg_ks "--serverUrl=http://<%= sat_hostname %>/XMLRPC" --profilename=fuelweb "--activationkey=<%= activation_key %>" --sslCACert=/etc/sysconfig/rhn/RHNS-CA-CERT --nopackages --nohardware --novirtinfo --norhnsd --force
   
   if [ $? -ne 0 ]; then
     echo "Registration failed. Aborting."
  +  revert_back_to_centos
     exit 1
   fi
   #Ensure channels are enabled:
  
positive.code: cp -R /mnt/rhel_iso/. <%= pkgdir %>
  umount /mnt/rhel_iso
  rpm -e rhel-boot-image-6.4-20130130.0.el6ost.noarch
  
negative.code: 
  if [ $status -ne 0 ]; then
    echo "ERROR: Repotrack did not exit cleanly after <%= numtries %> tries." 1>&2
    revert_back_to_centos
    exit 1
  fi
  if [ $before -ne $after ]; then
    echo "ERROR: There are still some packages with broken md5 sum after last (<%= numtries %>) retry to download them." 1>&2
    revert_back_to_centos
    exit 1
  fi
  
  
  rm -f /etc/yum/vars/releasever
  yum-config-manager --enable 'nailgun' &> /dev/null
  
  #Disable all RHEL repos so you don't accidentally update and break master node
  yum-config-manager --disable '*rhel*' &> /dev/null
  