Pejay wrote:
> Eg: If the hostname is uk-tomcat-120.example.com, could I match on
> 'tomcat' to include a tomcat related class from within the default
> node definition?
A simpler route than external node classification (already mentioned),
but not as flexible if your node groups are always changing:
node "uk-tomcat-001.example.com",
"uk-tomcat-002.example.com",
...
"uk-tomcat-120.example.com"
{
include base
include uk
include tomcat
}
Another route if you adapt the facter recipe at
http://reductivelabs.com/trac/puppet/wiki/Recipes/HostgroupFact :
node default
{
include base
include $hostgroup
}
--
Mike Renfro / R&D Engineer, Center for Manufacturing Research,
931 372-3601 / Tennessee Technological University -- [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---