AWS: Use auto-scaling group to run minions

This uses the dynamic CIDR work, and we set source-dest-check to false
when we configure the route (which kind-of makes sense)
This commit is contained in:
Justin Santa Barbara
2015-06-13 00:34:43 -04:00
parent d9dabd749c
commit 2a5ed2f086
7 changed files with 146 additions and 65 deletions

View File

@@ -25,7 +25,6 @@ function detect-minion-image() {
}
function generate-minion-user-data {
i=$1
# We pipe this to the ami as a startup script in the user-data field. Requires a compatible ami
echo "#! /bin/bash"
echo "SALT_MASTER='${MASTER_INTERNAL_IP}'"
@@ -37,8 +36,7 @@ function generate-minion-user-data {
}
function check-minion() {
local minion_name=$1
local minion_ip=$2
local minion_ip=$1
local output=$(ssh -oStrictHostKeyChecking=no -i "${AWS_SSH_KEY}" ${SSH_USER}@$minion_ip sudo docker ps -a 2>/dev/null)
if [[ -z "${output}" ]]; then