mirror of
https://github.com/rancher/os.git
synced 2025-08-19 07:19:05 +00:00
Rename sshd disable cfg to rancher.ssh.disable
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
parent
6f33622a12
commit
7fb9afe39c
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -146,7 +146,7 @@ var schema = `{
|
|||||||
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"keys": {"type": "object"},
|
"keys": {"type": "object"},
|
||||||
"disable": {"type": "boolean"}
|
"daemon": {"type": "boolean"}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -176,7 +176,7 @@ 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 {
|
||||||
|
@ -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}}
|
||||||
|
@ -144,7 +144,7 @@
|
|||||||
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"keys": {"type": "object"},
|
"keys": {"type": "object"},
|
||||||
"disable": {"type": "boolean"}
|
"daemon": {"type": "boolean"}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user