Resource Type: wls_managedserver
- Defined in:
- lib/puppet/type/wls_managedserver.rb
- Providers:
-
wls_managedserver
Overview
control a managed server or cluster state like running,stop,restart
Type for managed server control like start, running, abort and stop a managed server or a cluster. Also supports ‘subscribe` with `refreshonly` when you only want to execute the restart when something has changed.
Here is an example on how you should use this:
wls_managedserver{'JMSServer1_Wls1036:':
ensure => 'running', #running|start|abort|stop
target => 'Server', #Server|Cluster
server_name => 'JMSServer1',
domain_name => hiera('domain_name'),
os_user => hiera('wls_os_user'),
weblogic_home_dir => hiera('wls_weblogic_home_dir'),
weblogic_user => hiera('wls_weblogic_user'),
weblogic_password => hiera('domain_wls_password'),
jdk_home_dir => hiera('wls_jdk_home_dir'),
adminserver_address => hiera('domain_adminserver_address'),
adminserver_port => hiera('domain_adminserver_port'),
}
Here is an example with ‘refreshonly`. In this example, the restart will only be executed when the domain `Wls1036` is changed. A restart will be executed.
wls_managedserver{'JMSServer1_Wls1036':
ensure => 'restart', #running|start|abort|stop
target => 'Server', #Server|Cluster
server_name => 'JMSServer1',
domain_name => hiera('domain_name'),
os_user => hiera('wls_os_user'),
weblogic_home_dir => hiera('wls_weblogic_home_dir'),
weblogic_user => hiera('wls_weblogic_user'),
weblogic_password => hiera('domain_wls_password'),
jdk_home_dir => hiera('wls_jdk_home_dir'),
adminserver_address => hiera('domain_adminserver_address'),
adminserver_port => hiera('domain_adminserver_port'),
refreshonly => true,
subscribe => Wls_domain['Wls1036'],
}