From 471e77d02f2aad857800832989ac07127b9f004e Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 2 Jun 2018 18:20:02 +0300 Subject: Add: run-single.sh to install all of ick on one VM --- run-single.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 run-single.sh diff --git a/run-single.sh b/run-single.sh new file mode 100755 index 0000000..b36258d --- /dev/null +++ b/run-single.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +set -eu + + +hosts_in="$1" +shift 1 + + +getip() +{ + awk -v "name=$1" '$1 == name { print $2 }' "$hosts_in" +} + + +mkhosts() +{ + cat < hosts.tmp +ansible-playbook -i hosts.tmp ick2.yml \ + -e "qvisqve_domain=$(getip qvisqve)" \ + -e "controller_domain=$(getip ick2)" \ + -e "artifact_store_domain=$(getip ick2)" \ + -e "apt_domain=$(getip ick2)" \ + "$@" -- cgit v1.2.1