On 5/6/2017 6:10 PM, [email protected] wrote:
Hello,

I'm stuck at this point while adding a case statement regex for
hostname's macthing...
Here is my sample code I'm working on...

class clearlogs::components::idm {

 case $::hostname {
   'idm-wc-(\d+)p': {

https://docs.puppet.com/puppet/3.8/lang_conditional.html#syntax-2

needs to be between slashes, /idm-wc-(\d+)p/: {}

If you have regex problems, I find http://rubular.com/ fairly useful for testing.

Ramin

--
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/81c500c3-26e2-adde-e7e5-45cbb63bd6f3%40badapple.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to