On Thu, Jun 23, 2011 at 9:25 AM, Peter Meier <[email protected]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > >>>> I am hesitant for us to put something like this in the core distribution >>>> though, simply because we know it's a maintenance problem over time. >>> >>> Fair enough. >>> >>> Though I imagine not having this feature will lose puppet some people. >> >> Then lets get a simple text patterns module together for people to use. > > But be aware that names like appendifnosuchline do not fit the mental > model that puppet tries to propagate, but are fine for "script oriented" > configuration management systems such as cfengine or cdist. > > Something like: > > line{'SftpSubsystem ....': > file => '/tmp/test', > ensure => (present|absent) > } > > fits much more the mental model of puppet. Usually such a statement is a > quick but dirty way to do things and I try to avoid them as much as > possible. Therefore, I completely understand and support the concerns of > Nigel to not include such a feature in the core.
Yep. In a previous job we put together a type called "FileLine" which I think fits with The Puppet Way™ better. > But yes it would be good to have a solid module in the forge where > people can be pointed at. -- 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.
