feat: enable managing root password
Build / precommit (pull_request) Successful in 5m48s

- 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 9b82a02e65
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':