From 4f5ab8f26de84eb938e5dbeb7151de63ad471e6e Mon Sep 17 00:00:00 2001 From: rabi Date: Tue, 17 Dec 2024 08:52:51 +0530 Subject: [PATCH] Enable root login when root password has been set By default, root login is disabled. Signed-off-by: rabi --- templates/openstackbaremetalset/cloudinit/userdata | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/openstackbaremetalset/cloudinit/userdata b/templates/openstackbaremetalset/cloudinit/userdata index ba5222d..b8e967e 100644 --- a/templates/openstackbaremetalset/cloudinit/userdata +++ b/templates/openstackbaremetalset/cloudinit/userdata @@ -8,6 +8,8 @@ users: sudo: ['ALL=(ALL) NOPASSWD:ALL'] shell: /bin/bash {{- if (index . "NodeRootPassword") }} +disable_root: false +ssh_pwauth: true chpasswd: list: | root:{{ .NodeRootPassword }}