help-cfengine
[Top][All Lists]
Advanced

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

Re: imports, classes and processes


From: Russell Adams
Subject: Re: imports, classes and processes
Date: Wed, 1 Dec 2004 22:17:23 -0600
User-agent: Mutt/1.4.2.1i

Insert an "AddInstallable = ( YP_Clients ) into your control section
before the processes area.

Russell

On Wed, Dec 01, 2004 at 10:58:19PM -0500, Gregory LeBaron wrote:
> I'm trying to define classes in an external file as is done in the 
> examples in the reference
> manual. It seems that clases that I define in the included file aren't 
> defined when cfagent
> gets to the processes: section but if I define the class in the 
> cfagent.conf it works.
> 
> For example:
> 
> cf.groups contains:
> groups:
>  YP_Clients = ( ReturnsZero(/bin/sh -c "test -f 
> /etc/rc.d/rc5.d/S*ypbind") )
> 
> 
> cfagent.conf contains:
> import:
>  cf.groups
> ....
> processes:
>  YP_Clients::
>    "ypbind" restart "/etc/rc.d/init.d/ypbind start"
> 
>  linux::
>    "cupsd" restart "/etc/rc.d/init.d/cups start"
> 
> When I run cfagent -v I can see that YP_Clients is defined:
> Defined Classes = ( 132_206_150 132_206_150_59 32_bit Day1 December Hr22 
> Hr22_Q3 LoadAvg_low_dev1 Math3 Math3_Math_McGill_CA Math_McGill_CA 
> Min30_35 Min34 Q3 UserProcs_low_normal Wednesday YP_Clients
> 
> but when it gets to the processes section I'll see:
> 
> cfengine:lupin: Running process command /bin/ps auxw
> Defining classes
> DoSignals(cupsd)
> Existing restart sequence found (/etc/rc.d/init.d/cups start)
> cfengine:lupin: Matches found for cupsd - no restart sequence
> 
> But nothing  for YP_Clients
> 
> If I put the group definitions back into cfagent.conf, it works just fine.
> 
> This is 2.1.11 on Fedora Core 2.
> 
> Thanks
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine
-----------------------------
Russell Adams
RLAdams@AdamsInfoServ.com
http://www.adamsinfoserv.com/




reply via email to

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