Hi,

On Mon, 2010-03-29 at 14:05 +0530, LOhit wrote:
> Hi,
> 
> 
> Sorry if this question has been answered before (Could not find the
> answer, Google didn't help either :) ). 
> 
> 
> While specifying hosts I have used a regexp like this.
> " /^hst[0-9]+.domainname/ " I have about 300+ hosts matching this
> regexp and is working pretty well, so far. However, I have 2 hosts in
> this list which have to be excluded. But, I don't know how to do
> that. 
> 
> 
> Can anyone please provide some pointers/ tips to fix this?
> 

Normal node syntax (ie by hostname/fqdn instead of regex) takes
precedence over the regex nodes.

Depending on what you mean by excluding (I assumed you meant that those
host should have their own manifests) you can do:

node "host321.domainname", "host644.domainname" {
  .. specific config
}

node /^hst[0-9]+.domainname/ {
  ... regular config...
}

-- 
Brice Figureau
Follow the latest Puppet Community evolutions on www.planetpuppet.org!

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to