Hi everyone,

My puppet master version is 2.7.6. The client runs on 2.6.17.
the clients hostname is java1.test.example.com.

I have used the following guide to setup resolv.conf properties.

http://projects.puppetlabs.com/projects/1/wiki/resolv_conf_patterns

I have setup the following record in nodes.pp

node /\.test\.example\.com/ {import "resolv" resolv_conf { 
"test.example.com":
                  domainname  => "",
                  searchpath  => ['test.example.com'],
                  nameservers => ['192.168.2.1', '192.168.2.2'],
              }
  } 

I have tried the following regex combination for the declaration of the 
node.

/java[0-9].test\.example\.com/
/.*\.test\.example\.com/
/(.*)\.test\.example\.com/
/java1|java2\.test\.example\.com/

None of these references will activate when running puppetd -tv on the host 
target machine.

I want to use regex to make sure all the servers under test.example.com get 
this special resolv.conf properties. However it's not working. regex in any 
shape or form works. I checked puppet versions and regex was added in 2.5. 
so I am not sure how to troubleshoot this further.

does anyone know of any tests I can do to find out what is wrong?

Regards

John




-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/QpWDH_hn6gQJ.
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