mirror of
https://github.com/rancher/os.git
synced 2025-09-15 22:49:08 +00:00
Save ssh keys
This commit is contained in:
@@ -50,6 +50,7 @@ type Config struct {
|
||||
SystemDockerArgs []string `yaml:"system_docker_args,flow,omitempty"`
|
||||
Modules []string `yaml:"modules,omitempty"`
|
||||
CloudInit CloudInit `yaml:"cloud_init"`
|
||||
SshInfo SshInfo `yaml:"ssh"`
|
||||
}
|
||||
|
||||
type UserDockerInfo struct {
|
||||
@@ -59,6 +60,10 @@ type UserDockerInfo struct {
|
||||
TLSCACert string `yaml:"tls_ca_cert"`
|
||||
}
|
||||
|
||||
type SshInfo struct {
|
||||
Keys map[string]string
|
||||
}
|
||||
|
||||
type ConfigState struct {
|
||||
FsType string `yaml:"fstype"`
|
||||
Dev string `yaml:"dev"`
|
||||
@@ -158,6 +163,8 @@ func (c *Config) readFile() error {
|
||||
content, err := ioutil.ReadFile(ConfigFile)
|
||||
if os.IsNotExist(err) {
|
||||
return nil
|
||||
} else if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
data := make(map[string]interface{})
|
||||
|
Reference in New Issue
Block a user