Agreed; the simple answer is to not manage the file. Assuming that the default configurations will be in place already from the apache, mysql, etc., installs; and the OP does not want to replace custom files -- not managing the file is the simple solution.
On Jul 2, 9:20 am, S H <shdashb...@gmail.com> wrote: > On Thu, Jul 2, 2009 at 6:57 AM, David Schmitt <da...@dasz.at> wrote: > > > Tim Galyean wrote: > > > The company I work for is getting ready to deploy a large puppet > > > configuration into an existing environment. The majority of the > > > servers that this will be deployed on are web servers, however some of > > > them are configured different from the rest. > > > > We have a set of default config files for apache, mysql and so forth, > > > however my quesiton is: > > > > Is there a way to "tell" puppet to do a sort of comparison on the > > > files, so that if one does not match the default config it is ignored > > > and or not replaced with the default. > > > > Any help with this is greatly appreciated, Thanks ahead of time. > > > Set the "replace" parameter on the file to false. This will keep puppet > > from overwriting local changes. > > > If you want to see what is different from what it should be, use --noop > > when running puppetd instead. > > > Regards, DavidS > > Bear in mind that "replace" only looks at whether the file exists, not the > actual contents. > > What is the OP actually trying to accomplish? From the original email, it > sounds like he's trying to replace a file if and only if it is identical to > the new one. The easiest solution to that: don't define the file in Puppet. > That way, all of them will remain exactly as they are... > > -SH- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---