Sean Carolan
2011-May-06 15:12 UTC
[Puppet Users] Over-riding changes in modules and classes
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 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Nico -telmich- Schottelius
2011-May-06 16:05 UTC
Re: [Puppet Users] Over-riding changes in modules and classes
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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Sean Carolan
2011-May-06 16:28 UTC
Re: [Puppet Users] Over-riding changes in modules and classes
> 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.Will this also work with an augeas entry with a changes [] section? -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Felix Frank
2011-May-10 10:36 UTC
Re: [Puppet Users] Over-riding changes in modules and classes
On 05/06/2011 06:28 PM, Sean Carolan wrote:>> 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. > > Will this also work with an augeas entry with a changes [] section? >I cannot see why it wouldn''t. -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Apparently Analagous Threads
- Puppet bootstrap: via cdist
- [PATCH] Expose remote forwarding ports as environment variable
- Can anyone help with a quick app_record.c module improvement and can explain over-riding modules?
- Can anyone help with a quick app_record.c module improvement and can explain over-riding modules?
- Can anyone help with a quick app_record.c module improvement and can explain over-riding modules?