From ebf93dd19776f2aaa6eedc03ef88dd7d4839c423 Mon Sep 17 00:00:00 2001 From: 0xdeadd Date: Tue, 5 May 2026 17:49:15 -0400 Subject: [PATCH] docs: align users-groups example YAMLs with comment text Examples 3 and 4 in the cc_users_groups module docs describe behavior (password-based login rejected, SSH access for the GitHub user TheRealFalcon and the Launchpad user falcojr) that the actual YAML examples didn't include. Add the missing lock_passwd and ssh_import_id fields so the rendered example matches the prose. Inline-array syntax for ssh_import_id matches the existing convention in cc_ssh_import_id/example1.yaml and cc_users_groups/example7.yaml. Fixes GH-6857 --- doc/module-docs/cc_users_groups/example3.yaml | 2 ++ doc/module-docs/cc_users_groups/example4.yaml | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/module-docs/cc_users_groups/example3.yaml b/doc/module-docs/cc_users_groups/example3.yaml index b39665b1b1a..c41d096cef3 100644 --- a/doc/module-docs/cc_users_groups/example3.yaml +++ b/doc/module-docs/cc_users_groups/example3.yaml @@ -2,3 +2,5 @@ users: - name: newsuper shell: /bin/bash + lock_passwd: true + ssh_import_id: ['gh:TheRealFalcon', 'lp:falcojr'] diff --git a/doc/module-docs/cc_users_groups/example4.yaml b/doc/module-docs/cc_users_groups/example4.yaml index cd5647f85a5..bb1fedb4c4a 100644 --- a/doc/module-docs/cc_users_groups/example4.yaml +++ b/doc/module-docs/cc_users_groups/example4.yaml @@ -1,5 +1,6 @@ #cloud-config users: - doas: [permit nopass newsuper, deny newsuper as root] + lock_passwd: true name: newsuper - + ssh_import_id: ['gh:TheRealFalcon', 'lp:falcojr']