Hello!
Could you, please, enlightent the situation about the subject. As far
as i can understand, puppet, actually my version 2.6.1, makes case-
sensitive matches, and i can't find a way to change the behavior.

The following code fails to work as expected, 'cause all operating
system define themselves as Ubuntu or Debian:

case $operatingsystem {
   /(ubuntu|debian)/: { $is_debian = true }
   default: { $is_debian = false }
}

Moreover documentation discourages to use downcasefacts as this option
is deprecated. Maybe there is some modifier to make case insensitive
regex match (like /i /bla/fu/i)?
Surly i can define regex as /([Uu]buntu|[Dd]ebian)/, but that is not a
very elegant way out.
>From my point of view puppet should be able to make case sensitive/
insensitive matches as well as it should have standard functions to
downcase and uppercase variables. Is not that essential?
Or may be i just can't understand how to achieve the desired thing..
However that is i think is true enough, that the documentation lacks
appropriate consideration of this matter.

Thank you for any help!

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to