Re: [Puppet Users] Adding Lines to *Existing* Files?

Michael Semcheski
Mon, 01 Nov 2010 22:37:58 -0000

On Mon, Nov 1, 2010 at 6:29 PM, nickt <ntkach@gmail.com>
wrote:
> What, if any, is the best way to programatically add lines to an
> existing file with puppet?  What I''m going for precisely is adding
> lines to either /etc/passwd and /etc/shadow (on Solaris) or /etc/
> security/access.conf (on Linux) at "run" time.  Adding lines to
wind
> up with files along these lines, +@MyGroupToLetIn:x:::::

This is exactly what augeas is for.