[GLOBAL] Organized scripts

This commit is contained in:
Simon Cornet 2020-06-02 15:09:46 +02:00
parent cbf6d4141e
commit a3d0fa4080
8 changed files with 8 additions and 6 deletions

View File

@ -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 \