How can I use regular expression in manifests ? Something like this : if "$productname" =~ /ProLiant/ { } --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Hi> How can I use regular expression in manifests ? > Something like this : > if "$productname" =~ /ProLiant/ { > > > }the puppet language doesn''t support this kind of expression (yet). greets pete --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
you could do a simple workaround with exec e.g. ... onlyif => ''echo $productname |grep Proliant'' ... On Mon, Nov 3, 2008 at 6:03 PM, Vincent Louviaux <vincent@louviaux.com>wrote:> How can I use regular expression in manifests ? > Something like this : > if "$productname" =~ /ProLiant/ { > > > } > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---