help-cfengine
[Top][All Lists]
Advanced

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

Re: standalone cfagent script execution


From: Mark Burgess
Subject: Re: standalone cfagent script execution
Date: Wed, 25 Jan 2006 13:04:43 +0100

I haven't tested it, but can't you just do this?
--

export myscript=/path/file

#!/usr/local/sbin/cfagent -f

control:

  actionsequence = ( shellcommands )

  # mysscript = ( "/path/file" )

shellcommands:

  "$(myscript) -x -y -z" useshell=true/false

On Wed, 2006-01-25 at 11:25 +0100, Peter Daum wrote:
> 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?
> 
> Regards,
>                                Peter Daum
> 
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine





reply via email to

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