Removing deprecated stuff

This commit is contained in:
Aleksandr Didenko
2016-06-16 12:19:27 +02:00
parent 43b2b5b464
commit 62e98bd4b0
4 changed files with 9 additions and 180 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
custom_opts='--ansible-opts="-e @kargo/custom.yaml"'
custom_opts='--ansible-opts=\"-e kargo/custom.yaml\"'
nodes=""
i=0
@@ -9,8 +9,14 @@ for nodeip in `cat /root/nodes` ; do
nodes+=" node${i}[ansible_ssh_host=${nodeip},ip=${nodeip}]"
done
kargo prepare -y --nodes $nodes
kargo deploy -y $custom_opts
if [ -f kargo/inventory/inventory.cfg ] ; then
echo "kargo/inventory/inventory.cfg already exists, if you want to recreate, pls remove it and re-run this script"
else
echo "Preparing inventory..."
kargo prepare -y --nodes $nodes
fi
echo "Running deployment..."
deploy_res=$?
if [ "$deploy_res" -eq "0" ]; then