This defined type is used to manage the node service for WebSphere profiles.
By default, this defined type is declared from websphere::profile::dmgr
and
websphere::profile::appserver
, so you do not need to declare it yourself.
However, if you need more flexibility, you can declare it yourself (or not at all).
websphere::profile::service { 'dmgrProfile01':
type => 'dmgr',
profile_base => '/opt/IBM/WebSphere/AppServer/profiles',
user => 'webadmin',
}
Required. Specifies the type of service. Valid values are dmgr
and app
DMGR profiles are managed via IBM's startManager
and stopManager
scripts.
Application servers (well, non-DMGR servers) are managed via the startNode
and stopNode
scripts.
Required. The full path to where profiles are stored.
The IBM default is /opt/IBM/WebSphere/AppServer/profiles
The name of the profile that this service runs. Defaults to the resource's title.
Example: PROFILE_APP_01
The user to execute the service commands with. For example, the startNode.sh
script.
Defaults to root
. Typically, the user will match whatever user "owns" the
instance. Refer to the user
parameter for the
websphere::profile::appserver
and websphere::profile::dmgr
types.
Specifies the state of the service. Valid values are running
and stopped
Defaults to running
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'
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'
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'
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.