Re: [Puppet Users] Regex for case statements

2017-05-06 Thread Ramin K
On 5/6/2017 6:10 PM, tejat...@gmail.com 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.

[Puppet Users] Regex for case statements

2017-05-06 Thread tejat148
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'*: { file { "/etc/cron.d/idm.sh":