Sean Carolan [Fri, May 06, 2011 at 10:12:00AM -0500]: > Hello puppet gurus, maybe one of you can help with this. We have a > bunch of servers that are managed by puppet, but would like to make a > single, small change to a text file only on newly built machines. > This text file is controlled by a module that is referenced in several > places in our current configuration files. > > So the question would be, is there a straightforward way to have this > new config put in place *only* on newly built machines, but not on all > the previously existing ones? I'm thinking that perhaps there's a way > to over-ride the config put in place by the existing module without > having to copy all of our profiles, etc.
You can just create a new class that inherits your previous class and then overwrites the File[] you declared before and use that only on the new machines. 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.
