Hello. I am looking to making Lokahi's configuration files templated instead of the current hard coding approach. The goal would be to allow any of the configuration files (server.xml, httpsd.conf, etc.) to be created from a template that is defined by a user. This would allow updates of the templates without requiring updated coding and restarts. More info can be found here: https://issues.apache.org/jira/browse/LOKAHI-4
I like Ludovic's approach using a factory, however it looks like it would still require a restart to load the additional template implementations into memory. Please correct me if I am wrong. Another approach to consider is using velocity templates. Here we can have a variable in the template be populated with a value entered by the user. Example: In the apache conf file, $serverRoot would be filled in with the apache.getServerRoot(); Using this approach, additional templates can be added at run time by users and can be updated if needed. Virtualhost blocks (including the default virtualhost) would also need the ability to be templated. I'm not sure the best way to have a user select which template they would want to use for their virtualhost. A single apache conf file may be using several different virtualhost templates at a time so my guess is that the template would need to be selected when the virtualhost is created. Are there any thoughts on the best way to implement templating? -Jeff ------------------------------------------------------------------------------ Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. ------------------------------------------------------------------------------
