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:[EMAIL PROTECTED] 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 _______________________________________________ Help-cfengine mailing list Help-cfengine@gnu.org http://lists.gnu.org/mailman/listinfo/help-cfengine