On Mon, Nov 1, 2010 at 6:29 PM, nickt <[email protected]> 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. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
