help-cfengine
[Top][All Lists]
Advanced

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

RE: Glob hard class names?


From: Atom Powers
Subject: RE: Glob hard class names?
Date: Wed, 6 Apr 2005 09:01:39 -0700

 
Something like this?
--
Control:
  freebsd::
    bsdrelease = ( ExecResult( /bin/sh -c '/usr/bin/uname -r' )
Groups:
  freebsd::
    freebsd_5 = ( RegCmp( "5\.\d\d?-\w+", $(bsdrelease) )

----
Perfection is just a word I use occasionally with mustard.

Atom Powers
Systems Administrator
Pyramid Breweries Inc.
206.682.8322 x251
-----Original Message-----
From: Mark Burgess [mailto:Mark.Burgess@iu.hio.no] 
Sent: Wednesday, April 06, 2005 12:27 AM
To: Atom Powers
Cc: help-cfengine@gnu.org
Subject: Re: Glob hard class names?


Can you use the RegCmp() function?

http://www.cfengine.org/docs/cfengine-Reference.html#Evaluated-classes-and-sp
ecial-functions

On Tue, 2005-04-05 at 15:21 -0700, Atom Powers wrote:
>  Is it possible to glob hard class names?
> For instance I currently have:
> --
> Groups:
>       freebsd_4       = ( freebsd_4_11_STABLE freebsd_4_10_STABLE
> freebsd_4_10_RELEASE_p3 )
>       freebsd_5       = ( freebsd_5_3_RELEASE freebsd_5_3_STABLE )
> --
> 
> But I'm still missing a lot of systems. "freebsd_5_4_PRERELEASE", for 
> example, won't match either group. Can I do something like:
> 
> --
> Groups:
>       freebsd_4       = ( freebsd_4_* )
>       freebsd_5       = ( freebsd_5_* )
> --
> 
> Or is there another way to easily define a group for these hard 
> classes? (And still catch "freebsd_5_4_STABLE" when it is released.)
> 
> ----
> Perfection is just a word I use occasionally with mustard.
> 
> Atom Powers
> Systems Administrator
> Pyramid Breweries Inc.
> 206.682.8322 x251
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine




reply via email to

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