set swarm manage to advertise on 3376

Signed-off-by: Dustin Blackman <dev@dustinblackman.com>
This commit is contained in:
Dustin Blackman 2016-01-06 15:04:23 -05:00
parent e681a4bb50
commit 288fddb736
1 changed files with 2 additions and 1 deletions

View File

@ -41,13 +41,14 @@ func configureSwarm(p Provisioner, swarmOptions swarm.Options, authOptions auth.
advertiseInfo := fmt.Sprintf("%s:%s", ip, dockerPort)
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",
authOptions.CaCertRemotePath,
authOptions.ServerCertRemotePath,
authOptions.ServerKeyRemotePath,
swarmOptions.Host,
swarmOptions.Strategy,
advertiseInfo,
advertiseMasterInfo,
)
cmdMaster := strings.Fields(cmd)