[Puppet Users] node, class inheritance confusion

Evan Hisey
Thu, 26 Jun 2008 16:14:55 -0000

Okay, I am having a bit of trouble figuring out the logic on this one.
The following node set up works:
------------------------------------------------
node base{
                include base-repos
                include ssh-base
                include common-root
                include puppet
               }

node ox inherits base{
              include java
              }

--------------------------------------------
Do to quirks in another node I need to change node base to a class
base. I discovered that nodes can''t inherit class. Not a problem, and
it is mentioned in the language tutorial so I tried this setup
-----------------------------------
class default-includes{
                include base-repos
                include ssh-base
                include common-root
                include puppet
               }

node base{
              include default-includes

node ox inherits base{
              include java
              }
-------------------------------------

Which fails because it can''t find a resource Yumrepo defined in
base-repos. So the question is can some one explain how or why puppet
is handling these differently?

Evan