Log In | Get Help   
Home My Page Projects Code Snippets Project Openings BonFIRE VCOC Demonstration Kit
Summary Activity SCM Files Wiki
[bonfiredemokit] Diff of /virt-cluster/create_vcoc.sh
[bonfiredemokit] / virt-cluster / create_vcoc.sh Repository:
ViewVC logotype

Diff of /virt-cluster/create_vcoc.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5, Wed Aug 29 08:38:28 2012 UTC revision 14, Mon Oct 8 09:46:28 2012 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    
3  #  #
4    # BonFIRE Virtual Clusters on Federated Clouds Demonstration Kit
5    #
6    # Copyright (c) Fundacion Centro Tecnologico de Supercomputacion de Galicia 2012
7    #
8    # License Apache Software
9    #
10    # The research leading to these results has received funding from
11    # the European Community's Seventh Framework Programme (FP7/2007-2013)
12    # under agreement number 257386
13    #
14    # This software is provided with ABSOLUTELY NO WARRANTY
15    #
16    #
17  # Before you use this script, you must configure restfully  # Before you use this script, you must configure restfully
18  #  #
19    
# Line 90  Line 103 
103      case "$optname" in      case "$optname" in
104        "o")        "o")
105          OVF=1          OVF=1
106            echo "Option not yet supported"
107            exit
108          ;;          ;;
109        "n")        "n")
110          N=${OPTARG}          N=${OPTARG}
# Line 206  Line 221 
221  echo "                          " } >> $FILE  echo "                          " } >> $FILE
222  echo "                         "] >> $FILE  echo "                         "] >> $FILE
223  echo "                " } >> $FILE  echo "                " } >> $FILE
 echo }, >> $FILE  
224    
225  #  #
226  # Now, the compute element is added  # Now, the compute element is added
227  #  #
228  # Previously, you must execute the build-client.rb script, so VM image is ready.  # Previously, you must execute the build-client.rb script, so VM image is ready.
229  #  #
230    i=0
231    while [ $i -lt $N ]
232    do
233            echo }, >> $FILE   # ENDS previous element
234  echo { >> $FILE  echo { >> $FILE
235  echo "   " \"compute\": { >> $FILE  echo "   " \"compute\": { >> $FILE
236  echo "          " \"name\": \"client\", >> $FILE          echo "          " \"name\": \"client-$i\", >> $FILE
237  echo "          " \"description\": \"Virtual Cluster Client\", >> $FILE  echo "          " \"description\": \"Virtual Cluster Client\", >> $FILE
238  echo "          " \"instanceType\": \"small\", >> $FILE  echo "          " \"instanceType\": \"small\", >> $FILE
239  echo "          " \"locations\": [\"fr-inria\"], >> $FILE  echo "          " \"locations\": [\"fr-inria\"], >> $FILE
# Line 228  Line 246 
246  echo "                        " } >> $FILE  echo "                        " } >> $FILE
247  echo "                        " ] >> $FILE  echo "                        " ] >> $FILE
248  echo "          " } >> $FILE  echo "          " } >> $FILE
249            i=`expr $i + 1`
250    done
251  echo } >> $FILE  echo } >> $FILE
252   echo ] >> $FILE   echo ] >> $FILE
253  echo } >> $FILE  echo } >> $FILE

Legend:
Removed from v.5  
changed lines
  Added in v.14

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge