WASdev/ci.chef.wlp

Name: ci.chef.wlp

Owner: WASdev

Description: Chef cookbook for installing and managing WebSphere Application Server Liberty Profile #devops

Created: 2013-07-10 08:20:14.0

Updated: 2017-11-23 14:14:03.0

Pushed: 2016-02-17 14:41:04.0

Homepage:

Size: 194

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Description

The wlp cookbook installs and configures the WebSphere Application Server Liberty Profile. It provides recipes, resources, and libraries for creating, managing, and configuring Liberty profile server instances.

Basic configuration

The wlp cookbook can install the Liberty profile from jar archive files or a zip file. The installation method is configured via the node[:wlp][:install_method] attribute.

jar installation

The node[:wlp][:archive][:version_yaml] attribute provides the location of a Yaml file which lists the URLs of the jar archive file for the latest release and latest beta. By default the latest release is installed. To install the latest beta, set the node[:wlp][:archive][:use_beta] attribute to true.

The node[:wlp][:archive][:runtime][:url] attribute, when set, overrides the location from the Yaml file. Setting it also causes the node[:wlp][:archive][:extended][:url] and node[:wlp][:archive][:extras][:url] to be used.

For more information on these options, see the attributes section later in this readme. You must also set the node[:wlp][:archive][:accept_license] attribute to true if you agree and accept the license terms of the Liberty profile software. The jar installation fails if node[:wlp][:archive][:accept_license] is not set to true.

By default the cookbook is configured to use the jar installation method. The archive options are already configured with values based on developer licensed Liberty profile.

The no-fee developer licensed Liberty profile jar archive files can be downloaded from Liberty download page on WASdev site. The production licensed Liberty profile jar archive files can be obtained from IBM Passport Advantage.

zip installation

When the zip installation method is used, only the node[:wlp][:zip][:url] attribute must be set to specify the location of the zip file. The zip file is assumed to be generated by running the ./bin/server package Liberty command with the --include=all or --include=minify option.

Requirements

Platform:
Cookbooks:

Attributes

Recipes

wlp::default

Installs WebSphere Application Server Liberty Profile. Liberty profile can be installed using jar archive files, or from a zip file based on the node[:wlp][:install_method] setting.

wlp::serverconfig

Creates a Liberty profile server instance for each node[:wlp][:servers][<server_name>] definition. The following definition creates a simple airport server instance:

[:wlp][:servers][:airport] = {
nabled" => true,
escription" => "Airport Demo App",
eatureManager" => {
"feature" => [ "jsp-2.2" ]

ttpEndpoint" => {
"id" => "defaultHttpEndpoint",
"host" => "*",
"httpPort" => "9080",
"httpsPort" => "9443"


Resources

wlp_bootstrap_properties

Adds, removes, and sets bootstrap properties for a particular server instance.

Actions
Attribute Parameters
Examples
bootstrap_properties "add to bootstrap.properties" do
rver_name "myInstance"
operties "com.ibm.ws.logging.trace.file.name" => "trace.log"
tion :add


bootstrap_properties "remove from bootstrap.properties" do
rver_name "myInstance"
operties [ "com.ibm.ws.logging.trace.file.name" ]
tion :remove


bootstrap_properties "set bootstrap.properties" do
operties "default.http.port" => "9081", "default.https.port" => "9444"
tion :set

wlp_collective

Provides operations for creating, joining, replicating, and removing Liberty profile servers from a collective.

Actions
Attribute Parameters
Examples
 me in!
wlp_config

Generates a server.xml file from a hash expression.

Actions
Attribute Parameters
Examples
config "/var/servers/airport/server.xml" do
nfig ({
        "description" => "Airport Demo App",
        "featureManager" => {
          "feature" => [ "jsp-2.2" ]
        },
        "httpEndpoint" => {
          "id" => "defaultHttpEndpoint",
          "host" => "*",
          "httpPort" => "9080",
          "httpsPort" => "9443"
        }


wlp_download_feature

Downloads an asset from the Liberty Repository or a local LARS repository.

Actions
Attribute Parameters
Examples
download_feature "mongodb" do
me "mongodb-2.0"
rectory "/opt/ibm/wlp/features"
cept_license true

wlp_install_feature

Installs an asset from the Liberty Repository, a local LARS repository, or a local directory based repository.

Actions
Attribute Parameters
Examples
install_feature "mongodb" do
me "mongodb-2.0"
cept_license true

wlp_jvm_options

Adds, removes, and sets JVM options in an installation-wide or instance-specific jvm.options file.

Actions
Attribute Parameters
Examples
jvm_options "add to instance-specific jvm.options" do
rver_name "myInstance"
tions [ "-Djava.net.ipv4=true" ]
tion :add


jvm_options "remove from instance-specific jvm.options" do
rver_name "myInstance"
tions [ "-Djava.net.ipv4=true" ]
tion :remove


jvm_options "add to installation-wide jvm.options" do
tions [ "-Xmx1024m" ]
tion :add


jvm_options "remove from installation-wide jvm.options" do
tions [ "-Xmx1024m" ]
tion :remove

wlp_server

Provides operations for creating, starting, stopping, and destroying Liberty profile server instances.

Actions
Attribute Parameters
Examples
server "myInstance" do
nfig ({
        "featureManager" => {
          "feature" => [ "jsp-2.2", "jaxws-2.1" ]
        },
        "httpEndpoint" => {
          "id" => "defaultHttpEndpoint",
          "host" => "*",
          "httpPort" => "9080",
          "httpsPort" => "9443"
        },
        "application" => {
          "id" => "example",
          "name" => "example",
          "type" => "war",
          "location" => "/apps/example.war"
        }
      })
mOptions [ "-Djava.net.ipv4=true" ]
rverEnv "JAVA_HOME" => "/usr/lib/j2sdk1.7-ibm/"
otstrapProperties "default.http.port" => "9080", "default.https.port" => "9443"
tion :create


server "myInstance" do
ean true
tion :start


server "myInstance" do
tion :stop


server "myInstance" do
tion :destroy

wlp_server_env

Adds, removes, and sets environment properties in installation-wide or instance-specific server.env file.

Actions
Attribute Parameters
Examples
server_env "add to instance-specific server.env" do
rver_name "myInstance"
operties "JAVA_HOME" => "/usr/lib/j2sdk1.7-ibm/"
tion :add


server_env "remove from instance-specific server.env" do
rver_name "myInstance"
operties [ "JAVA_HOME" ]
tion :remove


server_env "set installation-wide server.env" do
operties "WLP_USER_DIR" => "/var/wlp"
tion :set


server_env "remove from installation-wide server.env" do
operties [ "WLP_USER_DIR" ]
tion :remove

Contributing

Please see our contributing guide.

Support

Use the issue tracker for reporting any bugs or enhancements. For any questions please use the WASdev forum.

The cookbook is maintained by IBM.

Notice

© Copyright IBM Corporation 2013, 2014.

License

nsed under the Apache License, Version 2.0 (the "License");
may not use this file except in compliance with the License.
may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

ss required by applicable law or agreed to in writing, software
ributed under the License is distributed on an "AS IS" BASIS,
OUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
the License for the specific language governing permissions and
tations under the License.

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.