Merge "Use right no proxy settings for swarm master and agent"

This commit is contained in:
Jenkins 2017-02-07 01:21:42 +00:00 committed by Gerrit Code Review
commit dc7f5aba3f
2 changed files with 8 additions and 0 deletions

View File

@ -16,6 +16,10 @@ if [ $TLS_DISABLED = 'True' ]; then
ETCDCTL_OPTIONS=""
fi
if [ -z "$NO_PROXY" ]; then
NO_PROXY=$SWARM_API_IP,$ETCD_SERVER_IP,$SWARM_NODE_IP
fi
cat > $CONF_FILE << EOF
[Unit]
Description=Swarm Agent

View File

@ -2,6 +2,10 @@
CERT_DIR=/etc/docker
if [ -z "$NO_PROXY" ]; then
NO_PROXY=$SWARM_API_IP,$ETCD_SERVER_IP,$SWARM_NODE_IP
fi
cat > /etc/systemd/system/swarm-manager.service << END_SERVICE_TOP
[Unit]
Description=Swarm Manager