On Fri, Apr 29, 2011 at 04:20:58AM -0700, Sans wrote:
> node /^farm0\d+$/ inherits workernode {
> 
> err: Could not retrieve catalog from remote server: Error 400 on
> SERVER: Could not find node 'farm029.example.com' on node
> farm029.example.com

That regex is saying, match farm0 at the start of a string and then only
match digits until the end of the string.

So it matches to farm029 and then stops in failure as its found
characters. If all your hosts are in the same domain just removing the $
(end of string matcher) should work.

/^farm0\d+/

Otherwise /^farm0\d+.example.com$/ will also work, and be more precise.

  Dean
-- 
Dean Wilson
http://www.unixdaemon.net       @unixdaemon
http://www.puppetcookbook.com   @puppetcookbook

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@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