puppet-prod/site/profiles/manifests/accounts/root.pp
Ben Vincent 8f7f47cdd5 feat: enable managing root password
- root password already set in common.eyaml
- add missing param to the accounts::root manifest
2025-12-28 19:42:26 +11:00

21 lines
381 B
Puppet

# manage the root user
class profiles::accounts::root (
Optional[Array[String]] $sshkeys = undef,
Optional[String[1]] $password = undef,
) {
if $sshkeys {
accounts::user { 'root':
sshkeys => $sshkeys,
password => $password,
}
}
file {'/root/.config':
ensure => directory,
owner => 'root',
group => 'root',
mode => '0600',
}
}