Hi guys,
I've got an exec resource which prevents a user from getting locked:
exec { "disable_user_unlock_${user}":
command => "usermod -K lock_after_retries=no ${user}",
path => "/usr/bin:/usr/sbin/:/bin:/sbin",
}
When I run puppet agent -t manually the exec resource is working and the command is executed:
Notice: /Stage[main]/Ux_users::Solaris11/Exec[disable_user_unlock_sys]/returns: executed successfully
Notice: Applied catalog in 9.83 seconds
However if puppet is running as a daemon (in my environment every 30min) this resource is not working.
Is there something I've overseen or could this be a bug?
Thanks for your help
↧