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: Thu, 11 Mar 2004 22:10:52 -0600
User-agent: Mutt/1.3.28i

rader@ginseng.hep.wisc.edu wrote:

> I tried writing a module but debug output makes me think that modules
> can only define macros--not groups.

Modules can define classes or macros. Here is a simple sh module that
accomplishes what you want:

#!/bin/sh

hostname | cut -f1 -d. | egrep '^g3n([0-2][0-9]|3[012345])$' &&
    echo +g3_compute_nodes

For more details, read this:

http://www.cfengine.org/docs/cfengine-Tutorial.html#Writing%20plugin%20modules

-- Brendan




reply via email to

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