[Kolab-devel] Kolab-CF and Template file handling

Stephan Buys list at codefusion.co.za
Thu Jan 22 10:38:58 CET 2004


Hi all,

As per a request on the Kroupware mailing list (and due to our
work with Horde/Kolab Web Client) we are about to introduce dynamic
Template File handling into kolab-cf.

I thought I would share our design decisions with you so that we can
cater for everyone's needs:

- All template files will be stored under KOLABDIR/etc/kolab/templates
- Each template file will contain a META data section at the top of the file
Example main.cf.template:

START_KOLAB_META
TEMPLATE_DEST = $prefix/etc/kolab/postfix/main.cf
CHANGED_CMD = $prefix/etc/rc postfix reload
END_KOLAB_META
....rest of main.cf.template follows as usual

TEMPLATE_DEST will contain the destination of the template file
CHANGED_CMD will contain the command to be executed if something has been 
changed in the configuration file.

- When writing the template file to TEMPLATE_DEST the all the lines up until
END_KOLAB_META will be stripped from the file.

Does this sound like a good mechanism to all?
This will allow anyone to start managing their services from the kolab daemon by
just placing a template file with the correct META data into the templates folder.



Kind regards,
-- 
Stephan  




More information about the devel mailing list