Issues with Node Regex

175 views
Skip to first unread message

cmvelo

unread,
Jul 4, 2010, 5:32:06 PM7/4/10
to Puppet Users


I am trying to match groups of nodes - i.e.

Node: synd1-path2.path2.some.domain
Node: synd2-path2.path2.some.domain

By using either of the node definitions below:

node /^synd\w+\.path2\.some\.domain$/ {
include ibapps
include db
}

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I have already read through the Puppet language tutorial and it would
seem
that any of the above node definitions should work.

Host info:
--------------
CentOS 5.4
Puppet: puppet-0.25.5-1.el5


Thanks much in advance!

cmvelo

unread,
Jul 4, 2010, 6:13:26 PM7/4/10
to Puppet Users
Got it working using:

node /^synd.*\.path2\.some\.domain$/ {
include ibapps
include db
Reply all
Reply to author
Forward
0 new messages