help-cfengine
[Top][All Lists]
Advanced

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

Re: standalone cfagent script execution


From: Christopher Browne
Subject: Re: standalone cfagent script execution
Date: Wed, 25 Jan 2006 16:36:26 GMT
User-agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.18 (linux)

Peter Daum <address@hidden> writes:

> Is there any way to use cfagent (or is there any stripped down
> version of cfagent) to simply execute a script?
> There has been a similar question on this list in the past (see "Does
> a standalone editfiles command tool exist?") but no answer
> so far.
>
> Some parts of cfengine would be pretty for me (I assume, for others, too),
> but I have no use for the whole infrastructure that is normally expected
> (server, scheduler ...).
>
> I did some experiments with "cfagent -c <some script>" - it works more
> or less, but whines about the missing host key and creates a directory
> tree below "var/cfengine" (which for my purposes would be pretty annoying).
>
> Any ideas? Does anybody know of any other tool with a similar high-level
> command set that is more modest in the environment it requires?

Sure.

When I log into one of my boxes, one of the tasks that normally runs
is to ask, to run, the script

  $HOME/bin/cfcleanup

Which is a cfengine script, chmod o+x, that starts with the common
shell-ly prelude...

#!/usr/sbin/cfagent -f
# $Id$
# cfengine script to clean up my "home" stuff...
-- 
output = ("cbbrowne" "@" "ca.afilias.info")
<http://dba2.int.libertyrms.com/>
Christopher Browne
(416) 673-4124 (land)


reply via email to

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