On Aug 31, 2011, at 6:57 AM, jcbollinger wrote: > > > On Aug 30, 9:15 am, M C <mcsof...@gmail.com> wrote: >> Hi, >> >> is it possible to push a file (with "source" or "content") and then add >> lines without having Puppet to regenerate it every time it runs? >> And, how can I add, remove or alter text lines without keeping old contents? > > > As I understand you, you want Puppet to provide a default version of > the file in the event that it does not exist at all, but otherwise to > leave it completely alone. That runs against the Puppet grain: it > would be better to completely manage the file content, updating the > node's manifests as appropriate when you want the file's contents to > change.
Call me crazy, but isn't this just a matter of adding "replace => false" to the file resource? If it doesn't exist, Puppet will create it according to the manifest. Once in place, Puppet will leave it alone unless it vanishes, at which point it will be re-created. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.