Update Kali user password with root_password with cleanup module

This commit is contained in:
thomashaw
2020-07-06 18:17:45 +01:00
parent 4fded9cb33
commit 96ce50e57a

View File

@@ -14,6 +14,15 @@ class cleanup::init {
managehome => true,
}
# if kali_msf we have a default kali sudoer account by default, so change the kali user password too.
if $operatingsystemrelease == 'kali-rolling' and $root_password {
::accounts::user { 'kali':
shell => '/bin/bash',
password => pw_hash($root_password, 'SHA-512', 'mysalt'),
managehome => true,
}
}
# Disable ssh
if $disable_ssh {
service { 'ssh':