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/[EMAIL PROTECTED] server=${cfserver} shellcommand="/usr/sbin/postmap /etc/postfix/[EMAIL PROTECTED]" # 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: [EMAIL PROTECTED]
http://www.webalive.biz/
"Your Business, Your Web, Your Control"
_______________________________________________ Help-cfengine mailing list Help-cfengine@gnu.org http://lists.gnu.org/mailman/listinfo/help-cfengine