Merge "Use right no proxy settings for swarm master and agent"
This commit is contained in:
@@ -16,6 +16,10 @@ if [ $TLS_DISABLED = 'True' ]; then
|
|||||||
ETCDCTL_OPTIONS=""
|
ETCDCTL_OPTIONS=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$NO_PROXY" ]; then
|
||||||
|
NO_PROXY=$SWARM_API_IP,$ETCD_SERVER_IP,$SWARM_NODE_IP
|
||||||
|
fi
|
||||||
|
|
||||||
cat > $CONF_FILE << EOF
|
cat > $CONF_FILE << EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Swarm Agent
|
Description=Swarm Agent
|
||||||
|
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
CERT_DIR=/etc/docker
|
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
|
cat > /etc/systemd/system/swarm-manager.service << END_SERVICE_TOP
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Swarm Manager
|
Description=Swarm Manager
|
||||||
|
Reference in New Issue
Block a user