feat: enable managing root password (#429)

- update root password in common.eyaml
- add missing param to the accounts::root manifest
- remove if block as undef sshkeys has same effect

Reviewed-on: #429
This commit was merged in pull request #429.
This commit is contained in:
2025-12-28 20:12:12 +11:00
parent 0aec795aec
commit 40d8e924ee
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -1,12 +1,12 @@
# 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':
sshkeys => $sshkeys,
password => $password,
}
file {'/root/.config':