I have written a site.pp
to change a password from the puppet master. Below is the site.pp
. It is changing the password on agent host idrac-h868gm1
, but when I try to login with the changed password (In this case devuser888
) it is not working.
I used single and double quotes but it still does not work. I manually changed the password to devuser888
and it is working.
node default {
class { 'ntp':
servers => ['ntp1','ntp2']
}
include ntp
}
node /^(prod|dev)\d+$/ {
include mounts
include nis
}
node idrac-h868gm1 {
user { 'dev':
ensure => present,
password => "devuser888"
}
}
Puppet server version: 2.7.1 (open source)
Puppet agent version: 4.8.0
Puppet agent OS: RHEL7.2
Please let me know for any more info/queries