[augeas-devel] sudoers and requiretty

Michael Chapman mike at very.puzzling.org
Thu Dec 8 09:06:49 UTC 2011


On Thu, 8 Dec 2011, Chris wrote:
> If I use an empty string it works:
>
> # augtool
> augtool> set /files/etc/sudoers/Defaults[type=':nrpe']/type :nrpe
> augtool> set /files/etc/sudoers/Defaults[type=':nrpe']/requiretty/negate ""
> augtool> save
> Saved 1 file(s)

Hi Chris,

The "requiretty" tree node can also be created with an explicitly null 
value:

augtool> clear /files/etc/sudoers/Defaults[type=':nrpe']/requiretty/negate

At the moment Augeas doesn't treat an empty string and a null value any 
differently, though it's probably a good idea if you try to keep them 
separate.

This "clear" command should be able to be used directly in your Puppet 
manifest.

- Michael




More information about the augeas-devel mailing list