- root password already set in common.eyaml - add missing param to the accounts::root manifest
21 lines
381 B
Puppet
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',
|
|
}
|
|
}
|