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
↧