Displaying 2 results from an estimated 2 matches for "generic_node".
Did you mean:
generic_code
2007 Dec 06
1
order, managing one file and refreshonly
Hello!
I''m quite newbie to puppet. I''ve got 3 questions:
1.
I''ve noticed, that puppet apply defined classes/modules in specyfic
order. I''ve got something like this im my configs:
/etc/puppet/cf/manifests/site.pp:
import "networks/*/site.pp"
node generic_node {
include "puppet"
include "apt"
include "debian"
}
---
and then file /etc/puppet/cf/manifests/network/c0001.local/site.pp:
node c0001.local inherits generic_node {
<here are many variables definitions>
include "hosts"
}
node "pc01.c0001.local...
2007 Feb 22
4
Assistance Requested
...tes in Class C (thus inherit class C) but I want the rest of the hosts to apply the configuration in Class C without custom configuration and without having to be individually specified.
For example:
Class X inherits C { ... }
Node X { include X }
Class Y inherits C { ... }
Node Y { include Y }
generic_nodes { include C }
Unfortunately, I have been unable to determine how to approach this problem properly.
My first thought was something like the following:
case $hostname {
X: { node X { include X }; }
Y: { node Y { include Y }; }
default: { include C }
}
But, I haven''t been able...