Puppet is not setting the password for any created users. I tried several methods and none of them seem to work, my manifest file is:
Method 1: sha1() / md5() functions
user {'test1':
ensure => present,
password => sha1('vagrant'),
shell => '/bin/bash',
}
user {'test2':
ensure => present,
password => md5('vagrant'),
shell => '/bin/bash',
}
Method 2: password hash
user {'test3':
ensure => present,
password => '$6$plwk1mgalbEBBF$ificPYixcMcaotnm8.aayRDa9GDgBp3OgbrFkkU1ZahT/BAf5JvIkR9WjJZNkhIVcsrFkGY/OAs5ZSMvd0Yl3/',
shell => '/bin/bash',
}
/etc/shadow is not updated w/ pass
vagrant:$6$aqzOtgCM$OxgoM...Ta55l0:0:99999:7:::
test4:!:16183:0:99999:7:::
test3:!:16183:0:99999:7:::
test1:!:16183:0:99999:7:::
test2:!:16183:0:99999:7:::
- shadow has a "!" mark in the password field for my created users
- If I manually edit the shadow file and paste in the password hash i can successfully ssh & su into the accounts.
- already looked managing a user password for linux in puppet
versions
- Ubuntu: 12.04 (hashicorp/precise64)
- Puppet: 2.7.19
- Vagrant: 1.5.3