Skip to content

Misc Tips for Fred ubuntu

jvmirdel edited this page Sep 26, 2012 · 2 revisions

Intervention Points

Sometimes you need a local customization to take place during the build process for a node - ie: before the final guest OS is up and running. We use this to setup special hardware and to install or customize the installation

The crowbar head node

The file ubuntu-common/common_install.sh is run at the end of the installation of the crowbar head node. We have used this file to create a few extra commands in /opt/dell/bin

Any regular node

The file produced by expanding barclamps/provisioner/chef/cookbooks/provisioner/templates/default/net-post-install.sh.erb is run as the last step in the installation preparation. The soon to be node root file system is mounted on /target and this script is run in a chroot on /target.

We have used this to fix /etc/udef/rules.d/ to order network interfaces forcibly..

Extra files

Anything you place in extras will be copied into the ISO and available on the nodes via wget as ubuntu_dvd/extras/PATH

provisioner/chef/cookbooks/provisioner/recipes/setup_base_images.rb will let you run on the crowbar node during the install crowbar process.

We need kernel modules to be available for wget by the nodes during the install process, and use this file to copy them into place.

SSH Key

If you modify ubuntu-common/isolinux/pxelinux.cfg/default and add a crowbar.authkey=SSH_PUBLIC_KEY, this key will be installed in root for all of the hosts. any white space in the SSH_PUBLIC_KEY needs to be replaced with \x20. quotes are not handled and will cause errors.

Thanks & Attribution

Thanks to Andi Abes, Victor Lowthor, Greg Althaus and the Mirantis team for endless friendly help.

Clone this wiki locally