#!/bin/bash # you might need to remove partitions with this: # rocks remove host partition {host} rocks set host boot $1 action=install # this statement is slow. # only needed if runaction changed --- should check if needed... #rocks set host runaction $1 action=os # this might also be needed if it has been goofed up #rocks set host installaction cc-106-1 action=install # update cfengine #HOSTIP=`host $1 | awk '{print $4}'` #sh /var/cfengine/gen-rocks-attr.sh $HOSTIP export SSH_NO_PASSWD=1 /opt/rocks/sbin/shoot-node $1 > /dev/null 2>&1 &