mirror of https://github.com/docker/docs.git
Clean up some remaining issues with libmachine merge
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
This commit is contained in:
parent
49feb33457
commit
7b5c8a023f
16
commands.go
16
commands.go
|
@ -407,20 +407,20 @@ func cmdCreate(c *cli.Context) {
|
|||
|
||||
hostConfig := &libmachine.HostOptions{
|
||||
AuthConfig: &auth.AuthOptions{
|
||||
CaCertPath: c.GlobalString("tls-ca-cert"),
|
||||
PrivateKeyPath: c.GlobalString("tls-ca-key"),
|
||||
ClientCertPath: c.GlobalString("tls-client-cert"),
|
||||
ClientKeyPath: filepath.Join(utils.GetMachineCertDir(), "key.pem"),
|
||||
CaCertPath: certInfo.CaCertPath,
|
||||
PrivateKeyPath: certInfo.CaKeyPath,
|
||||
ClientCertPath: certInfo.ClientCertPath,
|
||||
ClientKeyPath: certInfo.ClientKeyPath,
|
||||
ServerCertPath: filepath.Join(utils.GetMachineDir(), name, "server.pem"),
|
||||
ServerKeyPath: filepath.Join(utils.GetMachineDir(), name, "server-key.pem"),
|
||||
},
|
||||
EngineConfig: &engine.EngineOptions{},
|
||||
SwarmConfig: &swarm.SwarmOptions{
|
||||
IsSwarm: c.Bool("swarm"),
|
||||
Master: c.GlobalBool("swarm-master"),
|
||||
Discovery: c.GlobalString("swarm-discovery"),
|
||||
Address: c.GlobalString("swarm-addr"),
|
||||
Host: c.GlobalString("swarm-host"),
|
||||
Master: c.Bool("swarm-master"),
|
||||
Discovery: c.String("swarm-discovery"),
|
||||
Address: c.String("swarm-addr"),
|
||||
Host: c.String("swarm-host"),
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -153,12 +153,12 @@ func (s Filestore) activePath() string {
|
|||
// validates host config and modifies if needed
|
||||
// this is used for configuration updates
|
||||
func validateHost(host *Host) *Host {
|
||||
if host.EngineOptions == nil {
|
||||
host.EngineOptions = &engine.EngineOptions{}
|
||||
if host.HostConfig.EngineConfig == nil {
|
||||
host.HostConfig.EngineConfig = &engine.EngineOptions{}
|
||||
}
|
||||
|
||||
if host.SwarmOptions == nil {
|
||||
host.SwarmOptions = &swarm.SwarmOptions{
|
||||
if host.HostConfig.SwarmConfig == nil {
|
||||
host.HostConfig.SwarmConfig = &swarm.SwarmOptions{
|
||||
Address: "",
|
||||
Discovery: host.SwarmDiscovery,
|
||||
Host: host.SwarmHost,
|
||||
|
|
|
@ -26,13 +26,11 @@ var (
|
|||
)
|
||||
|
||||
type Host struct {
|
||||
Name string `json:"-"`
|
||||
DriverName string
|
||||
Driver drivers.Driver
|
||||
StorePath string
|
||||
EngineOptions *engine.EngineOptions
|
||||
SwarmOptions *swarm.SwarmOptions
|
||||
HostConfig HostOptions
|
||||
Name string `json:"-"`
|
||||
DriverName string
|
||||
Driver drivers.Driver
|
||||
StorePath string
|
||||
HostConfig HostOptions
|
||||
|
||||
// deprecated options; these are left to assist in config migrations
|
||||
SwarmHost string
|
||||
|
|
Loading…
Reference in New Issue