Don't always use aws.conf

We don't usually need it, and it makes it harder to put apiserver into a container.
pull/6/head
Justin Santa Barbara 2015-04-14 09:30:00 -07:00
parent 124bece655
commit 72687184b9
3 changed files with 6 additions and 7 deletions

View File

@ -38,11 +38,6 @@ if [[ -n "${DOCKER_ROOT}" ]]; then
EOF
fi
cat <<EOF > /etc/aws.conf
[Global]
Zone = ${ZONE}
EOF
# Auto accept all keys from minions that try to join
mkdir -p /etc/salt/master.d
cat <<EOF >/etc/salt/master.d/auto-accept.conf

View File

@ -15,7 +15,9 @@
{% endif -%}
{% elif grains.cloud == 'aws' -%}
{% set cloud_config = "--cloud_config=/etc/aws.conf" -%}
{% if grains.cloud_config is defined -%}
{% set cloud_config = "--cloud_config=" + grains.cloud_config -%}
{% endif -%}
{% endif -%}
{% endif -%}

View File

@ -25,7 +25,9 @@
{% endif -%}
{% elif grains.cloud == 'aws' -%}
{% set cloud_config = "--cloud_config=/etc/aws.conf" -%}
{% if grains.cloud_config is defined -%}
{% set cloud_config = "--cloud_config=" + grains.cloud_config -%}
{% endif -%}
{% set machines = "--machines=" + ','.join(salt['mine.get']('roles:kubernetes-pool', 'network.ip_addrs', expr_form='grain').keys()) -%}
{% elif grains.cloud == 'azure' -%}