feat: enable managing root password
- root password already set in common.eyaml - add missing param to the accounts::root manifest
This commit is contained in:
parent
0aec795aec
commit
8f7f47cdd5
@ -1,11 +1,13 @@
|
|||||||
# manage the root user
|
# manage the root user
|
||||||
class profiles::accounts::root (
|
class profiles::accounts::root (
|
||||||
Optional[Array[String]] $sshkeys = undef,
|
Optional[Array[String]] $sshkeys = undef,
|
||||||
|
Optional[String[1]] $password = undef,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
if $sshkeys {
|
if $sshkeys {
|
||||||
accounts::user { 'root':
|
accounts::user { 'root':
|
||||||
sshkeys => $sshkeys,
|
sshkeys => $sshkeys,
|
||||||
|
password => $password,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user