2009/8/4 James Turnbull <ja...@lovedthanlost.net>:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> This is the rc1 release of Puppet 0.25.0.
>
> It is available at:
>
> http://reductivelabs.com/downloads/puppet/puppet-0.25.0rc1.tar.gz
> New Language Features
> - ---------------------
>
> Regular expression matching is now possible in node definitions.
>
> node /web|db/ {
>    include blah
> }
>
> node /^(foo|bar)\.example\.com$/ {
>    include blah
> }
>
> Puppet now also allows regular expressions in if statements with the use
> of the =~ (match) and !~ (not match) operators.
>
> if $uname =~ /Linux|Debian/ {
>  ...
> }

Woot!  This solves a problem I've just created for myself (multiple
servers that are all essentially identical other than their name and
IP) in a much nicer method than I was using.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to