Skip to content

Instantly share code, notes, and snippets.

@cwolferh
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save cwolferh/8905594 to your computer and use it in GitHub Desktop.

Select an option

Save cwolferh/8905594 to your computer and use it in GitHub Desktop.
# Make sure REG_SCRIPT and INITIMAGE make sense! (and the other vars, while you are at it)
export FOREMAN_NODE=fore1a
VMSET_CHUNK=sw1a
NUM_CLIS=3
REG_SCRIPT=<your yum or rhn setup script>
export PATH=$PATH:/mnt/vm-share/vftool
cd /mnt/vm-share/vftool
# install the foreman client vm's
INITIMAGE=rhel65 \
FOREMAN_NODE=$FOREMAN_NODE \
UNATTENDED=true \
REG_SCRIPT=$REG_SCRIPT \
FOREMAN_CLIENT_SCRIPT=/mnt/vm-share/${FOREMAN_NODE}_client.sh \
SKIPSNAP=true \
VMSET_CHUNK=$VMSET_CHUNK \
bash -x /mnt/vm-share/mcs/client-vms/new-foreman-clients.bash $NUM_CLIS
vftool.bash configure_nic ${VMSET_CHUNK}1 static eth5 192.168.203.2 255.255.255.0
vftool.bash configure_nic ${VMSET_CHUNK}2 static eth5 192.168.203.3 255.255.255.0
vftool.bash configure_nic ${VMSET_CHUNK}3 static eth5 192.168.203.4 255.255.255.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment