feat(ssh-import): Add ssh-import-url user attribute.

This commit is contained in:
David Calavera
2014-03-22 15:26:18 -07:00
parent 61808c2002
commit 7d814396b7
7 changed files with 162 additions and 76 deletions

View File

@@ -83,6 +83,12 @@ func Apply(cfg CloudConfig, env *Environment) error {
return err
}
}
if user.SSHImportURL != "" {
log.Printf("Authorizing SSH keys for CoreOS user '%s' from '%s'", user.Name, user.SSHImportURL)
if err := SSHImportKeysFromURL(user.Name, user.SSHImportURL); err != nil {
return err
}
}
}
}