|
From: Matt <mat...@us...> - 2007-06-27 15:53:49
|
Update of /cvsroot/openqrm/plugins/linuxcoe/etc In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv22035/plugins/linuxcoe/etc Added Files: post-install-openqrm.autoyast post-install-openqrm.kickstart post-install-openqrm.preseed Log Message: added post section to automatically install the openQRM agents and integrate the local booted system into openQRM --- NEW FILE: post-install-openqrm.autoyast --- #!/bin/bash # TODO OPENQRM_CLIENT_INTERFACE=`` # check which rpm will fit best OPENQRM_RESOURCE_RPM="" echo "using $OPENQRM_CLIENT_INTERFACE for $LOCAL_VE_NAME" echo "installing $OPENQRM_RESOURCE_RPM" while ! wget http://downloads.sourceforge.net/openqrm/$OPENQRM_RESOURCE_RPM?; do echo "retrying ..." sleep 2 if wget http://downloads.sourceforge.net/openqrm/$OPENQRM_RESOURCE_RPM?; then echo "success ..." break fi done rpm -ihv $OPENQRM_RESOURCE_RPM echo "y" | /opt/qrm/resource/sbin/qrm-bootstrap integrate -q ${QRM_SERVER_IP_ADDRESS} -v ${LOCAL_VE_NAME} -i $OPENQRM_CLIENT_INTERFACE -t "" --- NEW FILE: post-install-openqrm.preseed --- #!/bin/bash # TODO OPENQRM_CLIENT_INTERFACE=`` # check which rpm will fit best OPENQRM_RESOURCE_RPM="" echo "using $OPENQRM_CLIENT_INTERFACE for $LOCAL_VE_NAME" echo "installing $OPENQRM_RESOURCE_RPM" while ! wget http://downloads.sourceforge.net/openqrm/$OPENQRM_RESOURCE_RPM?; do echo "retrying ..." sleep 2 if wget http://downloads.sourceforge.net/openqrm/$OPENQRM_RESOURCE_RPM?; then echo "success ..." break fi done rpm -ihv $OPENQRM_RESOURCE_RPM echo "y" | /opt/qrm/resource/sbin/qrm-bootstrap integrate -q ${QRM_SERVER_IP_ADDRESS} -v ${LOCAL_VE_NAME} -i $OPENQRM_CLIENT_INTERFACE -t "" --- NEW FILE: post-install-openqrm.kickstart --- #!/bin/bash INSTALL_TIME=`date +%D-%T | sed -e "s#/#.#g" | sed -e "s#:#.#g"` LOCAL_VE_NAME="linuxcoeZZZ_LINUXCOE_PROFILE_ZZZ-$INSTALL_TIME" if [ ! -f /root/anaconda-ks.cfg ]; then echo "ERROR: Could not find installation config file /root/anaconda-ks.cfg" exit 1 fi if [ ! -f /etc/redhat-release ]; then echo "ERROR: Could not find /etc/redhat-release" exit 1 fi OPENQRM_CLIENT_INTERFACE=`cat /root/anaconda-ks.cfg | grep network | sed -e "s/.*--device //g" | awk {' print $1 '}` # check which rpm will fit best if cat /etc/redhat-release | grep CentOS | grep 5 1>/dev/null; then # for CentOS 5 take the FC5 one OPENQRM_RESOURCE_RPM="openqrm-core-resource-3.1.4-2.FC5.i386.rpm" elif cat /etc/redhat-release | grep CentOS | grep 4 1>/dev/null; then # for CentOS 4 take the rhel4 one OPENQRM_RESOURCE_RPM="openqrm-core-resource-3.1.4-2.EL4.i386.rpm" else # take the fc5 as default OPENQRM_RESOURCE_RPM="openqrm-core-resource-3.1.4-2.FC5.i386.rpm" fi echo "using $OPENQRM_CLIENT_INTERFACE for $LOCAL_VE_NAME" echo "installing $OPENQRM_RESOURCE_RPM" while ! wget http://downloads.sourceforge.net/openqrm/$OPENQRM_RESOURCE_RPM?; do echo "retrying ..." sleep 2 if wget http://downloads.sourceforge.net/openqrm/$OPENQRM_RESOURCE_RPM?; then echo "success ..." break fi done rpm -ihv $OPENQRM_RESOURCE_RPM echo "y" | /opt/qrm/resource/sbin/qrm-bootstrap integrate -q ZZZ_QRM_SERVER_IP_ADDRESS_ZZZ -v $LOCAL_VE_NAME -i $OPENQRM_CLIENT_INTERFACE -t "" |