I need to create a test user with a password using puppet.
I\'ve read that puppet cannot manage user passwords in a generic cross-platform way, which is a pity. I am
You can use the generate function to let Puppet create the hash for you:
$password = 'hello' user { 'test_user': ensure => 'present', password => generate('/bin/sh', '-c', "mkpasswd -m sha-512 ${password} | tr -d '\n'"), }