[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: cfagent.conf
From: |
Wheeler, John |
Subject: |
RE: cfagent.conf |
Date: |
Tue, 13 May 2003 10:02:36 -0500 |
I'm guessing by "does not work" you mean that the class is never
enabled. I thought the syntax you are using was still valid, but maybe
not. Try
http://www.cfengine.org/docs/cfengine-Reference.html#Evaluated%20classes
newinstall = ( FileExists(/var/cfengine/newinstall) )
> -----Original Message-----
> From: Wolfgang Schwurack [mailto:wolf@uen.org]
> Sent: Tuesday, May 13, 2003 9:38 AM
> To: help-cfengine
> Subject: cfagent.conf
>
> 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
>
>
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine