websphere_application_server

Manages IBM WebSphere Application Server

13,240 downloads

2,510 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 2.1.0 (latest)
  • 2.0.1
  • 2.0.0
  • 1.4.2
  • 1.4.1
  • 1.4.0
  • 1.3.0
  • 1.2.0
  • 1.1.0
  • 1.0.1
  • 1.0.0
  • 0.2.0
released May 20th 2019
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x
  • Puppet >= 5.5.10 < 7.0.0
  • , , ,

This module is licensed for use with Puppet Enterprise. You may also evaluate this module for up to 90 days.Learn More

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'puppetlabs-websphere_application_server', '2.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add puppetlabs-websphere_application_server
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install puppetlabs-websphere_application_server --version 2.0.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

puppetlabs/websphere_application_server — version 2.0.0 May 20th 2019

Reference

Classes

Defined types

Resource types

Classes

websphere_application_server

Manage setup for WebSphere installation and management

Parameters

The following parameters are available in the websphere_application_server class.

base_dir

Data type: Any

The base directory containing IBM Software. Valid options: an absolute path to a directory.

Default value: '/opt/IBM'

user

Data type: Any

The user name that owns and executes the WebSphere installation. Valid options: a string containing a valid user name.

Default value: 'websphere'

group

Data type: Any

The permissions group for the WebSphere installation. Valid options: a string containing a valid group name.

Default value: 'websphere'

user_home

Data type: Any

Specifies the home directory for the specified user if manage_user is true. Valid options: an absolute path to a directory.

Default value: '/opt/IBM'

manage_user

Data type: Any

Specifies whether the class manages the user specified in user. Valid options: boolean.

Default value: true

manage_group

Data type: Any

Specifies whether the class manages the group specified in group. Valid options: boolean.

Default value: true

Defined types

websphere_application_server::cluster

Manage WebSphere clusters.

Examples

Create a simple cluster
websphere_application_server::cluster { 'MyCluster01':
  profile_base => '/opt/IBM/WebSphere/AppServer/profiles',
  dmgr_profile => 'PROFILE_DMGR_01',
  cell         => 'CELL_01',
  require      => Websphere_application_server::Profile::Dmgr['PROFILE_DMGR_01'],
}

Parameters

The following parameters are available in the websphere_application_server::cluster defined type.

dmgr_profile

Data type: Any

Required. The DMGR profile under which this cluster should be created. The wsadmin tool is used from this profile.

profile_base

Data type: Any

Path to the base directory for your profiles.

cell

Data type: Any

Required. The cell that this cluster should be created under.

user

Data type: Any

The user that should run the wsadmin commands. Defaults to $::websphere_application_server::user

Default value: $::websphere_application_server::user

cluster

Data type: Any

The name of the cluster to manage. Defaults to the resource title.

Default value: $title

collect_members

Data type: Any

Specifies whether exported resources relating to WebSphere clusters should be collected by this instance of the defined type. If true, websphere_application_server::cluster::member, websphere_cluster_member, and websphere_cluster_member_service resources that match this cell are collected. The use case for this is so application servers, for instance, can export themselves as a cluster member in a certain cell. When this defined type is evaluated by a DMGR, those can automatically be collected.

Default value: true

wsadmin_user

Data type: Any

Optional. The username for wsadmin authentication if security is enabled.

Default value: undef

wsadmin_pass

Data type: Any

Optional. The password for wsadmin authentication if security is enabled.

Default value: undef

dmgr_host

Data type: Any

The resolvable hostname for the DMGR that this cluster exists on. This is needed for collecting cluster members. Defaults to $::fqdn.

Default value: $::fqdn

ensure

Data type: Any

Default value: 'present'

websphere_application_server::cluster::member

This is intended to be exported by an application server and collected by a DMGR. However, you could just declare it on a DMGR.

Examples

Manage a single cluster member
websphere_application_server::cluster::member { 'AppServer01':
  ensure       => 'present',
  cluster      => 'MyCluster01',
  node_name    => 'appNode01',
  cell         => 'CELL_01',
  profile_base => '/opt/IBM/WebSphere/AppServer/profiles',
  dmgr_profile => 'PROFILE_DMGR_01',
}

Parameters

The following parameters are available in the websphere_application_server::cluster::member defined type.

profile_base

Data type: Any

Required. The full path to the profiles directory where the dmgr_profile can be found. The IBM default is /opt/IBM/WebSphere/AppServer/profiles.

cluster

Data type: Any

Required. The name of the cluster that this member should be managed under.

node_name

Data type: Any

The node that this cluster member should be created on.

cell

Data type: Any

Required. Specifies the cell where the cluster is, under which this member should be managed.

dmgr_profile

Data type: Any

Required. The name of the DMGR profile to create this cluster member under.

cluster_member_name

Data type: Any

Specifies the name for this cluster member. Defaults to the resource title.

Default value: $title

ensure

Data type: Any

Specifies whether this cluster member should exist or not.

Default value: 'present'

user

Data type: Any

Optional. The user to run the wsadmin command as. Defaults to 'root'.

Default value: $::websphere_application_server::user

runas_user

Data type: Any

Optional. Manages the runAsUser for a cluster member.

Default value: $::websphere_application_server::user

runas_group

Data type: Any

Optional. Manages the runAsGroup for a cluster member.

Default value: $::websphere_application_server::group

client_inactivity_timeout

Data type: Any

Optional. Manages the clientInactivityTimeout for the TransactionService.

Default value: undef

gen_unique_ports

Data type: Any

Optional. Boolean. Specifies the genUniquePorts value when adding a cluster member.

Default value: undef

jvm_maximum_heap_size

Data type: Any

Optional. Manages the maximumHeapSize setting for the cluster member's JVM.

Default value: undef

jvm_verbose_mode_class

Data type: Any

Optional. Boolean. Manages the verboseModeClass setting for the cluster member's JVM

Default value: undef

jvm_verbose_garbage_collection

Data type: Any

Optional. Boolean. Manages the verboseGarbageCollection setting for the cluster member's JVM

Default value: undef

jvm_verbose_mode_jni

Data type: Any

Optional. Boolean. Manages the verboseModeJNI setting for the cluster member's JVM

Default value: undef

jvm_initial_heap_size

Data type: Any

Optional. Manages the initialHeapSize setting for the cluster member's JVM.

Default value: undef

jvm_run_hprof

Data type: Any

Optional. Boolean. Manages the runHProf setting for the cluster member's JVM.

Default value: undef

jvm_hprof_arguments

Data type: Any

Optional. Manages the hprofArguments setting for the cluster member's JVM.

Default value: undef

jvm_debug_mode

Data type: Any

Optional. Manages the debugMode setting for the cluster member's JVM.

Default value: undef

jvm_debug_args

Data type: Any

Optional. Manages the debugArgs setting for the cluster member's JVM.

Default value: undef

jvm_executable_jar_filename

Data type: Any

Optional. Manages the executableJARFilename setting for the cluster member's JVM.

Default value: undef

jvm_generic_jvm_arguments

Data type: Any

Optional. Manages the genericJvmArguments setting for the cluster member's JVM.

Default value: undef

jvm_disable_jit

Data type: Any

Optional. Manages the disableJIT setting for the cluster member's JVM.

Default value: undef

replicator_entry

Data type: Any

This parameter is inactive.

Default value: undef

total_transaction_timeout

Data type: Any

Optional. Manages the totalTranLifetimeTimeout for the Application Server.

Default value: undef

threadpool_webcontainer_min_size

Data type: Any

Optional. Manages the minimumSize setting for the WebContainer ThreadPool.

Default value: undef

threadpool_webcontainer_max_size

Data type: Any

Optional. Manages the maximumSize setting for the WebContainer ThreadPool.

Default value: undef

umask

Data type: Any

Optional. Manages the ProcessExecution umask for a cluster member.

Default value: undef

wsadmin_user

Data type: Any

Optional. The username for wsadmin authentication if security is enabled.

Default value: undef

wsadmin_pass

Data type: Any

Optional. The password for wsadmin authentication if security is enabled.

Default value: undef

weight

Data type: Any

Optional. Manages the cluster member weight (memberWeight) when adding a cluster member.

Default value: undef

manage_service

Data type: Any

Specifies whether the corresponding service for the cluster member should be managed here or not. This uses the websphere_cluster_member_service type to do so.

Default value: true

dmgr_host

Data type: Any

The DMGR host to add this cluster member to. This is required if you're exporting the cluster member for a DMGR to collect. Otherwise, it's optional.

Default value: undef

websphere_application_server::ihs::instance

Define to manage the installation of IBM HTTPServer (IHS) instances

Examples

Install an instance of IBM HTTP Server
websphere_application_server::ihs::instance { 'HTTPServer':
  target           => '/opt/IBM/HTTPServer',
  package          => 'com.ibm.websphere.IHSILAN.v85',
  version          => '8.5.5000.20130514_1044',
  repository       => '/mnt/myorg/ihs/repository.config',
  install_options  => '-properties user.ihs.httpPort=80',
  user             => 'webadmin',
  group            => 'webadmins',
  manage_user      => false,
  manage_group     => false,
  log_dir          => '/opt/log/websphere/httpserver',
  admin_username   => 'httpadmin',
  admin_password   => 'password',
  webroot          => '/opt/web',
}

Parameters

The following parameters are available in the websphere_application_server::ihs::instance defined type.

base_dir

Data type: Any

Specifies the full path to the base directory that IHS and IBM instances should be installed to. The IBM default is /opt/IBM.

Default value: $::websphere_application_server::base_dir

target

Data type: Any

The target directory to where this instance of IHS should be installed to. The IBM default is /opt/IBM/HTTPServer.

The module default is ${base_dir}/${title}, where $title is the title of this resource. So if we declared it as such:

websphere_application_server::ihs::instance { 'HTTPServer85': }

And assumed IBM defaults, it would be installed to /opt/IBM/HTTPServer85.

Default value: undef

package

Data type: Any

Required in the absence of a response file. The IBM package name to install for the HTTPServer installation. This is the first part (before the first underscore) of IBM's full package name.

For example, a full name from IBM looks like: com.ibm.websphere.IHSILAN.v85_8.5.5000.20130514_1044. The package name is the first part of that. In this example, com.ibm.websphere.IHSILAN.v85.

This corresponds to the repository metadata provided with IBM packages.

Default value: undef

version

Data type: Any

Required in the absence of a response file. The IBM package version to install for the HTTPServer installation. This is the second part (after the first underscore) of IBM's full package name.

For example, a full name from IBM looks like: com.ibm.websphere.IHSILAN.v85_8.5.5000.20130514_1044. The package version is the second part of that. In this example, 8.5.5000.20130514_1044

This corresponds to the repository metadata provided with IBM packages.

Default value: undef

repository

Data type: Any

Required in the absence of a response file. The full path to the installation repository file to install IHS from. This should point to the location that the IBM package is extracted to. When extracting an IBM package, a repository.config is provided in the base directory.

Example: /mnt/myorg/ihs/repository.config

Default value: undef

response_file

Data type: Any

Optional. Specifies the full path to a response file to use for installation. The response file must already be created and available for installation. Typically, a response file includes, at a minimum, a package name, version, target, and repository information.

Default value: undef

install_options

Data type: Any

Specifies options to be appended to the base set of options.

When using a response file, the base options are: input /path/to/response/file.

When not using a response file, the base set of options are: install ${package}_${version} -repositories ${repository} -installationDirectory ${target} -acceptLicense.

Default value: undef

imcl_path

Data type: Any

The full path to the imcl tool provided by the IBM Installation Manager.

The IBM default is /opt/IBM/InstallationManager/eclipse/tools/imcl.

This will attempt to be auto-discovered by the ibm_pkg provider, which parses IBM's data file in /var/ibm to determine where InstallationManager is installed.

You can leave this blank unless imcl was not auto discovered.

Default value: undef

manage_user

Data type: Any

Specifies whether this instance should manage the user specified by the user parameter.

Default value: true

manage_group

Data type: Any

Specifies whether this instance should manage the group specified by the group parameter.

Default value: true

user

Data type: Any

Specifies the user that should own this instance of IHS.

Default value: $::websphere_application_server::user

group

Data type: Any

Specifies the user that should own this instance of IHS.

Default value: $::websphere_application_server::group

user_home

Data type: Any

Specifies the home directory for the user. This is only relevant if you're managing the user with this instance (e.g. not via the base class). So if manage_user is true, this is relevant.

Default value: $::websphere_application_server::user_home

log_dir

Data type: Any

Specifies the full path to where log files should be placed. In websphere_application_server::ihs::instance, this only manages the directory.

Default value: undef

webroot

Data type: Any

Specifies the full path to where individual document roots will be stored. This is basically the base directory for doc roots. In websphere_application_server::ihs::instance, this only manages the directory.

Default value: undef

admin_listen_port

Data type: Any

Specifies the port that the IHS administration is listening on.

Default value: '8008'

adminconf_template

Data type: Any

Specifies an ERB template to use for the resulting admin.conf file. By default, the module includes one. The value of this parameter should refer to a Puppet-accessible source, like $module_name/template.erb.

Default value: undef

replace_config

Data type: Any

Specifies whether Puppet should continue to manage the admin.conf configuration after it's already placed it. If the file does not exist, Puppet creates it accordingly. If it does already exist, Puppet does not replace it.

This parameter might yield unexpected results. If IBM provides an admin.conf file by default, then setting this parameter to false causes the module to never manage the file.

Default value: true

server_name

Data type: Any

Specifies the server's name that will be used in the HTTP configuration for the ServerName option for the admin configuration.

Default value: $::fqdn

manage_htpasswd

Data type: Any

Specifies whether this defined type should manage the htpasswd authentication for the administrator credentials. These are used by WebSphere consoles to query and manage an IHS instance.

If true, the htpasswd utility is used to manage the credentials. If false, the user is responsible for configuring this.

Default value: true

admin_username

Data type: Any

The administrator username that a WebSphere Console can use for authentication to query and manage this IHS instance.

Default value: 'httpadmin'

admin_password

Data type: Any

The administrator password that a WebSphere Console can use for authentication to query and manage this IHS instance.

Default value: 'password'

websphere_application_server::ihs::server

Manage web server (http) instances on IHS

Parameters

The following parameters are available in the websphere_application_server::ihs::server defined type.

target

Data type: Any

Required. Specifies the full path to the IHS installation that this server should belong to.

Example: /opt/IBM/HTTPServer

status

Data type: Any

Ensure status for the server service.

Default value: 'running'

httpd_config

Data type: Any

Specifies the full path to the HTTP configuration file to manage. Assembled as ${target}/conf/httpd_${title}.conf.

Default value: undef

user

Data type: Any

The user that should own and run this server instance. The service will be managed as this user. This also corresponds to the "User" option in the HTTP configuration.

Default value: $::websphere_application_server::user

group

Data type: Any

The group that should own and run this server instance. This also corresponds to the "Group" option in the HTTP configuration.

Default value: $::websphere_application_server::group

docroot

Data type: Any

Specifies the full path to the document root for this server instance. Assembled as ${target}/htdocs.

Default value: undef

instance

Data type: Any

This parameter is inactive. Defaults to the resource's title.

Default value: $title

httpd_config_template

Data type: Any

Specifies a Puppet-readable location for a template to use for the HTTP configuration. One is provided, but this allows you to use your own custom template. Assembled as ${module_name}/ihs/httpd.conf.erb.

Default value: "${module_name}/ihs/httpd.conf.erb"

timeout

Data type: Any

Specifies the value for Timeout.

Default value: '300'

max_keep_alive_requests

Data type: Any

Specifies the value for MaxKeepAliveRequests.

Default value: '100'

keep_alive

Data type: Any

Specifies the value for KeepAlive. Valid values are On or Off.

Default value: 'On'

keep_alive_timeout

Data type: Any

Specifies the value for KeepAliveTimeout.

Default value: '10'

thread_limit

Data type: Any

Specifies the value for ThreadLimit.

Default value: '25'

server_limit

Data type: Any

Specifies the value for ServerLimit.

Default value: '64'

start_servers

Data type: Any

Specifies the value for StartServers.

Default value: '1'

max_clients

Data type: Any

Specifies the value for MaxClients.

Default value: '600'

min_spare_threads

Data type: Any

Specifies the value for MinSpareThreads.

Default value: '25'

max_spare_threads

Data type: Any

Specifies the value for MaxSpareThreads.

Default value: '75'

threads_per_child

Data type: Any

Specifies the value for ThreadsPerChild.

Default value: '25'

max_requests_per_child

Data type: Any

Specifies the value for MaxRequestsPerChild.

Default value: '25'

limit_request_field_size

Data type: Any

Specifies the value for LimitRequestFieldSize.

Default value: '12392'

listen_address

Data type: Any

Specifies the address for the Listen HTTP option. To listen on all available addresses, set to an asterisk (*).

Default value: $::fqdn

listen_port

Data type: Any

Specifies the port for the Listen HTTP option.

Default value: '10080'

server_admin_email

Data type: Any

Specifies the value for the ServerAdmin e-mail address

Default value: 'user@example.com'

server_name

Data type: Any

Specifies the value for the ServerName HTTP option. Typically, an HTTP ServerName option will look like:

ServerName host:port

This specifies the host part of that.

Default value: $::fqdn

server_listen_port

Data type: Any

Specifies the port value for the ServerName HTTP option. See the server_name parameter above for more information.

Default value: '80'

pid_file

Data type: Any

Specifies the base filename for a PID file. Defaults to the resource's title. This isn't the full path, just the filename.

Default value: "${title}.pid"

replace_config

Data type: Any

Specifies whether Puppet should replace this server's HTTP configuration once it's present. If the file doesn't exist, Puppet creates it. If this parameter is set to true, Puppet ensures that the configuration file matches what is described. If this value is false, Puppet ignores the file's contents. We recommend that you leave this set to true and manage the config file through Puppet exclusively.

Default value: true

directory_index

Data type: Any

Specifies the DirectoryIndex for this instance. Should be a string that has space-separated filenames.

Example: index.html index.html.var

Default value: 'index.html index.html.var'

log_dir

Data type: Any

Specifies the full path to where access/error logs should be stored. Assembled as ${target}/logs.

Default value: undef

access_log

Data type: Any

The filename for the access log.

Default value: 'access_log'

error_log

Data type: Any

The filename for the error log.

Default value: 'error_log'

export_node

Data type: Any

Specifies whether a websphere_node resource should be exported. This is intended to be used for DMGRs to collect to create an unmanaged node.

Default value: true

export_server

Data type: Any

Specifies whether a websphere_web_server resource should be exported for this server. This allows a DMGR to collect it to create a web server instance.

Default value: true

node_name

Data type: Any

Required if export_node is true. Specifies the node name to use for creation on a DMGR.

Default value: $::fqdn

node_hostname

Data type: Any

Specifies the resolvable address for this server for creating the node. The DMGR host needs to be able to reach this server at this address.

Default value: $::fqdn

node_os

Data type: Any

Specifies the operating system for this server. This is used for the DMGR to create an unmanaged node for this server. We currently only support 'aix' and 'linux'.

Default value: undef

cell

Data type: Any

Required if export_node is true. The cell that this node should be a part of.

Default value: undef

admin_username

Data type: Any

This is required if export_server is true. Specifies the administrator username that a DMGR can query and manage this server with.

Default value: 'httpadmin'

admin_password

Data type: Any

This is required if export_server is true. Specifies the administrator password that a DMGR can query and manage this server with.

Default value: 'password'

plugin_base

Data type: Any

Specifies the full path to the plugin base directory.

Default value: '/opt/IBM/Plugins'

propagate_keyring

Data type: Any

Specifies whether the plugin keyring should be propagated from the DMGR to this server after the web server instance is created on the DMGR. This is only relevant if export_server is true.

Default value: true

dmgr_host

Data type: Any

This is required if you're exporting the server for a DMGR to collect. The DMGR host to add this server to.

Default value: undef

websphere_application_server::instance

Manages the base installation of a WebSphere instance.

Examples

Install an instance of AppServer version 8
websphere_application_server::instance { 'WebSphere85':
  target       => '/opt/IBM/WebSphere/AppServer',
  package      => 'com.ibm.websphere.NDTRIAL.v85',
  version      => '8.5.5000.20130514_1044',
  profile_base => '/opt/IBM/WebSphere/AppServer/profiles',
  repository   => '/mnt/myorg/was/repository.config',
}
Install AppServer version 9
websphere_application_server::instance { 'WebSphere90':
  target              => '/opt/IBM/WebSphere/AppServer',
  package             => 'com.ibm.websphere.ND.v90',
  version             => '9.0.0.20160526_1854',
  profile_base        => '/opt/IBM/WebSphere/AppServer/profiles',
  jdk_package_name    => 'com.ibm.websphere.IBMJAVA.v71',
  jdk_package_version => '7.1.2000.20141116_0823',
  repository          => '/mnt/myorg/was/repository.config',
}
Install using an response file
websphere_application_server::instance { 'WebSphere85':
  response     => '/mnt/myorg/was/was85_response.xml',
  profile_base => '/opt/IBM/WebSphere/AppServer/profiles',
}

Parameters

The following parameters are available in the websphere_application_server::instance defined type.

base_dir

Data type: Any

This should point to the base directory that WebSphere instances should be installed to. IBM's default is /opt/IBM

Default value: undef

target

Data type: Any

The full path where this instance should be installed. The IBM default is '/opt/IBM/WebSphere/AppServer'. The module default for target is "${base_dir}/${title}/AppServer", where title refers to the title of the resource.

Default value: undef

package

Data type: Any

This is the first part (before the first underscore) of IBM's full package name. For example, a full name from IBM looks like: "com.ibm.websphere.NDTRIAL.v85_8.5.5000.20130514_1044". The package name for this example is com.ibm.websphere.NDTRIAL.v85". This corresponds to the repository metadata provided with IBM packages. This parameter is required if a response file is not provided.

Default value: undef

version

Data type: Any

This is the second part (after the first underscore) of IBM's full package name. For example, a full name from IBM looks like: "com.ibm.websphere.NDTRIAL.v85_8.5.5000.20130514_1044". The package version in this example is "8.5.5000.20130514_1044". This corresponds to the repository metadata provided with IBM packages. This parameter is required if a response file is not provided.

Default value: undef

repository

Data type: Any

The full path to the installation repository file to install WebSphere from. This should point to the location that the IBM package is extracted to. When extracting an IBM package, a repository.config is provided in the base directory. Example: /mnt/myorg/was/repository.config

Default value: undef

response_file

Data type: Any

Specifies the full path to a response file to use for installation. It is the user's responsibility to have a response file created and available for installation. Typically, a response file will include, at a minimum, a package name, version, target, and repository information.

Default value: undef

install_options

Data type: Any

Specifies options to be appended to the base set of options. When using a response file, the base options are: input /path/to/response/file. When not using a response file, the base set of options are:install ${package}_${version} -repositories ${repository} -installationDirectory ${target} -acceptLicense.

Default value: undef

imcl_path

Data type: Any

The full path to the imcl tool provided by the IBM Installation Manager. The ibm_pkg provider attempts to automatically discover this path by parsing IBM's data file in /var/ibm to determine where InstallationManager is installed.

Default value: undef

profile_base

Data type: Any

Specifies the full path to where WebSphere profiles will be stored. The IBM default is /opt/IBM/WebSphere/AppServer/profiles.

Default value: undef

jdk_package_name

Data type: Any

Starting with WebSphere 9, you must specify the JDK package you wish to install alongside WebSphere AppServer. Like the package parameter, this is the IBM package name. Example: 'com.ibm.websphere.IBMJAVA.v71'

Default value: undef

jdk_package_version

Data type: Any

The version string for the JDK you would like to install. Example: '7.1.2000.20141116_0823'

Default value: undef

manage_user

Data type: Any

Specifies whether this instance should manage the user specified by the user parameter.

Default value: false

manage_group

Data type: Any

Specifies whether this instance should manage the group specified by the group parameter.

Default value: false

user

Data type: Any

Specifies the user that should own this instance of WebSphere.

Default value: $::websphere_application_server::user

group

Data type: Any

Specifies the group that should own this instance of WebSphere.

Default value: $::websphere_application_server::group

user_home

Data type: Any

Specifies the home directory for the user. This is only relevant if you're managing the user with this instance (that is, not via the base class). So if manage_user is true, this is relevant. Defaults to $target

Default value: undef

websphere_application_server::ownership

We provide this for a couple of reasons:

  • IBM software wants to be installed as root. It's possible to install as a different user, but the Installation Manager (the package manager) data won't know about that installation. To keep things centralized so that we can reliably query it, we install as root.
  • Since we installed as root, the instance is "owned" by root. This seems to cause some configuration tasks to fail to run, even if the "profiles" are owned by the service account. E.g. some tasks attempt to create file locks within the instance directory that's owned by root.
  • Basically, we need to install as root and then make sure the thing gets owned by the service account afterwards.
  • Ultimately, this is what IBM documents - a series of 'chown' on various directories.

Parameters

The following parameters are available in the websphere_application_server::ownership defined type.

user

Data type: Any

Required. Specifies the user that should own this path. All files and directories under path will be owned by this user.

group

Data type: Any

Required. Specifies the group that should own this path. All files and directories under path will be owned by this group.

path

Data type: Any

The full path to the directory whose ownership should be managed. Defaults to the resource title.

Default value: $title

websphere_application_server::profile::appserver

Manages WAS application servers.

Parameters

The following parameters are available in the websphere_application_server::profile::appserver defined type.

instance_base

Data type: Any

Required. The full path to the installation of WebSphere that this profile should be created under. The IBM default is '/opt/IBM/WebSphere/AppServer'.

profile_base

Data type: Any

Required. The full path to the base directory of profiles. The IBM default is '/opt/IBM/WebSphere/AppServer/profiles'.

cell

Data type: Any

Required. The cell name to create. For example: 'CELL_01'.

node_name

Data type: Any

Required. The name for this "node". For example: 'appNode01'.

profile_name

Data type: Any

The name of the profile. The directory that gets created will be named this. Example: 'PROFILE_APP_01' or 'appProfile01'. Recommended to keep this alpha-numeric.

Default value: $title

user

Data type: Any

The user that should own this profile.

Default value: $::websphere_application_server::user

group

Data type: Any

The group that should own this profile.

Default value: $::websphere_application_server::group

dmgr_host

Data type: Any

The address for the DMGR host.

Default value: undef

dmgr_port

Data type: Any

The SOAP port that should be used for federation. You normally don't need to specify this, as it's handled by exporting and collecting resources.

Default value: undef

template_path

Data type: Any

Should point to the full path to profile templates for creating the profile.

Default value: undef

options

Data type: Any

The options that are passed to manageprofiles.sh to create the profile. If you specify a value for options, none of the defaults are used. Defaults to '-create -profileName ${profile_name} -profilePath ${profile_base}/${profile_name} -templatePath ${_template_path} -nodeName ${node_name} -hostName ${::fqdn} -federateLater true -cellName standalone' For application servers, the default cell name is standalone. Upon federation (which we aren't doing as part of the profile creation), the application server federates with the specified cell.

Default value: undef

manage_federation

Data type: Any

Specifies whether federation should be managed by this defined type or not. If not, the user is responsible for federation. The websphere_federate type is used to handle the federation. Federation, by default, requires a data file to have been exported by the DMGR host and collected by the application server. This defined type collects any exported datafiles that match the DMGR host and cell.

Default value: true

manage_service

Data type: Any

Specifies whether the service for the app profile should be managed by this defined type instance. In IBM terms, this is startNode.sh and stopNode.sh.

Default value: true

manage_sdk

Data type: Any

Specifies whether SDK versions should be managed by this defined type instance or not. Essentially, when managed here, it sets the default SDK for servers created under this profile. This is only relevant if manage_federation is true.

Default value: false

sdk_name

Data type: Any

The SDK name to set if manage_sdk is true. This parameter is required if manage_sdk is true. Example: 1.71_64. Refer to the details for the websphere_sdk resource type for more information. This is only relevant if manage_federation and manage_sdk are true.

Default value: undef

wsadmin_user

Data type: Any

Optional. The username for wsadmin authentication if security is enabled.

Default value: undef

wsadmin_pass

Data type: Any

Optional. The password for wsadmin authentication if security is enabled.

Default value: undef

websphere_application_server::profile::dmgr

Manages a DMGR profile.

Parameters

The following parameters are available in the websphere_application_server::profile::dmgr defined type.

instance_base

Data type: Any

Required. The full path to the installation of WebSphere that this profile should be created under. The IBM default is '/opt/IBM/WebSphere/AppServer'.

cell

Data type: Any

Required. The cell name to create. For example: 'CELL_01'.

node_name

Data type: Any

Required. The name for this "node". For example: 'dmgrNode01'.

profile_base

Data type: Any

Required. The full path to the base directory of profiles. The IBM default is '/opt/IBM/WebSphere/AppServer/profiles'.

Default value: undef

profile_name

Data type: Any

The name of the profile. The directory that gets created will be named this. Example: 'PROFILE_DMGR_01' or 'dmgrProfile01'. Recommended to keep this alpha-numeric.

Default value: $title

user

Data type: Any

The user that should own this profile.

Default value: $::websphere_application_server::user

group

Data type: Any

The group that should own this profile.

Default value: $::websphere_application_server::group

dmgr_host

Data type: Any

The address for this DMGR system. Should be an address that other hosts can connect to.

Default value: $::fqdn

template_path

Data type: Any

Should point to the full path to profile templates for creating the profile.

Default value: undef

options

Data type: Any

String. Defaults to '-create -profileName ${profile_name} -profilePath ${profile_base}/${profile_name} -templatePath ${_template_path} -nodeName ${node_name} -hostName ${::fqdn} -cellName ${cell}'. These are the options that are passed to manageprofiles.sh to create the profile.

Default value: undef

manage_service

Data type: Any

Specifies whether the service for the DMGR profile should be managed by this defined type instance. In IBM terms, this is startManager.sh and stopManager.sh.

Default value: true

manage_sdk

Data type: Any

Specifies whether SDK versions should be managed by this defined type instance. When managed here, it sets the default SDK for servers created under this profile.

Default value: false

sdk_name

Data type: Any

The SDK name to set if manage_sdk is true. This parameter is required if manage_sdk is true. By default, it has no value set. Example: 1.71_64. Refer to the details for the websphere_sdk resource type for more information.

Default value: undef

collect_nodes

Data type: Any

Specifies whether to collect exported websphere_node resources. This is useful for instances where unmanaged servers export websphere_node resources to dynamically add themselves to a cell. Refer to the details for the websphere_node resource type for more information.

Default value: true

collect_web_servers

Data type: Any

Specifies whether to collect exported websphere_web_server resources. This is useful for instances where IHS servers export websphere_web_server resources to dynamically add themselves to a cell. Refer to the details for the websphere_web_server resource type for more information

Default value: true

collect_jvm_logs

Data type: Any

Specifies whether to collect exported websphere_jvm_log resources. This is useful for instances where application servers export websphere_jvm_log resources to manage their JVM logging properties. Refer to the details for the websphere_jvm_log resource type for more information.

Default value: true

wsadmin_user

Data type: Any

Optional. The username for wsadmin authentication if security is enabled.

Default value: undef

wsadmin_pass

Data type: Any

Optional. The password for wsadmin authentication if security is enabled.

Default value: undef

websphere_application_server::profile::service

Manages the node service for WAS profiles.

Parameters

The following parameters are available in the websphere_application_server::profile::service defined type.

type

Data type: Any

Specifies the type of service. Valid values are 'dmgr' and 'app'. DMGR profiles are managed via IBM's startManager and stopManager scripts. Application servers are managed via the startNode and stopNode scripts.

profile_base

Data type: Any

Required. The full path to the base directory of profiles. The IBM default is '/opt/IBM/WebSphere/AppServer/profiles'.

profile_name

Data type: Any

The name of the profile. The directory that gets created will be named this. Example: 'PROFILE_APP_01' or 'appProfile01'. Recommended to keep this alpha-numeric.

Default value: $title

user

Data type: Any

The user that should own this profile.

Default value: 'root'

ensure

Data type: Any

Specifies the state of the service. Valid values are 'running' and 'stopped'.

Default value: 'running'

start

Data type: Any

Specifies a command to start the service with. This differs between DMGR hosts and Application Servers.

On a DMGR, the default is:

/bin/su - ${user} -c '${profile_base}/${profile_name}/bin/startManager.sh -profileName ${profile_name}'

On an application server, the default is:

/bin/su - ${user} -c '${profile_base}/${profile_name}/bin/startNode.sh'

Default value: undef

stop

Data type: Any

Specifies a command to stop the service with. This differs between DMGR hosts and Application Servers.

On a DMGR, the default is:

/bin/su - ${user} -c '${profile_base}/${profile_name}/bin/stopManager.sh -profileName ${profile_name}'

On an application server, the default is:

/bin/su - ${user} -c '${profile_base}/${profile_name}/bin/stopNode.sh'

Default value: undef

status

Data type: Any

Specifies a command to check the status of the service with. This differs between DMGR hosts and Application Servers.

On a DMGR, the default is:

/bin/su - ${user} -c '${profile_base}/${profile_name}/bin/serverStatus.sh dmgr -profileName ${profile_name} | grep -q STARTED'

On an application server, the default is:

/bin/su - ${user} -c '${profile_base}/${profile_name}/bin/serverStatus.sh nodeagent -profileName ${profile_name} | grep -q STARTED'

Default value: undef

restart

Data type: Any

Specifies a command to restart the service with. By default, we do not define anything. Instead, Puppet will stop the service and start the service to restart it.

Default value: undef

wsadmin_user

Data type: Any

Optional. The username for wsadmin authentication if security is enabled.

Default value: undef

wsadmin_pass

Data type: Any

Optional. The password for wsadmin authentication if security is enabled.

Default value: undef

Resource types

websphere_app_server

Manage the existence of WebSphere Application Servers'

Properties

The following properties are available in the websphere_app_server type.

ensure

Valid values: present, absent

The basic property that the resource should be in.

Default value: present

Parameters

The following parameters are available in the websphere_app_server type.

dmgr_profile

Required. The name of the DMGR profile to create this application server under.

Examples: PROFILE_DMGR_01 or dmgrProfile01"

profile

Optional. The profile of the server to use for executing wsadmin commands. Will default to dmgr_profile if not set.

name

namevar

The name of the application server to create or manage.

node_name

Required. The name of the node to create this server on. Refer to the websphere_node type for managing the creation of nodes.

profile_base

Required. The full path to the profiles directory where the dmgr_profile can be found. The IBM default is /opt/IBM/WebSphere/AppServer/profiles

user

Optional. The user to run the wsadmin command as. Defaults to "root"

Default value: root

wsadmin_user

Optional. The username for wsadmin authentication if security is enabled.

wsadmin_pass

Optional. The password for wsadmin authentication if security is enabled.

websphere_cluster

Manages the creation or removal of WebSphere server clusters.

Properties

The following properties are available in the websphere_cluster type.

ensure

Valid values: present, absent

The basic property that the resource should be in.

Default value: present

Parameters

The following parameters are available in the websphere_cluster type.

dmgr_profile

Required. The name of the DMGR profile to create this application server under.

Examples: PROFILE_DMGR_01 or dmgrProfile01

profile

Optional. The profile of the server to use for executing wsadmin commands. Will default to dmgr_profile if not set.

name

namevar

The name of the cluster to manage.

profile_base

Required. The full path to the profiles directory where the dmgr_profile can be found. The IBM default is /opt/IBM/WebSphere/AppServer/profiles

user

Optional. The user to run the wsadmin command as. Defaults to "root"

Default value: root

wsadmin_user

Optional. The username for wsadmin authentication if security is enabled.

wsadmin_pass

Optional. The password for wsadmin authentication if security is enabled.

websphere_cluster_member

Manages members of a WebSphere server cluster.

Properties

The following properties are available in the websphere_cluster_member type.

ensure

Valid values: present, absent

The basic property that the resource should be in.

Default value: present

client_inactivity_timeout

Manages the clientInactivityTimeout for the TransactionService

jvm_maximum_heap_size

Manages the maximumHeapSize setting for the cluster member's JVM

Default value: 1024

jvm_verbose_mode_class

Manages the verboseModeClass setting for the cluster member's JVM

Default value: false

jvm_verbose_garbage_collection

Manages the verboseModeGarbageCollection setting for the cluster member's JVM

Default value: false

jvm_verbose_mode_jni

Manages the verboseModeJNI setting for the cluster member's JVM

Default value: false

jvm_initial_heap_size

Manages the initialHeapSize setting for the cluster member's JVM

Default value: 1024

jvm_run_hprof

Manages the runHProf setting for the cluster member's JVM

Default value: false

jvm_hprof_arguments

Manages the hprofArguments setting for the cluster member's JVM

jvm_debug_mode

Manages the debugMode setting for the cluster member's JVM

jvm_debug_args

Manages the debugArgs setting for the cluster member's JVM

jvm_executable_jar_filename

Manages the executableJarFileName setting for the cluster member's JVM

jvm_generic_jvm_arguments

Manages the genericJvmArguments setting for the cluster member's JVM

jvm_disable_jit

Manages the disableJIT setting for the cluster member's JVM

runas_group

Manages the runAsGroup for a cluster member

runas_user

Manages the runAsUser for a cluster member

total_transaction_timeout

Manages the totalTranLifetimeTimeout for the ApplicationServer

threadpool_webcontainer_min_size

Manages the minimumSize setting for the WebContainer ThreadPool

threadpool_webcontainer_max_size

Manages the maximumSize setting for the WebContainer ThreadPool

umask

Manages the ProcessExecution umask for a cluster member

Default value: 022

Parameters

The following parameters are available in the websphere_cluster_member type.

cell

The name of the cell the cluster member belongs to

cluster

The name of the cluster

dmgr_profile

The name of the DMGR profile to manage. E.g. PROFILE_DMGR_01

profile

Optional. The profile of the server to use for executing wsadmin commands. Will default to dmgr_profile if not set.

gen_unique_ports

Specifies whether the genUniquePorts when adding a cluster member

Default value: true

server

namevar

The server to add to the cluster

node_name

Required. The name of the node to add as a cluster member.

profile_base

The absolute path to the profile base directory. E.g. /opt/IBM/WebSphere/AppServer/profiles

replicator_entry

This parameter is inactive.

user

The user to run 'wsadmin' with

Default value: root

dmgr_host

The DMGR host to add this cluster member to.

This is required if you're exporting the cluster member for a DMGR to collect. Otherwise, it's optional.

wsadmin_user

Specifies the username for using 'wsadmin'

wsadmin_pass

Specifies the password for using 'wsadmin'

weight

Manages the cluster member weight (memberWeight) when adding a cluster member

Default value: 2

websphere_cluster_member_service

Manages the a WebSphere cluster member's service.

Properties

The following properties are available in the websphere_cluster_member_service type.

ensure

Valid values: stopped, running, false, true

Aliases: "false"=>"stopped", "true"=>"running"

Valid values: running or stopped

Defaults to running. Specifies whether the service should be running or not.

Parameters

The following parameters are available in the websphere_cluster_member_service type.

cell

The name of the cell the cluster member belongs to

cluster

Required. The cluster that the cluster member belongs to.

dmgr_profile

The name of the DMGR profile to manage. E.g. PROFILE_DMGR_01

profile

Optional. The profile of the server to use for executing wsadmin commands. Will default to dmgr_profile if not set.

name

namevar

The name of the cluster member that this service belongs to.

node_name

Required. The name of the node that this cluster member is on. Refer to the websphere_node type for managing the creation of nodes.

profile_base

The absolute path to the profile base directory. E.g. /opt/IBM/WebSphere/AppServer/profiles

dmgr_host

The DMGR host to add this cluster member service to.

This is required if you're exporting the cluster member for a DMGR to collect. Otherwise, it's optional.

user

Specifies the user to execute wsadmin as

Default value: root

wsadmin_user

Specifies the username for using 'wsadmin'

wsadmin_pass

Specifies the password for using 'wsadmin'

websphere_federate

By default, this resource expects that a data file will be available in Puppet's $vardir containing information about the DMGR cell to federate with.

By default, this module's websphere::profile::dmgr defined type will export a file resource containing this information. The application servers that have declared websphere::profile::appserver will collect that exported resource and place it under ${vardir}/dmgr_${dmgr_host}_${cell}.yaml For example: /var/opt/lib/pe-puppet/dmgr_dmgr.example.com_cell01.yaml This is all automatic behind the scenes.

To federate, the application server needs to know the DMGR SOAP port, which is included in this exported/collected file. Optionally, you may provide it as a parameter value if you're using this resource type directly.

Essentially, the provider for this resource type executes addNode.sh to do the federation.

Properties

The following properties are available in the websphere_federate type.

ensure

Valid values: present, absent

The basic property that the resource should be in.

Default value: present

Parameters

The following parameters are available in the websphere_federate type.

cell

Required. The name of the DMGR cell to federate with

dmgr_host

Required. The dmgr host to federate with

node_name

Required. The node name to federate

profile

namevar

Required. The profile to federate

dmgr_profile

Optional. The dmgr_profile of the server to use for executing wsadmin commands. Will default to profile if not set.

profile_base

The base directory that profiles are stored. Example: /opt/IBM/WebSphere/AppServer/profiles

soap_port

The soap port to connect to for federation

username

The username for federation (for addNode.sh)

password

The password for federation (for addNode.sh)

options

Custom options to pass to addNode or removeNode.sh

user

User to run the federation commands with

Default value: root

wsadmin_user

Specifies the username for using 'wsadmin'

wsadmin_pass

Specifies the password for using 'wsadmin'

websphere_jdbc_datasource

Manages datasources.

Examples

Create a datasource at the node scope
websphere_jdbc_datasource { 'Puppet Test':
  ensure                        => 'present',
  dmgr_profile                  => 'PROFILE_DMGR_01',
  profile_base                  => '/opt/IBM/WebSphere/AppServer/profiles',
  user                          => 'webadmin',
  scope                         => 'node',
  cell                          => 'CELL_01',
  node_name                     => 'appNode01',
  server                        => 'AppServer01',
  jdbc_provider                 => 'Puppet Test',
  jndi_name                     => 'myTest',
  data_store_helper_class       => 'com.ibm.websphere.rsadapter.Oracle11gDataStoreHelper',
  container_managed_persistence => true,
  url                           => 'jdbc:oracle:thin:@//localhost:1521/sample',
  description                   => 'Created by Puppet',
}

Properties

The following properties are available in the websphere_jdbc_datasource type.

ensure

Valid values: present, absent

The basic property that the resource should be in.

Default value: present

Parameters

The following parameters are available in the websphere_jdbc_datasource type.

name

namevar

The name of the datasource

dmgr_profile

The dmgr profile that this should be created under" Example: dmgrProfile01"

profile

Optional. The profile of the server to use for executing wsadmin commands. Will default to dmgr_profile if not set.

profile_base

The base directory that profiles are stored. Basically, where can we find the 'dmgr_profile' so we can run 'wsadmin'

Example: /opt/IBM/WebSphere/AppServer/profiles"

user

The user to run 'wsadmin' with

Default value: root

node_name

The name of the node to create this application server on

server

The name of the server to create this application server on

cluster

The name of the cluster to create this application server on

cell

The name of the cell to create this application server on

scope

The scope to manage the JDBC Datasource at. Valid values are: node, server, cell, or cluster

jdbc_provider

The name of the JDBC Provider to use.

jndi_name

The JNDI name. This corresponds to the wsadmin argument '-jndiName'

Example: 'jdbc/foo'

data_store_helper_class

Example: 'com.ibm.websphere.rsadapter.Oracle11gDataStoreHelper'

container_managed_persistence

Valid values: true, false

Use this data source in container managed persistence (CMP)

Boolean: true or false

Default value: true

component_managed_auth_alias

The alias used for database authentication at run time. This alias is only used when the application resource reference is using res-auth=Application.

String: Optional

url

JDBC URL for Oracle providers.

This is only relevant when the 'data_store_helper_class' is: 'com.ibm.websphere.rsadapter.Oracle11gDataStoreHelper'

Example: 'jdbc:oracle:thin:@//localhost:1521/sample'

description

A description for the data source

db2_driver

The driver for DB2.

This only applies when the 'data_store_helper_class' is 'com.ibm.websphere.rsadapter.DB2UniversalDataStoreHelper'

database

The database name for DB2 and Microsoft SQL Server.

This is only relevant when the 'data_store_helper_class' is one of: 'com.ibm.websphere.rsadapter.DB2UniversalDataStoreHelper' 'com.ibm.websphere.rsadapter.MicrosoftSQLServerDataStoreHelper'

db_server

The database server address.

This is only relevant when the 'data_store_helper_class' is one of: 'com.ibm.websphere.rsadapter.DB2UniversalDataStoreHelper' 'com.ibm.websphere.rsadapter.MicrosoftSQLServerDataStoreHelper'

db_port

The database server port.

This is only relevant when the 'data_store_helper_class' is one of: 'com.ibm.websphere.rsadapter.DB2UniversalDataStoreHelper' 'com.ibm.websphere.rsadapter.MicrosoftSQLServerDataStoreHelper'

wsadmin_user

The username for wsadmin authentication

wsadmin_pass

The password for wsadmin authentication

websphere_jdbc_provider

Manages the existence of a WebSphere JDBC provider. The current provider does not manage parameters post-creation.

Examples

Create a JDBC provider
websphere_jdbc_provider { 'Puppet Test':
  ensure         => 'present',
  dmgr_profile   => 'PROFILE_DMGR_01',
  profile_base   => '/opt/IBM/WebSphere/AppServer/profiles',
  user           => 'webadmin',
  scope          => 'cell',
  cell           => 'CELL_01',
  dbtype         => 'Oracle',
  providertype   => 'Oracle JDBC Driver',
  implementation => 'Connection pool data source',
  description    => 'Created by Puppet',
  classpath      => '${ORACLE_JDBC_DRIVER_PATH}/ojdbc6.jar',
}

Properties

The following properties are available in the websphere_jdbc_provider type.

ensure

Valid values: present, absent

The basic property that the resource should be in.

Default value: present

Parameters

The following parameters are available in the websphere_jdbc_provider type.

dmgr_profile

Required. The name of the DMGR profile that this provider should be managed under.

profile

Optional. The profile of the server to use for executing wsadmin commands. Will default to dmgr_profile if not set.

name

namevar

The name of the provider.

profile_base

Required. The full path to the profiles directory where the dmgr_profile can be found. The IBM default is /opt/IBM/WebSphere/AppServer/profiles

user

Optional. The user to run the wsadmin command as. Defaults to 'root'

Default value: root

node_name

Required if scope is server or node.

server

Required if scope is server.

cluster

Required if scope is cluster.

cell

Required. The cell that this provider should be managed under.

scope

The scope to manage the JDBC Provider at. Valid values are: node, server, cell, or cluster

dbtype

The type of database for the JDBC Provider. This corresponds to the wsadmin argument "-databaseType" Examples: DB2, Oracle

Consult IBM's documentation for the types of valid databases.

providertype

The provider type for this JDBC Provider. This corresponds to the wsadmin argument "-providerType"

Examples: "Oracle JDBC Driver" "DB2 Universal JDBC Driver Provider" "DB2 Using IBM JCC Driver"

Consult IBM's documentation for valid provider types.

implementation

The implementation type for this JDBC Provider. This corresponds to the wsadmin argument "-implementationType"

Examples: "Connection pool data source"

Consult IBM's documentation for valid implementation types.

description

An optional description for this provider

classpath

The classpath for this provider. This corresponds to the wsadmin argument "-classpath"

Examples: "${ORACLE_JDBC_DRIVER_PATH}/ojdbc6.jar" "${DB2_JCC_DRIVER_PATH}/db2jcc4.jar ${UNIVERSAL_JDBC_DRIVER_PATH}/db2jcc_license_cu.jar"

Consult IBM's documentation for valid classpaths.

nativepath

The nativepath for this provider. This corresponds to the wsadmin argument "-nativePath"

This can be blank.

Examples: "${DB2UNIVERSAL_JDBC_DRIVER_NATIVEPATH}"

Consult IBM's documentation for valid native paths.

wsadmin_user

The username for wsadmin authentication

wsadmin_pass

The password for wsadmin authentication

websphere_jvm_log

This manages a WebSphere JVM Logging Properties'

Properties

The following properties are available in the websphere_jvm_log type.

out_filename

The file System.out filename. Can include WebSphere variables

err_filename

The file System.err filename. Can include WebSphere variables

out_rollover_type

Valid values: size, SIZE, time, TIME, both, BOTH

Type of log rotation to enable. Must be size, time, or both

err_rollover_type

Valid values: size, SIZE, time, TIME, both, BOTH

Type of log rotation to enable. Must be size, time, or both

out_rollover_size

Filesize in MB for log rotation

err_rollover_size

Filesize in MB for log rotation

out_maxnum

Maximum number of historical log files. 1-200

err_maxnum

Maximum number of historical log files. 1-200

out_start_hour

Start time for time-based log rotation. 1-24

err_start_hour

Start time for time-based log rotation. 1-24

out_rollover_period

Time period (log repeat time) for time-based log rotation. 1-24

err_rollover_period

Time period (log repeat time) for time-based log rotation. 1-24

Parameters

The following parameters are available in the websphere_jvm_log type.

scope

Valid values: node, NODE, server, SERVER

The scope for the variable. Valid values: node or server

server

namevar

The server in the scope for this variable.

cell

namevar

Required. The cell that the node or server belongs to.

node_name

namevar

Required. The node to manage properties on.

profile

The profile to run 'wsadmin' under. This can be an appserver profile or a DMGR profile as long as it can run 'wsadmin'.

Examples: dmgrProfile01, PROFILE_APP_001

dmgr_profile

The profile to run 'wsadmin' under. This can be an appserver profile or a DMGR profile as long as it can run 'wsadmin'.

Examples: dmgrProfile01, PROFILE_APP_001

profile_base

The base directory that profiles are stored. Example: /opt/IBM/WebSphere/AppServer/profiles

user

The user to run 'wsadmin' with

Default value: root

wsadmin_user

The username for wsadmin authentication

wsadmin_pass

The password for wsadmin authentication

websphere_node

In wsadmin terms using jython, this basically translates to the AdminTask.createUnmanagedNode task.

Examples

Add an IHS Server node to CELL_01
websphere_node { 'IHS Server':
  node_name    => 'ihsServer01',
  os           => 'linux',
  hostname     => 'ihs01.example.com',
  cell         => 'CELL_01',
  dmgr_profile => 'PROFILE_DMGR_01',
  profile_base => '/opt/IBM/WebSphere/AppServer/profiles',
  user         => 'webadmins',
}
Exported resource
An IHS server can export a resource:

@@websphere_node { $::fqdn:
  node_name => $::fqdn,
  os        => 'linux',
  hostname  => $::fqdn,
  cell      => 'CELL_01',

A DMGR can collect it and append its profile information to it:

Websphere_node <<| cell == 'CELL_01' |>> {
  dmgr_profile => 'PROFILE_DMGR_01',
  profile_base => '/opt/IBM/Websphere/AppServer/profiles',
  user         => 'webadmins',
}

Properties

The following properties are available in the websphere_node type.

ensure

Valid values: present, absent

The basic property that the resource should be in.

Default value: present

Parameters

The following parameters are available in the websphere_node type.

dmgr_profile

The dmgr profile that this node should be managed under Example: dmgrProfile01

profile

Optional. The profile of the server to use for executing wsadmin commands. Will default to dmgr_profile if not set.

hostname

The hostname for the unmanaged node.

node_name

namevar

The name of the node to manage. Defaults to the name parameter value.

os

The node's operating system. Defaults to 'linux'

Default value: linux

cell

The cell that this node should be a part of.

The purpose of this parameter is so that a DMGR instance can determine which nodes belong to it when collecting exported resources.

profile_base

The base directory that profiles are stored.

Example: /opt/IBM/WebSphere/AppServer/profiles"

user

The user to run 'wsadmin' with

Default value: root

dmgr_host

The DMGR host to add this node to.

This is required if you're exporting the node for a DMGR to collect. Otherwise, it's optional.

wsadmin_user

The username for wsadmin authentication

wsadmin_pass

The password for wsadmin authentication

websphere_sdk

This manages WebSphere SDK/JDK versions'

Properties

The following properties are available in the websphere_sdk type.

sdkname

The name of the SDK to modify. Example: 1.7.1_64

command_default

Manages the SDK name that script commands in the app_server_root/bin, app_client_root/bin, or plugins_root/bin directory are enabled to use when no profile is specified by the command and when no profile is defaulted by the command.

new_profile_default

Manages the SDK name that is currently configured for all profiles that are created with the manageprofiles command. The -sdkname parameter specifies the default SDK name to use. The sdkName value must be an SDK name that is enabled for the product installation.

Parameters

The following parameters are available in the websphere_sdk type.

server

The server in the scope for this variable. This can be a specific server or 'all' to affect all servers

'all' corresponds to the 'managesdk.sh' option '-enableServers'

node_name

Required: The node name this sdk is to be managed on.

dmgr_profile

Optional: The dmgr_profile to use as base profile. Will use profile if unset.

profile_base

The profile base directory

profile

The profile to modify. Specify 'all' for all profiles. 'all' corresponds to the 'managesdk.sh' option '-enableProfileAll'

A specific profile name can also be provided. Example: PROFILE_APP_001. This corresponds to 'managesdk.sh' options -enableProfile -profileName

instance_base

The base directory that WebSphere is installed. Example: /opt/IBM/WebSphere/AppServer/

user

The user to run 'wsadmin' with

Default value: root

wsadmin_user

The username for authentication if security is enabled.

wsadmin_pass

The username for authentication if security is enabled.

username

The username for 'managesdk.sh' authentication

password

The password for 'managesdk.sh' authentication

websphere_variable

This manages a WebSphere environment variable

Properties

The following properties are available in the websphere_variable type.

ensure

Valid values: present, absent

The basic property that the resource should be in.

Default value: present

value

The value the variable should be set to.

description

A description for the variable

Default value: Managed by Puppet

Parameters

The following parameters are available in the websphere_variable type.

variable

Required. The name of the variable to create/modify/remove. For example, LOG_ROOT

scope

The scope for the variable. Valid values: cell, cluster, node, or server

server

The server in the scope for this variable

cell

The cell that this variable should be set in

node_name

The node that this variable should be set under

cluster

The cluster that a variable should be set in

profile

The profile to run 'wsadmin' under

dmgr_profile

The dmgr profile that this variable should be set under. Basically, where are we finding wsadmin

This is synonomous with the 'profile' parameter.

Example: dmgrProfile01"

profile_base

The base directory that profiles are stored. Example: /opt/IBM/WebSphere/AppServer/profiles

user

The user to run 'wsadmin' with

Default value: root

wsadmin_user

The username for wsadmin authentication

wsadmin_pass

The password for wsadmin authentication

websphere_web_server

Manages WebSphere web servers in a cell.

Properties

The following properties are available in the websphere_web_server type.

ensure

Valid values: present, absent

The basic property that the resource should be in.

Default value: present

Parameters

The following parameters are available in the websphere_web_server type.

dmgr_profile

The dmgr profile that this cluster belongs to. Example: dmgrProfile01

profile

Optional. The profile of the server to use for executing wsadmin commands. Will default to dmgr_profile if not set.

cell

The cell that this web server should belong to. This is used for adding IHS instances to a WebSphere cell.

This is needed for a DMGR to know what web servers belong to it.

name

namevar

The name of the Web Server

node_name

The name of the node to create this web server on

propagate_keyring

Propagate the plugin keyring from the DMGR to the server when the server is created.

Default value: false

config_file

The full path to the HTTP config file

template

The template to use for creating the web server. Defaults to IHS

Default value: IHS

access_log

The path for the access log

error_log

The path for the error log

web_port

The port for the HTTP server. Defaults to '80'

Default value: 80

install_root

The install root of the HTTP server location. For example: /opt/IBM/HTTPServer

Default value: /opt/IBM/HTTPServer

protocol

The protocol for the HTTP server. Defaults to 'HTTP'

Default value: HTTP

plugin_base

The full path to the plugin base directory on the HTTP server Example: /opt/IBM/HTTPServer/Plugins

web_app_mapping

Application mapping to the Web server. 'ALL' or 'NONE'. Defaults to 'NONE'

Default value: NONE

admin_port

Administration Server Port. Defaults to '8008'

Default value: 8008

admin_user

IBM Administration Server username. Required.

admin_pass

IBM Administration Server password. Required.

admin_protocol

Protocol for administration. 'HTTP' or 'HTTPS'. Defaults to 'HTTP'

Default value: HTTP

profile_base

The base directory that profiles are stored. Example: /opt/IBM/WebSphere/AppServer/profiles

user

The user to run 'wsadmin' with

Default value: root

dmgr_host

The DMGR host to add this web server to.

This is required if you're exporting the web server for a DMGR to collect. Otherwise, it's optional.

wsadmin_user

The username for wsadmin authentication

wsadmin_pass

The password for wsadmin authentication