Commit cbe28f15 authored by Dawn Chen's avatar Dawn Chen

Merge pull request #6821 from justinsb/aws_dont_use_aws_conf

Don't always use aws.conf
parents b59266ad 72687184
...@@ -38,11 +38,6 @@ if [[ -n "${DOCKER_ROOT}" ]]; then ...@@ -38,11 +38,6 @@ if [[ -n "${DOCKER_ROOT}" ]]; then
EOF EOF
fi fi
cat <<EOF > /etc/aws.conf
[Global]
Zone = ${ZONE}
EOF
# Auto accept all keys from minions that try to join # Auto accept all keys from minions that try to join
mkdir -p /etc/salt/master.d mkdir -p /etc/salt/master.d
cat <<EOF >/etc/salt/master.d/auto-accept.conf cat <<EOF >/etc/salt/master.d/auto-accept.conf
......
...@@ -15,7 +15,9 @@ ...@@ -15,7 +15,9 @@
{% endif -%} {% endif -%}
{% elif grains.cloud == 'aws' -%} {% 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 -%}
{% endif -%} {% endif -%}
......
...@@ -25,7 +25,9 @@ ...@@ -25,7 +25,9 @@
{% endif -%} {% endif -%}
{% elif grains.cloud == 'aws' -%} {% 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()) -%} {% set machines = "--machines=" + ','.join(salt['mine.get']('roles:kubernetes-pool', 'network.ip_addrs', expr_form='grain').keys()) -%}
{% elif grains.cloud == 'azure' -%} {% elif grains.cloud == 'azure' -%}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment