diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-03-16 14:26:02 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-03-16 14:26:02 +0200 |
commit | bd369ec68d84522172dbfa2691b5d0f8d933c99a (patch) | |
tree | 116f8fa063292c3a8b49772a7ec7d29519ae39de | |
parent | 95edefdb97c63e5e6bb48567775a4dc0eb2c685b (diff) | |
download | ick2-ansible-bd369ec68d84522172dbfa2691b5d0f8d933c99a.tar.gz |
Drop: run-* scripts in favour of run-ansible
-rwxr-xr-x | run-cluster.sh | 52 | ||||
-rwxr-xr-x | run-ickui.sh | 27 | ||||
-rwxr-xr-x | run-ickweb.yml | 31 | ||||
-rwxr-xr-x | run-muck.sh | 25 | ||||
-rwxr-xr-x | run-single.sh | 50 | ||||
-rwxr-xr-x | run-workers.sh | 52 |
6 files changed, 0 insertions, 237 deletions
diff --git a/run-cluster.sh b/run-cluster.sh deleted file mode 100755 index 4c987ab..0000000 --- a/run-cluster.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash - -set -eu - - -getaddr() -{ - awk -v "name=$1" '$1 == name { print $2 }' "$hosts_in" | - sed 's/ansible_ssh_host=//' -} - - -mkhosts() -{ - cat <<EOF -ick ansible_ssh_host=$(getaddr controller) -worker1 hostname=worker1 ansible_ssh_host=$(getaddr worker1) -worker2 hostname=worker2 ansible_ssh_host=$(getaddr worker2) - -[ickhost] -ick -worker1 -worker2 - -[controller] -ick - -[qvisqve] -ick - -[apt] -ick - -[notify] -ick - -[workers] -worker1 -worker2 -EOF -} - -hosts_in="$1" -shift 1 -mkhosts > hosts.tmp -ansible-playbook -i hosts.tmp ick-cluster.yml \ - -e "qvisqve_domain=$(getaddr controller)" \ - -e "controller_domain=$(getaddr controller)" \ - -e "artifact_store_domain=$(getaddr controller)" \ - -e "apt_domain=$(getaddr controller)" \ - -e "notify_domain=$(getaddr controller)" \ - "$@" diff --git a/run-ickui.sh b/run-ickui.sh deleted file mode 100755 index 8c5a80e..0000000 --- a/run-ickui.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -set -eu - - -getaddr() -{ - awk -v "name=$1" '$1 == name { print $2 }' "$hosts_in" | - sed 's/ansible_ssh_host=//' -} - - -mkhosts() -{ - cat <<EOF -ui ansible_ssh_host=$(getaddr ui) - -[ickhost] -ui -EOF -} - -hosts_in="$1" -shift 1 -mkhosts > hosts.tmp -ansible-playbook -i hosts.tmp ick-ui.yml \ - "$@" diff --git a/run-ickweb.yml b/run-ickweb.yml deleted file mode 100755 index 82fdace..0000000 --- a/run-ickweb.yml +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - -set -eu - - -getaddr() -{ - awk -v "name=$1" '$1 == name { print $2 }' "$hosts_in" | - sed 's/ansible_ssh_host=//' -} - - -mkhosts() -{ - cat <<EOF -demo ansible_ssh_host=$(getaddr demo) - -[ickwebhost] -demo -EOF -} - - -hosts_in="$1" -shift 1 -mkhosts > hosts.tmp -ansible-playbook \ - ickweb.yml \ - -i hosts.tmp \ - -e ickweb_domain_name="$(getaddr demo)" \ - "$@" diff --git a/run-muck.sh b/run-muck.sh deleted file mode 100755 index f8ded27..0000000 --- a/run-muck.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -set -eu - - -getaddr() -{ - awk -v "name=$1" '$1 == name { print $2 }' "$hosts_in" | - sed 's/ansible_ssh_host=//' -} - - -mkhosts() -{ - cat <<EOF -muck ansible_ssh_host=$(getaddr muck) -EOF -} - -hosts_in="$1" -shift 1 -mkhosts > hosts.tmp -ansible-playbook -i hosts.tmp muck.yml \ - -e "muck_domain=$(getaddr muck)" \ - "$@" diff --git a/run-single.sh b/run-single.sh deleted file mode 100755 index 4b9ad06..0000000 --- a/run-single.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash - -set -eu - - -getaddr() -{ - awk -v "name=$1" '$1 == name { print $2 }' "$hosts_in" | - sed 's/ansible_ssh_host=//' -} - - -mkhosts() -{ - cat <<EOF -ick ansible_ssh_host=$(getaddr ick) - -[ickhost] -ick - -[controller] -ick - -[qvisqve] -ick - -[apt] -ick - -[notify] -ick - -[workers] -ick -EOF -} - - -hosts_in="$1" -shift 1 -mkhosts > hosts.tmp -ansible-playbook \ - -i hosts.tmp \ - ick2.yml \ - -e qvisqve_domain="$(getaddr ick)" \ - -e controller_domain="$(getaddr ick)" \ - -e artifact_store_domain="$(getaddr ick)" \ - -e apt_domain="$(getaddr ick)" \ - -e notify_domain="$(getaddr ick)" \ - "$@" diff --git a/run-workers.sh b/run-workers.sh deleted file mode 100755 index 0332027..0000000 --- a/run-workers.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash - -set -eu - - -getaddr() -{ - awk -v "name=$1" '$1 == name { print $2 }' "$hosts_in" | - sed 's/ansible_ssh_host=//' -} - - -count_workers() -{ - grep -Ec '^worker[[:digit:]]+' "$1" -} - - -mkhosts() -{ - local n="$1" - for i in $(seq "$n") - do - echo "worker$i hostname=worker$i ansible_ssh_host=$(getaddr worker$i)" - done - echo - - echo "[ickhost]" - for i in $(seq "$n") - do - echo "worker$i" - done - echo - - echo "[workers]" - for i in $(seq "$n") - do - echo "worker$i" - done -} - -hosts_in="$1" -controller_domain="$2" -apt_domain="$controller_domain" -shift 2 - -nw="$(count_workers "$hosts_in")" -mkhosts "$nw" > hosts.tmp -ansible-playbook -i hosts.tmp ick-workers.yml \ - -e "controller_domain=$controller_domain" \ - -e "apt_domain=$apt_domain)" \ - "$@" |