Manages WebSphere environment variables.
Under the hood, the included provider is running wsadmin
Manage a variable at node scope on appNode01
. Setting the LOG_ROOT
variable.
websphere_variable { 'appNode01Logs':
ensure => 'present',
variable => 'LOG_ROOT',
value => '/opt/log/websphere/wasmgmtlogs/appNode01',
scope => 'node',
node => 'appNode01',
cell => 'CELL_01',
profile => 'PROFILE_APP_001',
profile_base => '/opt/IBM/WebSphere85/Profiles',
user => 'webadmins',
}
Valid values: present
, absent
Defaults to true
. Specifies whether this variable should exist or not.
Required. The name of the variable to create/modify/remove. For example,
LOG_ROOT
Required. The value that the specified variable should be set to.
Optional. A human-readable description for the variable.
Defaults to "Managed by Puppet"
Required. The scope for the variable.
Valid values are: cell
, cluster
, node
, or server
The server in the scope for this variable.
Required when scope
is server
Required. The cell that this variable should be set in.
The node that this variable should be set under. This is required when scope
is set to node
or server
The cluster that a variable should be set in. This is required when scope is
set to cluster
The profile that can be used to run the wsadmin
command from.
Example: dmgrProfile01
or PROFILE_APP_01
Synonomous with the profile
parameter.
The DMGR profile that this variable should be set under. The wsadmin
tool
will be found here.
Example: dmgrProfile01
or PROFILE_DMGR_001
The name of the resource. This is only used for Puppet to identify the resource and has no influence over the commands used to make modifications or query WebSphere variables.
Required. The full path to the profiles directory where the profile
can
be found. The IBM default is /opt/IBM/WebSphere/AppServer/profiles
Optional. The user to run the wsadmin
command as. Defaults to "root"
Optional. The username for wsadmin
authentication if security is enabled.
Optional. The password for wsadmin
authentication if security is enabled.