Cobbler and the HP SmartStart Scripting Toolkit #2

Cobbler and the HP SmartStart Scripting Toolkit was a quick example of getting the SSSTK set up to boot via Cobbler. This post will add the ability to automatically register the system with cobbler and assign it to a hardware-specific profile. When you have a bunch of systems automatically added to Cobbler, you will just have to apply those configurations that make each host unique (like hostname and IP address).

Once this step is mastered, we can go a bit further in the next post and add customization of the BIOS, BMC, and RAID configurations.

The methods being used here, with separate directories for each tool, allow for, well… separation. You could make one directory, download all the RPMs, extract them, and create one big script to copy them to the booted SSSTK environment. The below method better allows for upgradability, separates out dependencies, and is self-documenting.

Assumptions:

  • Instructions in the first post were followed.
  • Tools like wget and rpm2cpio are installed.
  • Your workflow for kickstarting systems is a little more complex than: netboot the new server, pick a Cobbler menu item, enjoy your new system. *

Read more of this post

Cobbler and the Dell OpenManage Deployment Toolkit #2

Cobbler and the Dell OpenManage Deployment Toolkit was a quick example of getting the DTK set up to boot via Cobbler. This post will add the ability to automatically register the system with cobbler and assign it to a hardware-specific profile. When you have a bunch of systems automatically added to Cobbler, you will just have to apply those configurations that make each host unique (like hostname and IP address).

Once this step is mastered, we can go a bit further in the next post and add customization of the BIOS, BMC, and RAID configurations.

The methods being used here, with separate directories for each tool, allow for, well… separation. You could make one directory, download all the RPMs, extract them, and create one big script to copy them to the booted DTK environment. The below method better allows for upgradability, separates out dependencies, and is self-documenting.

Assumptions:

  • Instructions in the first post were followed.
  • Tools like wget and rpm2cpio are installed.
  • Your workflow for kickstarting systems is a little more complex than: netboot the new server, pick a Cobbler menu item, enjoy your new system. *

* My $EMPLOYER uses multiple hardware models and configurations for a single application. We roll an entire cabinet of new hardware into our datacenter and then power it all up. Our workflow allows for discovery and classification of the hardware models and looks like: netboot the new server (preferably this is the default on new hardware); automatically boot to a default discovery + configuration + regisitration profile; once they appear in Cobbler, manually assign Hostname/IP Address/Kickstart Metadata to each system; wait for each system to reboot and load OS; puppet picks up OS configuration and application installation; enjoy our new systems.
Read more of this post

Cobbler and the Dell OpenManage Deployment Toolkit

This is an example of how to get Dell’s Deployment Toolkit to work with Cobbler. This will allow you to configure the BIOS, BMC, and RAID via commandline tools.

Assumptions:

  • Cobbler is already set up.
  • NFS exports are already configured. This example assumes that the Cobbler server is also the NFS server, but they can be different with a little work on your part. There are two exports: Read-Only (/srv/nfs/ro) and Read-Write (/srv/nfs/rw).

Instructions:
Download the toolkit: dtk_3.5.1_27_Linux.iso

Extract the DTK ISO to the local filesystem:

cd /srv/nfs/ro
mount -o ro,loop dtk_3.5.1_27_Linux.iso /mnt
mkdir -p /srv/nfs/ro/dtk-3.5.1/
rsync -av /mnt/ /srv/nfs/ro/dtk-3.5.1/
umount /mnt
chmod -R u+w /srv/nfs/ro/dtk-3.5.1/

Create the script that the DTK will run:

cat <<EOF >/srv/nfs/ro/dtk-3.5.1/shell.sh
#!/bin/bash

exec /bin/bash
EOF
chmod 0755 /srv/nfs/ro/dtk-3.5.1/shell.sh

Add the DTK as a distro in Cobbler (substitute the IP of your NFS server):

NFSIP=127.0.0.1
cobbler distro add --name=dtk-3.5.1 \
--arch=i386 --breed=debian \
--kernel=/srv/nfs/ro/dtk-3.5.1/isolinux/SA.1 \
--initrd=/srv/nfs/ro/dtk-3.5.1/isolinux/SA.2 \
--kopts "ramdisk_size=156482 Stage3_type=cdrom DEBUG=0 quiet share_type=nfs share_location=${NFSIP}:/srv/nfs/ro/dtk-3.5.1/ share_script=shell.sh share_opts=ro,nolock selinux=0"

Create a Cobbler profile:

cobbler profile add --name=dtk-3.5.1-shell --distro=dtk-3.5.1

You should now be able to boot your Dell server via the network to the Cobbler menu and choose “dtk-3.5.1-shell”. You should end up with a shell with the DTK environment on the server’s console.

Cobbler and the HP SmartStart Scripting Toolkit

This is an example of how to get HP’s SmartStart Scripting Toolkit to work with Cobbler. This will allow you to configure the BIOS, BMC, and RAID via commandline tools.

Assumptions:

  • Cobbler is already set up.
  • NFS exports are already configured. This example assumes that the Cobbler server is also the NFS server, but they can be different with a little work on your part. There are two exports: Read-Only (/srv/nfs/ro) and Read-Write (/srv/nfs/rw).

Instructions:
Download the toolkit: ss-scripting-toolkit-linux-8.50.tar.gz

Untar the SSSTK archive and rename the directory to a shorter version:

cd /srv/nfs/ro
tar zxvf ss-scripting-toolkit-linux-8.50.tar.gz
mv ss-scripting-toolkit-linux-8.50 sstk-8.50

Add the SSSTK as a distro in Cobbler (substitute the IP of your NFS server):

NFSIP=127.0.0.1
cobbler distro add --name=sstk-8.50 \
--arch=i386 --breed=debian \
--kernel=/srv/nfs/ro/sstk-8.50/boot_files/vmlinuz \
--initrd=/srv/nfs/ro/sstk-8.50/boot_files/initrd.img \
--kopts "root=/dev/ram0 rw ramdisk_size=184248 ide=nodma ide=noraid pnpbios=off network=1 sstk_mount=${NFSIP}:/srv/nfs/ro/sstk-8.50 sstk_mount_type=nfs sstk_mount_options=ro,nolock sstk_script=shell.sh"

Create a Cobbler profile:

cobbler profile add --name=sstk-8.50-shell --distro=sstk-8.50

You should now be able to boot your HP server via the network to the Cobbler menu and choose “sstk-8.50-shell”. You should end up with a shell with the SSSTK environment on the server’s console.