incubator-lokahi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Feist, Jeffrey" <>
Subject RE: Templating configuration files
Date Thu, 07 Feb 2008 14:38:01 GMT
Glad to hear there is a lot of interest in templating. Below are what I
believe the changes that need to be made for the first pass. I will get
started on these changes and attach them to the Jira ticket when they
are complete. Please let me know if you have any comments or

Update "Manage Files" to say "Manage Templates"

For files/templates:
	Name: display name
	Path: path to this file on the server (is this needed anymore?)
	Descriptor: name of file (httpd.conf / httpsd.conf /
*Put examples next to field names*

Update Apache:
	- Update "Apache Main" to say "Apache Template"
	- Add template (with none as a choice)

Update Tomcat:
	- Add Server.xml Template drop down

add "lokahi.template.engine=X" in

Create a new class called something like ConfTemplateBuilder

Workers will call: public String ConfTemplateBuilder.buildConf(Server
worker) {
	- calls PropertiesFile.getConstantValue("templateEngine") ->
returns org.apache.lokahi....VelocityTemplateEngine
	- calls VelocityTemplateEngine.buildConf(Server) {}

The engine classes would be: 
Public abstract class TemplateEngine() 
VelocityTemplateEngine extends TemplateEngine( ) 

String VelocityTemplateEngine.buildConf(Server worker) {}
	- would have the mapping from $apacheServer  -> (ApacheWorker)
	- if Server instanceof ApacheWorker {}
	- else if Server instanceof TomcatWorker {}

When other Engines would be added, they would need to extend class
TemplateEngine() and have a buildConf function that returns a string
representation of the config file.



-----Original Message-----
From: Steve Lihn [] 
Sent: Wednesday, February 06, 2008 9:57 AM
Subject: Re: Templating configuration files

I am also interested in Lokahi supporting JBOSS/Apache environment.
Maybe there could be a /common/  J2EE module added to Lokahi.

What is your requirement to manage Geronimo?
What I am looking for in JBOSS is simple: To start/stop a JBOSS server
(JVM). Of course, this is in addition to all the nice features of
managing Apache config, JVM config, and mod_jk.

If there is momentum in this direction, more features can be added,
such as managing JBOSS config files, getting into the JMX console
business, etc.


On 2/5/08, <> wrote:
> We\'re planning on using Lokahi to manage our application hosting
> infrastructure, however we\'re primarily a Geronimo/Apache shop
instead of
> Tomcat, so we have an interest in some sort of more generic
> templating.

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 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.


View raw message