Re: Overriding types?

Charlie Schluting
Fri, 22 Dec 2006 01:04:37 -0000

On 12/21/06, David Lutterkort <dlutter@redhat.com>
wrote:
> On Thu, 2006-12-21 at 16:32 -0800, Charlie Schluting wrote:
> > Can you confirm that you cannot override things unless you actually
> > inherit, as opposed to including?
>
> That is correct.

Good, that''s what I thought.

> Since (I think) puppet 0.20.0 overrides have a different syntax from new
> definitions: new definitions use ''type { name: attr => value
}'' whereas
> overrides use ''Type[name] { attr => value }''

I completely missed that in the documentation. With these changes, and
my reorganization, it''s working now.

>
> With the change above, thonly fly in the ointment is that I don''t
think
> that nodes can inherit from classes (unless that has changed recently)

I don''t know what I was trying to do there. That''s been fixed
too :)

Thanks!
 -Charlie