Relies on vftool.bash from https://github.com/cwolferh/vms-and-foreman
The more stable scripts are:
https://github.com/cwolferh/moar-cowbell-scripts/blob/master/foreman/install-foreman.bash (see comments at top of script)
and optionally subscribe them to your foreman node.
https://github.com/cwolferh/moar-cowbell-scripts/blob/master/ha-vms/setup-ha-vms.bash (see comments at top of script)
The point of this script is to re-test a foreman install and client registration without rebuilding VM's from scratch. $FOREMAN_SNAPNAME is a snap of the foreman server that has the relevant rpm's installed but has not yet had foreman_server.sh run on it. $SNAPNAME for the 3 clustered hosts likewise have not yet had foreman_client.sh run. And the nfs node at $SNAPNAME has a clean /mnt/mysql directory.
Most of the action takes place on the foreman node, where we optionally point to a different foreman installer source location (aka Astapor) and run foreman_server.sh.