control
Overview
This defined type allows you to control a admin server or a managed server during s Puppet run. It allows you to stop, start or restart a managed server. Here is an example on how you could use this:
ora_install::control{'startWLSAdminServer12c':
domain_name => "Wls12c",
server_type => 'admin', # admin|managed
target => 'Server', # Server|Cluster
server => 'AdminServer',
action => 'start',
weblogic_home_dir => "/opt/oracle/middleware12c/wlserver",
jdk_home_dir => "/usr/java/jdk1.7.0_45",
weblogic_user => "weblogic",
weblogic_password => "weblogic1",
adminserver_address => 'localhost',
adminserver_port => 7001,
nodemanager_port => 5556,
nodemanager_secure_listener => true,
os_user => "oracle",
os_group => "dba",
download_dir => "/data/install",
}
Experience the Power of Puppet for WebLogic
If you want to play and experiment with Puppet and WebLogic, please take a look at our playgrounds. At our playgrounds, we provide you with a pre-installed environment, where you experiment fast and easy.

Attributes
Attribute Name | Short Description |
---|---|
action | Action to perform. |
adminserver_address | The address of the admin server. |
adminserver_port | The IP port the admin server is listening on. |
custom_trust | Determine if you want to use a custom trust or not. |
domain_name | The domain name. |
download_dir | The directory where the Puppet software puts all downloaded files. |
jdk_home_dir | The homdirectory for the Java evelopment Kit. |
jsse_enabled | Determine if you want to enable JSSE security. |
logoutput | log the outputs of Puppet exec or not. |
middleware_home_dir | Middleware home directory. |
nodemanager_port | The IP port the nodemanager is listening on. |
nodemanager_secure_listener | Use SSL for listening. |
os_group | The os group used to install and run WebLogic. |
os_user | The os user used to install and run WebLogic. |
server | Name of the server you want to control. |
server_type | Type of element you want to control: |
target | Type of target to use: |
trust_keystore_file | File specificiation of the trust keystore. |
trust_keystore_passphrase | Passphrase to use for the trust keystore. |
weblogic_home_dir | Directory to use as WebLogic home. |
weblogic_password | The password of the base WebLogic user name. |
weblogic_user | The base WebLogic username to configure. |
wls_domains_dir | The root directory where all domain directories reside in. |
middleware_home_dir
Middleware home directory.
Type: Stdlib::Absolutepath
Default:lookup({name => 'wls_middleware_home_dir'})
weblogic_home_dir
Directory to use as WebLogic home.
Type: Stdlib::Absolutepath
Default:lookup({name => 'wls_weblogic_home_dir'})
jdk_home_dir
The homdirectory for the Java evelopment Kit.
Type: Stdlib::Absolutepath
Default:lookup({name => 'wls_jdk_home_dir'})
wls_domains_dir
The root directory where all domain directories reside in.
Type: Optional[ Stdlib::Absolutepath ]
Default:lookup({name =>'wls_domains_dir', default_value => undef})
domain_name
The domain name.
Type: String[1]
Default:lookup({name => 'domain_name'})
server_type
Type of element you want to control:
Valid values are:
- admin
- managed
- ohs_standalone
Type: Enum[ 'admin', 'managed', 'ohs_standalone' ]
Default:'admin'
target
Type of target to use:
Valid values are:
- Server
- Cluster
Type: Enum[ 'Server', 'Cluster' ]
Default:'Server'
server
Name of the server you want to control.
Type: String[1]
Default:'AdminServer'
adminserver_address
The address of the admin server. May be a DNS name or a physical IP address.
Type: String[1]
Default:lookup({name => 'domain_adminserver_address', default_value => 'localhost'})
adminserver_port
The IP port the admin server is listening on.
Type: Integer
Default:lookup({name => 'domain_adminserver_port', default_value => 7001})
nodemanager_secure_listener
Use SSL for listening.
Type: Boolean
Default:true
nodemanager_port
The IP port the nodemanager is listening on.
Type: Integer
Default:lookup({name => 'domain_nodemanager_port', default_value => 5556})
action
Action to perform.
Valid values:
- start
- running
- stop
- abort
Type: Enum[ 'start', 'running', 'stop', 'abort' ]
Default:'start'
weblogic_user
The base WebLogic username to configure.
Type: String[1]
Default:lookup({name => 'wls_weblogic_user', default_value => 'weblogic'})
weblogic_password
The password of the base WebLogic user name.
Type: Easy_type::Password
Default:lookup({name => 'domain_wls_password'})
jsse_enabled
Determine if you want to enable JSSE security.
Type: Boolean
Default:lookup({name => 'wls_jsse_enabled', default_value => false})
custom_trust
Determine if you want to use a custom trust or not.
Type: Boolean
Default:lookup({name => 'wls_custom_trust', default_value => false})
trust_keystore_file
File specificiation of the trust keystore.
Type: Optional[String[1]]
Default:lookup({name => 'wls_trust_keystore_file', default_value => undef})
trust_keystore_passphrase
Passphrase to use for the trust keystore.
Type: Optional[Easy_type::Password]
Default:lookup({name => 'wls_trust_keystore_passphrase', default_value => undef})
os_user
The os user used to install and run WebLogic.
Type: String[1]
Default:lookup({name => 'wls_os_user'})
os_group
The os group used to install and run WebLogic.
Type: String[1]
Default:lookup({name => 'wls_os_group'})
download_dir
The directory where the Puppet software puts all downloaded files.
Before Puppet can actually use remote files, they must be downloaded first. Puppet uses this directory to put all files in.
The default value is: /install
Type: Stdlib::Absolutepath
Default:lookup({name => 'wls_download_dir'})
logoutput
log the outputs of Puppet exec or not.
When you specify true
Puppet will log all output of exec
types.
Valid values are:
true
false
on_failure
Type: Variant[ Boolean, Enum[ 'on_failure' ] ]
Default:lookup({name => 'logoutput', default_value => 'on_failure'})