[Puppet Users] Using regex in Puppet node definition

2012-08-09 Thread James Fraser
I have a nodes-operational.pp with various nodes defined. I would like to define a node using a regular expression like so: /^dev-[^\s]*(?!geoserver)$/ That is, I would like to use the above expression to resolve nodes which are prefixed with 'dev', but do not end with 'geoserver'. This

AW: [Puppet Users] Using regex in Puppet node definition

2012-08-09 Thread Bernd Adamowicz
...@googlegroups.com] Im Auftrag von James Fraser Gesendet: Donnerstag, 9. August 2012 11:01 An: puppet-users@googlegroups.com Betreff: [Puppet Users] Using regex in Puppet node definition I have a nodes-operational.pp with various nodes defined. I would like to define a node using a regular expression

Re: [Puppet Users] Using regex in Puppet node definition

2012-08-09 Thread Dan White
On Aug 9, 2012, at 5:23 AM, Bernd Adamowicz wrote: I'm not an expert in regular expression. But if I run into problems like this one, I always turn to this page: http://www.regexplanet.com/advanced/java/index.html Has always helped me. Bernd Very nice tool page. Thanks for that link.

Re: [Puppet Users] Using regex in Puppet node definition

2012-08-09 Thread Martin Willemsma
Hi! In addition to Bernds link. That page is applicable to Java, there is also a page to test your Ruby regex: I like this one: http://rubular.com/ Martin 2012/8/9 Dan White y...@comcast.net On Aug 9, 2012, at 5:23 AM, Bernd Adamowicz wrote: I'm not an expert in regular expression. But

Re: [Puppet Users] Using regex in Puppet node definition

2012-08-09 Thread jcbollinger
On Thursday, August 9, 2012 7:07:34 AM UTC-5, mawi wrote: Hi! In addition to Bernds link. That page is applicable to Java, there is also a page to test your Ruby regex: I like this one: http://rubular.com/ Yes, I think that's more apropos in this context. To my knowledge, Puppet