help-cfengine
[Top][All Lists]
Advanced

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

Re: cfrun question


From: Jason Edgecombe
Subject: Re: cfrun question
Date: Thu, 09 Mar 2006 20:37:39 -0500
User-agent: Thunderbird 1.5 (Macintosh/20051201)

Jason Edgecombe wrote:
weiler@pmc.ucsc.edu wrote:
Hi ya'll-

First, thanks much for the help and advice already given to me on this
list, it's been invaluable!  I'm almost sorted with my entire cfengine
setup for my network of 300+ clients, and the last thing to get working
is cfrun.

My question in this.  I know you can force a cfrun on one host at a
time, IF that host is listed in the cfrun.hosts.  But is there a way to
define classes (we have a nifty cf.groups file with all kinds of group
definitions) and just run cfrun on a specified class only?  Like, if I
have a group called "webservers" with 5 hosts as members of that group,
could I do something crafty like:

% cfrun -v webservers

or something like that to ONLY force a cfagent run on those hosts only?


Sorry for the empty email.

Yes, you can run cfrun for a certain group of hosts.

i.e. "cfrun -v linux" would run on all linux hosts.

My understanding is that the cfrun classes are defined in the cfagent config. cfrun pings all hosts and tells hosts of a certain class to run. It says "hey everyone, I want only group x to do this."


See http://www.cfengine.org/docs/cfengine-Reference.html#cfrun

Jason




reply via email to

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