On 2015-16-11 13:44, Matt Shields wrote:
I'm having an issue with trying to use regex with hostnames that have a
hyphen in their name. How can I get this to work?
node /^(.*)-(db00)(.*)$/ {
include role::db
}
[root@ops-db001 ~]# puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on
SERVER: Invalid tag '-db00.' on node ops-db001.example.dom
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Which version of Puppet are you using? This problem sounds familiar and
may have be fixed in a more recent version of Puppet.
- henrik
--
Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/n2e84a%248oj%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.