schickb wrote:
> I'd like to have the client specify their own node names. Actually,
> what I really want is for clients to specify a node "type". In other
> words, I don't care what the machine or domain name is... I just want
> to know the purpose of the node. Is a "compute" node or a "database"
> node, each of which could be on many machines.
I would probably do it with something like this:
class node::compute { ... }
class node::database { ... }
node default
{
include "node::$nodetype"
}
and get myself a custom fact 'nodetype' that gets set in some suitable
way. (One quick way to make a custom fact is by setting an environment
variable FACTER_NODETYPE when running puppet/puppetd. However, a "real"
custom fact is probably cleaner.)
/Bellman
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---