From 30a2e8e068e28115a24680bf8c64075ad0770347 Mon Sep 17 00:00:00 2001 From: Kunal Kushwaha Date: Thu, 14 Jan 2016 09:46:15 +0900 Subject: [PATCH] Configures swarm-master with failover support If more then one master is created with same discovery backend, Rest of master will be configured as replica of primary master Signed-off-by: Kunal Kushwaha --- libmachine/provision/configure_swarm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmachine/provision/configure_swarm.go b/libmachine/provision/configure_swarm.go index 43ab53ea84..337c3788d4 100644 --- a/libmachine/provision/configure_swarm.go +++ b/libmachine/provision/configure_swarm.go @@ -42,7 +42,7 @@ func configureSwarm(p Provisioner, swarmOptions swarm.Options, authOptions auth. if swarmOptions.Master { advertiseMasterInfo := fmt.Sprintf("%s:%s", ip, "3376") - cmd := fmt.Sprintf("manage --tlsverify --tlscacert=%s --tlscert=%s --tlskey=%s -H %s --strategy %s --advertise %s", + cmd := fmt.Sprintf("manage --tlsverify --tlscacert=%s --tlscert=%s --tlskey=%s -H %s --strategy %s --replication --advertise %s", authOptions.CaCertRemotePath, authOptions.ServerCertRemotePath, authOptions.ServerKeyRemotePath,