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