## To get the boot strap working on a pre-installed server I added the below to the bootstrap file ##
For RHEL/CentOS7:
yum -y install http://10.226.2.78/pub/spacewalk-client-repo-2.2-1.el7.noarch.rpm
yum -y install http://fedora-epel.mirror.lstn.net/7/x86_64/e/epel-release-7-2.noarch.rpm
yum -y install rhn-setup rhn-client-tools
For RHEL/CentOS6:
yum -y install http://10.226.2.78/pub/spacewalk-client-repo-2.2-1.el6.noarch.rpm
yum -y install http://fedora-epel.mirror.lstn.net/6/x86_64/epel-release-6-8.noarch.rpm
yum -y install rhn-setup rhn-client-tools
Adding common channels the easy way:
spacewalk-common-channels -v -n -u satadmin -p password -a x86_64 'spacewalk*'
Get a list of common channels available:
spacewalk-common-channels -l
Creating a bootable ISO with Cobbler
##First List Cobbler Profiles##
sudo cobbler list profiles distros: External_-_CentOS_6_x86_64:1:SpacewalkDefaultOrganization External_-_CentOS_7_x86_64:1:SpacewalkDefaultOrganization profiles: Hohenfels_Basic_7:1:SpacewalkDefaultOrganization Hohenfels_Default_6:1:SpacewalkDefaultOrganization Hohenfels_Default_7:1:SpacewalkDefaultOrganization systems: repos: images:
##Then build the ISO##
sudo cobbler buildiso --profiles=Hohenfels_Basic_7:1:SpacewalkDefaultOrganization --iso=output_dir_here
##For Multiple Profiles##
sudo cobbler buildiso --profiles="Hohenfels_Basic_7:1:SpacewalkDefaultOrganization, Hohenfels_Default_7:1:SpacewalkDefaultOrganization"
#To Clean Up the DB
sudo spacewalk-data-fsck -r -v vacuumdb -aef (su - postgres)
##To delete a server from using Spacewalk
##Delete the server from the WebGUI
##On the Client:
sudo vi /etc/yum/pluginconf.d/rhnplugin.conf
##And change:
[main] enabled = 1
#to
[main] enabled = 0
##Then
sudo rm -rf /etc/sysconfig/rhn/systemid
##Remove the spacewalk repos if they are there:
sudo rm /etc/yum.repos.d/spacewalk-client*
# How to remove Channels from the Sat
/usr/bin/spacewalk-remove-channel -c channel_name
#
