Add key generation.

This commit is contained in:
Brendan Burns
2015-05-28 11:45:08 -07:00
committed by CJ Cullen
parent 30a89968a4
commit 5115fd5703
13 changed files with 162 additions and 5 deletions

View File

@@ -357,6 +357,11 @@ func (s *APIServer) Run(_ []string) error {
}
}
var installSSH master.InstallSSHKey
instances, supported := cloud.Instances()
if supported {
installSSH = instances.AddSSHKeyToAllInstances
}
config := &master.Config{
EtcdHelper: helper,
EventTTL: s.EventTTL,
@@ -384,6 +389,7 @@ func (s *APIServer) Run(_ []string) error {
MinRequestTimeout: s.MinRequestTimeout,
SSHUser: s.SSHUser,
SSHKeyfile: s.SSHKeyfile,
InstallSSHKey: installSSH,
}
m := master.New(config)