mirror of https://github.com/k3s-io/k3s
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
parent
124bece655
commit
72687184b9
|
@ -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
|
||||
|
|
|
@ -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 -%}
|
||||
|
|
|
@ -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' -%}
|
||||
|
|
Loading…
Reference in New Issue