feat(github): add coreos-ssh-import-github user attribute

This commit is contained in:
Brian Waldon
2014-03-19 08:54:45 -07:00
parent c2faaa503b
commit 6f5acf53cb
6 changed files with 143 additions and 12 deletions

View File

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