1
0
mirror of https://github.com/rancher/os.git synced 2025-08-18 23:09:04 +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) 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) log.Error(err)
} }

View File

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

View File

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

View File

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

View File

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