From 4af53e4c6e66cc8ef1957c4ef1eca4fd33803ae3 Mon Sep 17 00:00:00 2001 From: Leonardo Rossetti Date: Thu, 3 Jul 2025 07:33:48 -0300 Subject: [PATCH] add ssh_pwauth to org.osbuild.cloud-init Signed-off-by: Leonardo Rossetti --- stages/org.osbuild.cloud-init.meta.json | 4 ++++ test/data/stages/cloud-init/b.json | 1 + test/data/stages/cloud-init/b.mpp.yaml | 1 + 3 files changed, 6 insertions(+) diff --git a/stages/org.osbuild.cloud-init.meta.json b/stages/org.osbuild.cloud-init.meta.json index acd8eeae..0d27ed46 100644 --- a/stages/org.osbuild.cloud-init.meta.json +++ b/stages/org.osbuild.cloud-init.meta.json @@ -40,6 +40,10 @@ "description": "cloud-init configuration", "minProperties": 1, "properties": { + "ssh_pwauth": { + "type": "boolean", + "description": "enable/disable ssh password authentication" + }, "system_info": { "additionalProperties": false, "type": "object", diff --git a/test/data/stages/cloud-init/b.json b/test/data/stages/cloud-init/b.json index caa18c70..ae328d8f 100644 --- a/test/data/stages/cloud-init/b.json +++ b/test/data/stages/cloud-init/b.json @@ -717,6 +717,7 @@ "options": { "filename": "00-default_user.cfg", "config": { + "ssh_pwauth": false, "system_info": { "default_user": { "name": "ec2-user" diff --git a/test/data/stages/cloud-init/b.mpp.yaml b/test/data/stages/cloud-init/b.mpp.yaml index ed1c5ccc..020758ef 100644 --- a/test/data/stages/cloud-init/b.mpp.yaml +++ b/test/data/stages/cloud-init/b.mpp.yaml @@ -31,6 +31,7 @@ pipelines: options: filename: 00-default_user.cfg config: + ssh_pwauth: false system_info: default_user: name: ec2-user