This is a JBoss 7 cookbook. It's still in development. Feel free to contribute.
V. 1.0.0 - Breaking change - service is changed from jboss to jboss7. - Added travis to repo, working on automated tests. - Lots of rubocop style fixes.
V. 0.11.0 - Added a jboss7_user provider to create JBoss 7 standalone mgmt users. - Added sane defaults for bind addresses.
V. 0.10.2 - I realize I forgot to include sane defaults for the port numbers. Now added.
Ubuntu 14.04
TODO: CentOS, Windows
jboss7_user - JBoss 7 user takes two attributes, the "name" of the resource is the account you're adding to the management realm. The password is HEX( MD5( username ':' realm ':' password)). The example password is: HEX( MD5(Administrator:ManagementRealm:changeit!)) You should be able to login to your JBoss management console with the user Administrator, password changeit! The provider uses sed -i to delete users therefore is not GNU sed compliant. User beware! The provider also only concerns itself with the standalone configuration.
TODO: Maybe put password in an encrpted databag? Refactor into a HWRP/library to use native ruby commands to modify jboss user file, in order to be platform independant. Add domain user configuration.
https://github.com/andy-dufour/chef-jboss7
Key | Type | Description | Default |
---|---|---|---|
['jboss7']['jboss_home'] | String | Path to the parent directory where JBoss will be installed. E.g., if you want JBoss installed in /opt/jboss, this would be /opt/ | /opt/jboss/ |
['jboss7']['jboss_user'] | String | User for JBoss to run as. | web |
['jboss7']['jboss_group'] | String | Group for JBoss to run as. | web |
['jboss7']['dl_url'] | String | URL to download the JBoss tarball from. | https://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final.tar.gz |
['jboss7']['jvm_min_mem'] | String | Sets your Xms JVM parameter | 512m |
['jboss7']['jvm_max_mem'] | String | Sets your Xmx JVM parameter | 1024m |
['jboss7']['jvm_perm_mem'] | String | Sets your PermGenSpace JVM parameter | 256m |
['jboss7']['ajp_port'] | String | Sets your AJP port in standalone.xml | 8009 |
['jboss7']['http_port'] | String | Sets your HTTP port in standalone.xml | 8080 |
['jboss7']['https_port'] | String | Sets your HTTPS port in standalone.xml | 8443 |
Include jboss7
in your node's run_list
:
{
"run_list": [
"recipe[jboss7::default]"
]
}
- Fork the repository on Github
- Create a named feature branch (i.e.
add-new-recipe
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request
Author:: Andrew DuFour ([email protected])