
rm -rf /var/lib/pgsql/data
su - postgres -c "initdb -D /var/lib/pgsql/data"
# update software
yum -y update
#prepare actions to be performed on next boot
wget http://10.16.136.1/pub/resources/mrggrid.rc.local.add -O /etc/rc.d/mrggrid.rc.local.add
/bin/cp /etc/rc.d/rc.local /etc/rc.d/rc.local.shipped
cat /etc/rc.d/mrggrid.rc.local.add >> /etc/rc.d/rc.local
) >> /root/ks-post.log 2>&1
mrggrid.rc.local.add – This script performs the actions to be performed upon the next boot
of the MRG VM include downloading configuration files and scripts for MRG Manager,
initializing the database, creating the admin user, and restarting the cumin service.
(
echo "--- Setting up render job ---"
#populate rendering data
wget -nv http://irish.lab.bos.redhat.com/pub/projects/cloud/resources/render.tgz -O /tmp/render.tgz
tar -xpzf /tmp/render.tgz -C /home/admin
/bin/rm /tmp/render.tgz
# make blender available
wget -nv http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/blender-2.48a-linux-glibc236-py24-
x86_64-static.tar.bz2 -O /tmp/blender-2.48a-linux-glibc236-py24-x86_64-static.tar.bz2
su - admin -c "bzcat /tmp/blender-2.48a-linux-glibc236-py24-x86_64-static.tar.bz2 | tar xf -"
echo "--- Setting up perfect number search job ---"
# Get configuration and script files used by MRG Grid Manager
echo "--- Retrieving files ---"
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/cumin.conf -O /etc/cumin/cumin.conf
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/pg_hba.conf -O
/var/lib/pgsql/data/pg_hba.conf
chown postgres.postgres /var/lib/pgsql/data/pg_hba.conf
chmod 600 /var/lib/pgsql/data/pg_hba.conf
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/condor_config.local.mgr -O
/var/lib/condor/condor_config.local
restorecon -R -v /var/lib
#Initialize the database
echo "--- initialize cumin ---"
cumin-database-init
#Add the admin user
echo "--- Add cumin user ---"
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/add_cumin_user.py -O
/tmp/add_cumin_user.py
www.redhat.com 104
Komentáře k této Příručce