example42 / puppet-jboss

Jboss Puppet Module
http://www.example42.com
Other
15 stars 25 forks source link

Specify location of java #40

Closed rodriguesalex closed 8 years ago

rodriguesalex commented 8 years ago

How can I specify the location of java which JBoss needs to use to start up? I do not necessarily want to use the default java that is installed as I might have multiple versions (6,7) of java on the machine

alvagante commented 8 years ago

There's not an explicit parameter, but if you use the jboss::instance define you can specify a custom template to use for your init script, where you can specify the java_home you need.