Merge "Restart swarm infra containers if deleted"
commit
ee68ef6d85
|
@ -26,6 +26,7 @@ ExecStart=/usr/bin/docker run -e http_proxy=$HTTP_PROXY \\
|
|||
join \\
|
||||
--addr $myip:2375 \\
|
||||
etcd://$ETCD_SERVER_IP:2379/v2/keys/swarm/
|
||||
Restart=always
|
||||
ExecStop=/usr/bin/docker stop swarm-agent
|
||||
ExecStartPost=/usr/local/bin/notify-heat
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@ fi
|
|||
cat >> /etc/systemd/system/swarm-manager.service << END_SERVICE_BOTTOM
|
||||
etcd://$ETCD_SERVER_IP:2379/v2/keys/swarm/
|
||||
ExecStop=/usr/bin/docker stop swarm-manager
|
||||
Restart=always
|
||||
ExecStartPost=/usr/bin/curl -k -i -X POST -H 'Content-Type: application/json' -H 'X-Auth-Token: $WAIT_HANDLE_TOKEN' \\
|
||||
--data-binary "'"'{"Status": "SUCCESS", "Reason": "Setup complete", "Data": "OK", "UniqueId": "00000"}'"'" \\
|
||||
"$WAIT_HANDLE_ENDPOINT"
|
||||
|
|
Loading…
Reference in New Issue