[GLOBAL] Organized scripts
This commit is contained in:
parent
cbf6d4141e
commit
a3d0fa4080
@ -1,7 +1,14 @@
|
||||
#!/bin/csh -f
|
||||
# set arguments
|
||||
set HOSTNAME=$1
|
||||
set IP=$2
|
||||
|
||||
if ( $3 == "" ) then
|
||||
set SIZE=20G
|
||||
else
|
||||
set SIZE=$3
|
||||
endif
|
||||
|
||||
# set static variables
|
||||
set VM=/usr/local/sbin/vm
|
||||
set TEMPLATE=ubuntu-small
|
||||
@ -10,12 +17,7 @@ set PUBKEY=/home/simon/.ssh/id_ed25519.pub
|
||||
set NAMESERVER=192.168.10.254
|
||||
set GATEWAY=192.168.10.254
|
||||
|
||||
if ( $3 == "" ) then
|
||||
set SIZE=20G
|
||||
else
|
||||
set SIZE=$3
|
||||
endif
|
||||
|
||||
# create vm
|
||||
$VM create \
|
||||
-t $TEMPLATE \
|
||||
-s $SIZE \
|
Loading…
Reference in New Issue
Block a user