help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: defining large groups by domain name


From: Brendan Strejcek
Subject: Re: defining large groups by domain name
Date: Sun, 14 Mar 2004 16:01:41 -0600
User-agent: Mutt/1.3.28i

Tod Oace wrote:

> On Mar 10, 2004, at 04:28, rader@ginseng.hep.wisc.edu wrote:
>
> > Does anyone know a terse way to define a (large) group of hosts
> > whose domain names have a numeric extension?
>
> I see a RegCmp function was added in cfengine 2.1.2. I haven't tried
> using it yet, but I'm happy it's there. Maybe this would work:
>
> groups: g3_compute_nodes = ( RegCmp("^g3n[0-9]*$", ${host}) )

Indeed, this works, but you need to be careful with the space in
the function arguments tuple. The above only works in my tests as
RegCmp("^g3n[0-9]*$",${host}) .




reply via email to

[Prev in Thread] Current Thread [Next in Thread]