From 6f33622a123ed3d8e88ed84066d083381c8cf7df Mon Sep 17 00:00:00 2001 From: Josh Curl Date: Mon, 9 Jan 2017 21:16:55 -0800 Subject: [PATCH] Add config option to disable sshd --- config/schema.go | 3 ++- config/types.go | 3 ++- scripts/schema.json | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/config/schema.go b/config/schema.go index 15b36ebb..982c02de 100644 --- a/config/schema.go +++ b/config/schema.go @@ -145,7 +145,8 @@ var schema = `{ "additionalProperties": false, "properties": { - "keys": {"type": "object"} + "keys": {"type": "object"}, + "disable": {"type": "boolean"} } }, diff --git a/config/types.go b/config/types.go index 3dc980cf..9cd778ab 100755 --- a/config/types.go +++ b/config/types.go @@ -175,7 +175,8 @@ type DockerConfig struct { } type SSHConfig struct { - Keys map[string]string `yaml:"keys,omitempty"` + Keys map[string]string `yaml:"keys,omitempty"` + Disable bool `yaml:"disable,omitempty"` } type StateConfig struct { diff --git a/scripts/schema.json b/scripts/schema.json index e882cc22..4262b9db 100644 --- a/scripts/schema.json +++ b/scripts/schema.json @@ -143,7 +143,8 @@ "additionalProperties": false, "properties": { - "keys": {"type": "object"} + "keys": {"type": "object"}, + "disable": {"type": "boolean"} } },