[Puppet Users] Re: regular expressions do not work with selectors as shown in documentation

2009-10-07 Thread Todd Zullinger
Bryan wrote: > OK. I just noticed I'm not running version 0.25 as is glaringly > obvious from the contents of my email. My mistake. Sorry for the > post. Though if you want to try 0.25.1rc1, there are packages available at: http://tmz.fedorapeople.org/repo/puppet/ If you grab the puppet.r

[Puppet Users] Re: regular expressions do not work with selectors as shown in documentation

2009-10-07 Thread Bryan
OK. I just noticed I'm not running version 0.25 as is glaringly obvious from the contents of my email. My mistake. Sorry for the post. On Wed, Oct 7, 2009 at 6:18 PM, Bryan Schneiders wrote: > The documentation at: > http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial#conditionals > >

[Puppet Users] Re: Regular Expressions

2009-04-30 Thread jekhokie
Thanks! I think I was getting confused because there was a simple syntax error in my files. On Apr 29, 10:11 pm, Kelsey Hightower wrote: > Based on a snippet from the group provider, it looks like the answer > to your question is yes. > > Taken from: puppet/lib/puppet/type/group.rb > > munge do

[Puppet Users] Re: Regular Expressions

2009-04-29 Thread Kelsey Hightower
Based on a snippet from the group provider, it looks like the answer to your question is yes. Taken from: puppet/lib/puppet/type/group.rb munge do |gid| case gid when String if gid =~ /^[-0-9]+$/ gid = Integer(gid)