I just discovered something interesting: node server.example.org { class A { ... } } The above doesn''t do anything. node server.example.org { include A class A { ... } } The above works. I was under the impression that classes defined within a node were assumed to be part of that node. I learned something new today. -- Digant C Kasundra <digant@stanford.edu> Technical Lead, ITS Unix Systems and Applications, Stanford University
Digant C Kasundra wrote:> I just discovered something interesting: > > node server.example.org { > class A { > ... > } > } > > The above doesn''t do anything. > > node server.example.org { > include A > class A { > ... > } > } > > The above works. I was under the impression that classes defined within a > node were assumed to be part of that node. I learned something new today.Defining something never evaluates it automatically in Puppet, so yeah, the above won''t do anything automatically. -- Fallacies do not cease to be fallacies because they become fashions. --G. K. Chesterton --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com