diff options
author | Christian Pointner <equinox@spreadspace.org> | 2018-05-25 02:04:16 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2018-05-25 02:04:16 +0200 |
commit | 46787e1c9b9c574a13dae748d2f8ff89e7b55b8e (patch) | |
tree | 8a6c10959f53886565d873595d3c285fefbe9039 /vm-install.sh | |
parent | move kubernetes roles to subdir (diff) |
remerge vm roles from realraum noc repo
Diffstat (limited to 'vm-install.sh')
-rwxr-xr-x | vm-install.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/vm-install.sh b/vm-install.sh index 428fdb5f..0cc0be48 100755 --- a/vm-install.sh +++ b/vm-install.sh @@ -5,12 +5,19 @@ if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then exit 1 fi -echo "installing vm: $1 with $2/$3" +name=$1 +shift +distro=$1 +shift +codename=$1 +shift + +echo "installing vm: $name with $distro/$codename" echo "" echo "########## clearing old ssh host keys #########" -./remove-known-host.sh "$1" +./remove-known-host.sh "$name" echo "" echo "######## running the install playbook ########" -exec ansible-playbook -e "vmname=$1" -e "vmdistro=$2" -e "vmdistcodename=$3" vm-install.yml +exec ansible-playbook -e "vmname=$name" -e "vmdistro=$distro" -e "vmdistcodename=$codename" $@ vm-install.yml |