Thanks Dean, I got it now. It was really silly that I was thinking "$"
is a special notation used by Puppet for domain name.
All working now. Cheers!!


On Apr 29, 12:58 pm, Dean Wilson <dwil...@unixdaemon.net> wrote:
>
> 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 Wilsonhttp://www.unixdaemon.net      
> @unixdaemonhttp://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