diff options
Diffstat (limited to 'env/setup.sh')
-rwxr-xr-x | env/setup.sh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/env/setup.sh b/env/setup.sh index cf8e704..6ac8197 100755 --- a/env/setup.sh +++ b/env/setup.sh @@ -7,10 +7,9 @@ set -eu -o pipefail url="https://cloud.debian.org/images/cloud/OpenStack/current-10/debian-10-openstack-amd64.qcow2" image=debian-10-openstack-amd64.qcow2 -if [ ! -e "files/$image" ] -then - echo "Download Debian cloud image (only happens on first run)" - wget -q -c -O "files/$image" "$url" +if [ ! -e "files/$image" ]; then + echo "Download Debian cloud image (only happens on first run)" + wget -q -c -O "files/$image" "$url" fi # git does not preserve file modes properly, so set the permissions of @@ -21,11 +20,11 @@ echo "Provision outer VM" chronic ansible-playbook -i hosts playbook.yml echo "Create and provision the inner VMs" -ssh -F ssh/config puomi@puomienv ./setup-inner.sh +ssh -F ssh/config puomi@puomi-dev ./setup-inner.sh # Disable network forwarding in outer VM. This can't be done until the # inner VMs are provisioned, or they can't install anything. Hide the # standard output, as it's useless. -ssh debian@puomienv sudo sysctl -w net.ipv4.ip_forward=0 > /dev/null +ssh debian@puomi-dev sudo sysctl -w net.ipv4.ip_forward=0 >/dev/null echo "Finished; the router test environment is ready for use" |