If not in dns add the host to the satellites /etc/hosts
Add a partition table
{ Hosts } -> Partition Tables [ New Partition Table ]
<%#
kind: ptable
name: my default
oses:
- RedHat 6
- RedHat 7
%>
zerombr
clearpart --all --initlabel
ignoredisk --only-use=sda
part /boot --size=1024
part pv.01 --size=1 --grow
volgroup rootvg pv.01
logvol swap --vgname=rootvg --size=4096 --name=swaplv
logvol / --vgname=rootvg --size=1024 --name=rootlv
logvol /home --vgname=rootvg --size=5120 --name=homelv
logvol /opt --vgname=rootvg --size=1024 --name=optlv
logvol /tmp --vgname=rootvg --size=2048 --name=tmplv
logvol /usr --vgname=rootvg --size=5120 --name=usrlv
logvol /var --vgname=rootvg --size=2048 --name=varlv
Associate operating systems to the partition table
* this can't be done in the GUI and if we don't do this we can't build new hosts with our custom partition tables.
hammer shell
hammer> partition-table list
hammer> partition-table add-operatingsystem --id 11 --operatingsystem "RedHat 6.8"
Operating system has been associated
hammer> partition-table add-operatingsystem --id 11 --operatingsystem "RedHat 7.2"
Define a subnet if it doesn't exist
{ Infrastructure } -> Subnet -> [ New Subnet ]
also verify its in the right domain, and that Locations and Organizations are assigned
Add a Host group
{ Configure } -> Host groups -> [ New Host Group ]
Prepare kickstart file
{ Hosts } -> Provisioning templates
find the line with Satellite Kickstart Default and click on [ clone ]
Name: Satellite Kickstart MyOrg
in the template editor modify the following to:
selinux --disabled
timezone --utc <%= @host.params['time-zone'] || 'America/Toronto' %>
remove dhclient from the package section
Set the operating system to use MyOrg kickstart file
{ Hosts } -> Operating systems
Click on RedHat 7.2
goto the Templates tab
change provision to Satellite Kickstart MyOrg
Add the host on the satellite
{ Hosts } -> All hosts -> [ New Host ]
make sure a subnet is defined or else the kickstart will not be created / found when installing even though we specify the subnet to the kernel at install boot.
Overwrite existing server build using its bootloader. ie: Install without DHCPD/PXE.
The following script grubInstall.sh downloads the kernel and initrd for a fresh install and modifies grub so that the machine is automatically re-installed on reboot.