help-cfengine
[Top][All Lists]
Advanced

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

Re: List in copy and cross-action communication


From: Tim Nelson
Subject: Re: List in copy and cross-action communication
Date: Wed, 27 Apr 2005 14:57:37 +1000 (EST)

On Thu, 21 Apr 2005, Wil Cooley wrote:

The final option, which seems the most elegant to me (and that would
have lots of other applications), would to forego the classes altogether
and use shellcommands directly in the copy action:

copy:
 ${source_directory}/${postfix_maps}
    dest=/etc/postfix/${@}
    server=${cfserver}
    shellcommand="/usr/sbin/postmap /etc/postfix/${@}"
    # an "elseshellcommand" would be symmetric to the 'elsedefine'

I like! This could be combined with the "Templating in Configuration Files" section of Templating ideas (see link to Wiki below, and scroll to bottom of page). http://cfwiki.org/cfwiki/index.php/Templating_Ideas

In fact, what would be cool is triggering off templating both before and after the copy, so that stuff could be done depending on the server config, and on the client config.

        :)

--
Tim Nelson
Server Administrator
WebAlive Technologies Global
Level 1 Innovation Building, Digital Harbour
1010 LaTrobe Street
Docklands, Melbourne, Vic, 3008
Phone: +61 3 9934 0812
Fax: +61 3 9934 0899
E-mail: tim.nelson@webalive.biz
http://www.webalive.biz/

"Your Business, Your Web, Your Control"




reply via email to

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