logo       

Re: Overrides and node classification (was: Template Nodes considered harmf: msg#00266

sysutils.puppet.user

Subject: Re: Overrides and node classification (was: Template Nodes considered harmful)

On Oct 25, 2007, at 2:40 AM, <Derek.Whayman@xxxxxxxxxxxxxxxxxxx> wrote:

> The tricky bit is if I want a server which is customised so the "ntp"
> class is overridden for example. You can't override a resource
> defined
> in a class unless in a parent class (ref:
> http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial) - so I
> have
> to ditch the ntp class from my classification list and include a new
> class ntp_custom which inherits ntp.

As Digant said, you can include both the parent class and subclass,
so you shouldn't need to remove the host from the parent class.

--
If two men agree on everything, you may be sure that one of them is
doing the thinking. -- Lyndon B. Johnson
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise