soluvas/puppet-jbossas Project on GitHub
1. Clone from git: git://github.com/soluvas/puppet-jbossas.git
2. Make a symlink in /etc/puppet/modules/jbossas
→ /home/ceefour/git/puppet-jbossas
Package['curl']
- JRE runtime
Typical production settings:
package {
curl: ensure => present;
daemon: ensure => present;
openjdk-7-jre-headless: ensure => present;
}
class { jbossas:
bind_address => '127.0.0.1',
}
Package['openjdk-7-jre-headless'] -> Class['jbossas']
Typical development settings:
class { jbossas: }
Available parameters and their default values:
version
= ‘7.1.1.Final’mirror_url
= ‘http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/’bind_address
= ‘127.0.0.1’http_port
= 8080https_port
= 8443
You can use your own mirror, can be HTTP, FTP, filesystem, or anything supported by curl
:
class { jbossas:
mirror_url => 'file:///home/ceefour/Public/'
}
Recommended configuration for Soluvas & Bippo:
class { jbossas:
http_port => 9080,
https_port => 9443
}
Example:
jbossas::virtual_server { satukancinta:
default_web_module => 'satukancinta-web',
aliases => ['satukancinta.dev', 'www.satukancinta.dev'],
ensure => present
}
Note that you still need to have WEB-INF/jboss-web.xml
in your webapp containing:
<jboss-web>
<virtual-host>satukancinta</virtual-host>
</jboss-web>