Changes between Version 26 and Version 27 of velocity-templates

Show
Ignore:
Timestamp:
06/13/13 10:08:30 (6 years ago)
Author:
ibaldin (IP: 152.54.9.21)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • velocity-templates

    v26 v27  
    6161}}} 
    6262 
     63After Velocity processing, the script for the first member of the node group looks like this (note that the script will look different depending on which node you are on): 
     64 
     65{{{ 
     66#!/bin/bash 
     67echo 172.16.100.1 master >> /etc/hosts 
     68 
     69echo 172.16.100.1  `echo NodeGroup0/0 |  sed 's/\//-/g'` >> /etc/hosts 
     70echo 172.16.100.2  `echo NodeGroup0/1 |  sed 's/\//-/g'` >> /etc/hosts 
     71echo 172.16.100.3  `echo NodeGroup0/2 |  sed 's/\//-/g'` >> /etc/hosts 
     72echo 172.16.100.4  `echo NodeGroup0/3 |  sed 's/\//-/g'` >> /etc/hosts 
     73 
     74name=NodeGroup0/0 
     75if [ "$name" = "NodeGroup0/0" ]; 
     76then 
     77   echo master > /etc/hostname 
     78else 
     79   echo NodeGroup0/0 |  sed 's/\//-/g' > /etc/hostname 
     80fi 
     81/bin/hostname -F /etc/hostname 
     82}}} 
     83 
    6384== Getting public IP of the node == 
    6485