Changes between Initial Version and Version 1 of flukes

Show
Ignore:
Timestamp:
10/24/11 16:07:01 (8 years ago)
Author:
pruth (IP: 152.54.9.28)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • flukes

    v1 v1  
     1= Using Flukes = 
     2 
     3== Overview == 
     4 
     5 
     6== Post Boot Scripts  ==  
     7 
     8Flukes allows a post boot script to be associated with each node or node group.   Post boot scripts are the preferred way to create customized instances from a shared image.   Specifically, a post boot script can contain an arbitrary script that is a executed immediately after the instance has booted.    
     9 
     10For added functionality, ORCA uses [http://velocity.apache.org/engine/releases/velocity-1.5/index.html velocity templates] to create the scripts ([http://velocity.apache.org/engine/releases/velocity-1.5/user-guide.html  velocity template manual]). 
     11 
     12 
     13 
     14 
     15=== Examples === 
     16 
     17{{{ 
     18  # Test script  
     19   echo "hello from neuca script" 
     20   mkdir -p /opt/pegasus       
     21   echo 'rnas.edc.renci.org:/euca/data/pruth /opt/pegasus nfs vers=3,proto=tcp,hard,intr,timeo=600,retrans=2,wsize=32768,rsize=32768 0 0' >> /etc/fstab 
     22   #echo 'condor-master:/var/nfs /opt/pegasus nfs vers=3,proto=tcp,hard,intr,timeo=600,retrans=2,wsize=32768,rsize=32768 0 0' >> /etc/fstab 
     23   echo $CondorWorkers.get(0) condor-master >> /etc/hosts 
     24   mount -a 
     25#set ( $size = $CondorWorkers.size() - 1 ) 
     26#foreach ( $i in [1..$size] ) 
     27   echo $CondorWorkers.get($i) condor-w$i >> /etc/hosts 
     28#end 
     29#if ( $MY_ADDR_INDEX == 0) 
     30   echo condor-master > /etc/hostname 
     31   cp /opt/pegasus/condor-configs/condor_config.master /etc/condor/condor_config 
     32#else 
     33   echo condor-w$MY_ADDR_INDEX > /etc/hostname 
     34   cp /opt/pegasus/condor-configs/condor_config.worker /etc/condor/condor_config 
     35#end 
     36   /bin/hostname -F /etc/hostname 
     37   echo export CONDOR_CONFIG="/opt/pegasus/condor-master/etc/condor_config"  >> /home/pruth/.bashrc 
     38   echo export  PATH="/opt/pegasus/pegasus-3.1.0/bin:/opt/pegasus/condor-master/bin:$PATH" >> /home/pruth/.bashrc 
     39   /etc/init.d/condor start 
     40   echo /opt/pegasus/apps/SC11-demo/libs/l_cprof_p-11.1.072/mkl/lib/em64t >> /etc/ld.so.conf 
     41   echo /opt/pegasus/apps/SC11-demo/libs/l_cprof_p-11.1.072/intel64 >> /etc/ld.so.conf 
     42   echo /opt/pegasus/apps/SC11-demo/libs/l_cproc_p-11.1.072/lib/intel64 >> /etc/ld.so.conf 
     43   /sbin/ldconfig  
     44}}} 
     45