The documentation at: http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial#conditionals
says: """ Starting with version 0.25, selectors now support regular expressions: $owner = $operatingsystem ? { /(redhat|debian)/ => "bin", default => undef, } In this last example, if $operatingsystem matches either redhat or debian, then bin will be the selected result. """ When I try something like this, I get: Syntax error at '/'; expected '}' If I put quotes around it, it doesn't act as a regular expression and fails to match. If I use just "RedHat" without a regular expression, then it matches when the operating system is RedHat. I'm using: puppet-0.24.8-1.fc10.noarch puppet-server-0.24.8-1.fc10.noarch Is the bug in puppet or the documentation? Does anyone know the correct syntax? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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 -~----------~----~----~----~------~----~------~--~---