1
0
mirror of https://github.com/rancher/os.git synced 2025-05-11 01:27:08 +00:00

Rename sshd disable cfg to rancher.ssh.disable

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit 2017-07-17 11:15:54 +10:00
parent 6f33622a12
commit 7fb9afe39c
5 changed files with 7 additions and 5 deletions

View File

@ -81,7 +81,7 @@ func consoleInitFunc() error {
log.Error(err)
}
if err := writeRespawn("rancher", true, false); err != nil {
if err := writeRespawn("rancher", cfg.Rancher.SSH.Daemon, false); err != nil {
log.Error(err)
}

View File

@ -146,7 +146,7 @@ var schema = `{
"properties": {
"keys": {"type": "object"},
"disable": {"type": "boolean"}
"daemon": {"type": "boolean"}
}
},

View File

@ -175,8 +175,8 @@ type DockerConfig struct {
}
type SSHConfig struct {
Keys map[string]string `yaml:"keys,omitempty"`
Disable bool `yaml:"disable,omitempty"`
Keys map[string]string `yaml:"keys,omitempty"`
Daemon bool `yaml:"daemon,omitempty"`
}
type StateConfig struct {

View File

@ -14,6 +14,8 @@ rancher:
network:
dns:
nameservers: [8.8.8.8, 8.8.4.4]
ssh:
daemon: true
bootstrap:
bootstrap:
image: {{.OS_REPO}}/os-bootstrap:{{.VERSION}}{{.SUFFIX}}

View File

@ -144,7 +144,7 @@
"properties": {
"keys": {"type": "object"},
"disable": {"type": "boolean"}
"daemon": {"type": "boolean"}
}
},