help-cfengine
[Top][All Lists]
Advanced

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

cfagent.conf


From: Wolfgang Schwurack
Subject: cfagent.conf
Date: Tue, 13 May 2003 08:38:18 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.0.1) Gecko/20020920 Netscape/7.0

Can you tell me why this does not work. I only what to run the command if the file newinstall is on the server. If the file is not there then do not run the command. This worked on my old servers running cfengine 1.6.3. Now I am running cfengine 2.1.0a2 on Solaris 9

#!/var/cfengine/bin/cfagent -f

groups:

  server = ( test )

  newinstall = ( "/usr/bin/test -f /var/cfengine/newinstall" )


control:

  actionsequence =
       (
         shellcommands
       )
  shellcommands:

    newinstall::
"/usr/bin/rsync -e '/usr/bin/ssh -x' -caz --delete distinc9@woody.uen.org
:../../local /opt"


--
--
Wolfgang Schwurack
Unix System Administrator
University of Utah/Utah Education Network
Tel: (801) 587-9444






reply via email to

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