[swarm] Fix cert filename in swarm-agent service

In swarm nodes the docker certs are named server.crt and server.key.
Replace filenames in swarm-agent service from client to server.

Change-Id: Ic3bc228d98c3829b583403156d8ad3ad4939037a
PArtially-Implements: blueprint secure-etcd-cluster-coe
This commit is contained in:
Spyros Trigazis 2017-01-14 19:52:28 +01:00 committed by yatin
parent 900c2af483
commit 7c4ef12fd4
1 changed files with 2 additions and 2 deletions

View File

@ -8,8 +8,8 @@ CONF_FILE=/etc/systemd/system/swarm-agent.service
CERT_DIR=/etc/docker
PROTOCOL=https
ETCDCTL_OPTIONS="--ca-file $CERT_DIR/ca.crt \
--cert-file $CERT_DIR/client.crt \
--key-file $CERT_DIR/client.key"
--cert-file $CERT_DIR/server.crt \
--key-file $CERT_DIR/server.key"
if [ $TLS_DISABLED = 'True' ]; then
PROTOCOL=http