In Puppet 3.7 with future parser the right hand side can be any
expression that evaluates to a regular expression or a string (if string
it is
interpreted as a regexp and the string should not be enclosed in / /).
This will be standard in Puppet 4.0.
e.g
# The variable is a regexp string
if($variable2 =~ $variable) {
#...
# interpolated as part of a regext
if($variable2 =~ "xxxxx$variable") {
#...
Hope that helps
Regards
- henrik
--
Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/