Adding new builder to our koji

Create new AMI kojibuilder2 (ami-ad0de9c6) from kojibuilder2 snapshot.
It's running RHEL 6.2. Spawn new instance based off this AMI. Make
sure security groups are "default" and "koji". Make sure it has at least
one local storage and zone is us-east-1d (second can be swap). Note it takes some time for
the initial boot (snapshot was not clean, fsck). Had to set AKI to
aki-1eceaf77 but this should be optional I think.

Once the host is up, deploy our ssh public keys to root user.
Delete the RHUI stuff from /etc/yum.repos.d and
subscribe to updates via RHN CDN. Apply all security updates and reboot.
Take care - EPEL contains newer koji packages, DO NOT update koji from EPEL
(rather disable it).

Then stop kojid service, mkfs.ext4 on the local disk 1 and mount it:

/dev/xvdf1 on /mnt/tmp type ext4

Additionally enable swap on local disk 2 (preferred) and enable.

Create some directory structure on /mnt/tmp and symlinks

mkdir -p /mnt/tmp/var/{lib,tmp,cache}
mkdir -p /mnt/tmp/var/lib/mock
chmod g+ws /mnt/tmp/var/lib/mock
ln -s /mnt/tmp/var/tmp /var/tmp
ln -s /mnt/tmp/var/lib/mock /var/lib/mock
ln -s /mnt/tmp/var/cache/yum /var/cache/yum

Make sure it has correct permissions.

Add the new builder via koji-admin tool and set's the capacity (4.00 for
m1.large).

On the koji hub, add iptables rule for the particular IP address of the
new builder (allow all connections).

Now you should be ready to start kojid, before that make sure that NFS
volumes are all mounted up (you will need to create the mountpoints):

koji.katello.org:/koji on /mnt/koji type nfs
koji.katello.org:/exports/koji/packages on /mnt/koji/packages type nfs
koji.katello.org:/repos on /mnt/koji/repos type nfs
koji.katello.org:/external-repos on /mnt/tmp/external-repos type nfs

Start kojid and watch /var/log/kojid.log.

Beware, SELinux is enforcing so check for denials.