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

augeas: sudo error

$
0
0
Hello, i have a problem with augeas and puppet. I'm trying to add a user in sudoers file, and in some servers it works perfectly but in others it doesn't (with same version centos 7 and puppet-agent-5.3.2) This is the code: [...] augeas { "sudosystem": context => "/files/etc/sudoers", changes => [ "set spec[user = 'system']/user system", "set spec[user = 'system']/host_group/host ALL", "set spec[user = 'system']/host_group/command ALL", "set spec[user = 'system']/host_group/command/runas_user ALL", ], } In servers that it doesn't work i have this error: Warning: Augeas[sudosystem](provider=augeas): Loading failed for one or more files, see debug for /augeas//error output Error: /Stage[main]/Linuxbase/Augeas[sudosystem]: Could not evaluate: Saving failed, see debug

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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