Hi,
thanks for sharing ;)
I created a module for Kalumet (a Puppet like in the Apache incubator).
My answers inline:
On 07/09/2014 12:59 PM, fatmcgav wrote:
Morning all
I've currently started working with Apache Karaf as part of an internal
project, and I'm responsible for getting the project to a point whereby
Apache Karaf and our application can be deployed to production quickly,
easily and repeat-ably...
Currently we use Puppet, so I've taken on the task of creating a suitable
Puppet module to support Apache Karaf. This can be found here[1].
Currently the module supports installation of Karaf, base level
configuration such as adding Karaf to $PATH, and creation of a init.d
service using the wrapper tool.
It also supports managing some specific resources within karaf, such as
'feature-repos', 'features' and 'kar' files.
So for any of you out there already using Puppet, or wanting to use Puppet
to manage Karaf, feel free to install the module from Git and take it for a
spin. Any feedback gratefully received.
Onto some more specific questions...
* How do other users currently handle managing the multitude of config files
that make up a Karaf installation?
Different ways:
1/ creating custom distro: it's a not a Karaf vanilla, it's a custom
disto with updated cfg files
2/ using <configfile/> and <config/> elements in a feature
3/ in Kalumet, you can use the ConfigurationFile update unit to apply
regex on the cfg files (before starting). At runtime (after the
startup), you can use directly ConfigAdmin (via JMX).
* If Puppet could manage the config files, is there a specific set that
people would find useful?
In the Kalumet update unit, I did:
- org.apache.karaf.shell.cfg to change the ssh port number (from the
Kalumet configuration)
- org.apache.karaf.management.cfg to change the JMX/RMI port numbers
(from the Kalumet configuration)
- org.ops4j.pax.url.mvn.cfg to change/add the Maven repo (from the
Kalumet configuration)
- jetty.xml
* Is there anything that it would be really useful/make life 10x easier if
Puppet could take care of?
Use/contribute to Kalumet ? ;)
Regards
JB
So yeh, feel free to provide any feedback/ideas etc.
And thanks in advance for your time.
Regards
Gavin
[1] https://github.com/fatmcgav/fatmcgav-karaf/tree/develop
--
View this message in context:
http://karaf.922171.n3.nabble.com/Karaf-and-Configuration-Management-using-Puppet-tp4034087.html
Sent from the Karaf - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com