Re: [Puppet Users] Over-riding changes in modules and classes

2011-05-10 Thread Felix Frank
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Over-riding changes in modules and classes

2011-05-06 Thread Sean Carolan
> 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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Over-riding changes in modules and classes

2011-05-06 Thread Nico -telmich- Schottelius
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Over-riding changes in modules and classes

2011-05-06 Thread Sean Carolan
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.