feat: enable managing root password

- root password already set in common.eyaml
- add missing param to the accounts::root manifest
- remove if block as undef sshkeys has same effect
This commit is contained in:
2025-12-28 19:42:26 +11:00
parent 0aec795aec
commit 0a0d085e63
2 changed files with 6 additions and 5 deletions
+5 -4
View File
@@ -1,12 +1,13 @@
# manage the root user
class profiles::accounts::root (
String $password,
Optional[Array[String]] $sshkeys = undef,
) {
if $sshkeys {
accounts::user { 'root':
sshkeys => $sshkeys,
}
accounts::user { 'root':
username => 'root',
sshkeys => $sshkeys,
password => $password,
}
file {'/root/.config':