help-cfengine
[Top][All Lists]
Advanced

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

Re: Executing commands depending on results


From: skaar
Subject: Re: Executing commands depending on results
Date: Tue, 11 Nov 2003 12:23:26 -0500
User-agent: Mutt/1.4i

* Harish Chauhan (harish@us.ibm.com) [031111 12:11]:
> 
> Hi,
> 
> I am testing cfengine to manage Linux machines. We have a typical requirement
> at this stage, what we want is as follows :

if you want to shell out, you would use the shellcommands action

actionsequence = ( packages shellcommands )

packages:
  linux::
    rpm-build  version=0:4.1-1 cmp=le  
               define=true_class elsedefine=false_class

shellcommands:
  true_class::
    "/path/to/cmp args"
  false_class::
    "/path/to/cmp args"

/skaar


> 
> ....
> ........
> 
> packages :
> 
>         linux : :
>        
>         rpm-build  version=0:4.1-1 cmp=le  define=true_class  elsedefine=
> false_class
> 
>         true_class::
>                 < we want to execute some commands at this stage >      
>  Example : rpm -Uvh  /..../,,,,,/ rpm-build-1.4.0*
>        
>         false_class::
>                 < we want to execute some commands at this stage >
> 
> tidy :
> 
> 
> Looking forward to your reply.....
> 
> Thanks in advance..
> 
> Regards, Harish Chauhan

> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine


-- 
/skaar

+-------------------------------------------------------------------+
+----- skaar@aol.net                   kent skaar   ----------------+
+----- internet services: infrastructure security   ----------------+
+-------------------------------------------------------------------+




reply via email to

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