Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Exec resource only working during manual run

$
0
0
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

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>