cookbook 'wildfly', '= 0.1.6'
wildfly
(31) Versions
0.1.6
-
Follow13
Installs/Configures wildfly
cookbook 'wildfly', '= 0.1.6', :supermarket
knife supermarket install wildfly
knife supermarket download wildfly
Wildfly Cookbook
Cookbook to deploy Wildfly Java Application Server
Requirements
Chef Client 11+
Java Opscode Community Cookbook
Platform
- CentOS, Red Hat, Fedora
- EC2 Amazon Linux AMI
Tested on:
- CentOS 6.5
Usage
You can add users in the proper format to attributes\users.rb
You can customize the Java version, and the Connector/J if you'd like.
Attributes
node['wildfly']['base']
- Base directory to run Wildfly fromnode['wildfly']['version']
- Specify the version of Wildflynode['wildfly']['url']
- URL to Wildfly tarballnode['wildfly']['checksum']
- SHA256 hash of said tarballnode['wildfly']['user']
- User to run Wildfly as.node['wildfly']['group']
- Group which owns Wildfly directoriesnode['wildfly']['server']
- Name of service and init.d script for daemonizingnode['wildfly']['mysql']['enabled']
- Boolean indicating Connector/J supportnode['wildfly']['int'][*]
- Various hashes for setting interface & port bindingsnode['wildfly']['smtp']['host']
- SMTP Destination hostnode['wildfly']['smtp']['port']
- SMTP Destination port
Recipes
-
::default
- Installs Java & Wildfly. Also installs Connector/J if you've got it enabled. -
::install
- Installs Wildfly. -
::mysql_connector
- Installs Connector/J into appropriate Wildfly directory.
Providers
Datasource LWRP
wildfly_datasource 'example' do jndiname "java:jboss/datasource/example" drivername "some-jdbc-driver" connectionurl "jdbc:some://127.0.0.1/example" end
Deploy LWRP
Allows you to deploy JARs and WARs via chef
Example 1 (from a url)
ruby
wildfly_deploy 'jboss.jdbc-driver.sqljdbc4_jar' do
url "http://artifacts.company.com/artifacts/mssql-java-driver/sqljdbc4.jar"
end
Example 2 (from disk)
ruby
wildfly_deploy 'jboss.jdbc-driver.sqljdbc4_jar' do
path "/opt/resources/sqljdb4.jar"
end
Attribute LWRP
Allows you to set an attribute in the server config
To change the max-post-size parameter
```xml
<server name="default-server">
<http-listener name="default" socket-binding="http" max-post-size="20971520"/>
<host name="default-host" alias="localhost">
```ruby
wildfly_attribute "max-post-size" do
path "/subsystem=undertow/server=default-server/http-listener=default"
parameter "max-post-size"
value "20971520L"
notifies :restart, "service[wildfly]"
end
If the attribute restart is set to false, the wildfly will never restart
wildfly_attribute "max-post-size" do path "/subsystem=undertow/server=default-server/http-listener=default" parameter "max-post-size" value "20971520L" restart false end
Authors
Author:: Brian Dwyer - Intelligent Digital Services
Contributors
Contributor:: Hugo Trippaers
Contributor:: Ian Southam