config: add support for multiple github users

This commit is contained in:
Alex Crawford
2015-01-20 13:45:52 -08:00
parent 4b5b801171
commit e9529ede44
2 changed files with 20 additions and 13 deletions

View File

@@ -87,6 +87,12 @@ func Apply(cfg config.CloudConfig, env *Environment) error {
return err
}
}
for _, u := range user.SSHImportGithubUsers {
log.Printf("Authorizing github user %s SSH keys for CoreOS user '%s'", u, user.Name)
if err := SSHImportGithubUser(user.Name, u); err != nil {
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 {