AWS: Configure SSL certificate alternate-names

GCE does this in its per-provider scripts; this does the same for AWS and lets
other providers do the same; I believe kube2sky requires 10.0.0.1 as a SAN.
This commit is contained in:
Justin Santa Barbara
2015-07-03 00:30:04 -04:00
parent 974377b306
commit c676c11189
4 changed files with 23 additions and 2 deletions

View File

@@ -44,6 +44,12 @@ if [[ -n "${KUBELET_ROOT}" ]]; then
EOF
fi
if [[ -n "${MASTER_EXTRA_SANS}" ]]; then
cat <<EOF >>/etc/salt/minion.d/grains.conf
master_extra_sans: '$(echo "$MASTER_EXTRA_SANS" | sed -e "s/'/''/g")'
EOF
fi
# 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