Nigel, Nigel Kersten [Thu, Jun 23, 2011 at 07:37:30AM -0700]: > [...] > > It's simple enough at first, [...] >
that's exactly the use case for __addifnosuchline in cdist. The type let's you do what you want to do right now, fast and simple. That's what a feature I've always missed in puppet. > [...] I do think the "append if no such line" semantics aren't really > maintainable over > time. If at any time in the future, I begin to add more and more lines to the same file, I definitely should refacter and create a type that handles managing this important file. For me it's mostly a "take the right tool for the right job" selection here. Cheers, Nico -- PGP key: 7ED9 F7D3 6B10 81D7 0EC5 5C09 D7DC C8E4 3187 7DF0 -- 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.
