Overview

This defined type allows you copy a domain to an other WebLogic node. It is used in conjunction with ora_install::packdomain to build WebLogic clusters. Here is an example on how you could use this:

ora_install::copydomain{"Wls12c":
  version                => 1212,
  weblogic_home_dir      => "/opt/oracle/middleware12c/wlserver",
  middleware_home_dir    => "/opt/oracle/middleware12c",
  jdk_home_dir           => "/usr/java/jdk1.7.0_45",
  wls_domains_dir        => "/opt/oracle/domains",
  wls_apps_dir           => "/opt/oracle/applications",
  domain_name            => "Wls12c",
  os_user                => "oracle",
  os_group               => "dba",
  download_dir           => "/data/install",
  log_dir                => "/var/log/weblogic",
  logoutput             => true,
  use_ssh                => false,
  domain_pack_dir        => /mnt/fmw_share,
  adminserver_address    => "10.10.10.10",
  adminserver_port       => 7001,
  weblogic_user          => "weblogic",
  weblogic_password      => "weblogic1",
  setinternalappdeploymentondemandenable => false,
  setconfigbackupenabled                 => true,
  setarchiveconfigurationcount           => 10,
  setconfigurationaudittype              => 'logaudit',
}

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.

For WebLogic   here at our playground...

Attributes

Attribute Name Short Description
administration_port The common secure administration port for this WebLogic Server domain.
administration_port_enabled Specifies whether the domain-wide administration port should be enabled for this WebLogic Server domain.
adminserver_address The address of the admin server.
adminserver_port The IP port the admin server is listening on.
adminserver_ssl_port SSL port to use for the Admin server.
copy_script The user provided copy script to use for copying the packed domain.
custom_trust Determine if you want to use a custom trust or not.
domain_name The domain name.
domain_pack_dir Directory where to put the packed directory.
download_dir The directory where the Puppet software puts all downloaded files.
extra_arguments Extra java arguments to use.
jdk_home_dir The homdirectory for the Java evelopment Kit.
jsse_enabled Determine if you want to enable JSSE security.
log_dir Directory to use for logging.
logoutput log the outputs of Puppet exec or not.
middleware_home_dir Middleware home directory.
os_group The os group used to install and run WebLogic.
os_user The os user used to install and run WebLogic.
puppet_os_user The Puppet OS user to use.
server_start_mode Startmode to use.
trust_keystore_file File specificiation of the trust keystore.
trust_keystore_passphrase Passphrase to use for the trust keystore.
use_ssh Boolean value specifying if you want to use ssh to copy the packed file.
user_config_file This parameter is not used (yet).
user_key_file This parameter is not used (yet).
version The version that is installed in the used Oracle home.
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_apps_dir The root directory where all aplication directories reside in.
wls_domains_dir The root directory where all domain directories reside in.
wls_domains_file file containing the current domains available on the system.

version

The version that is installed in the used Oracle home.

Puppet uses this value to decide on version specific actions.

Type: Wls_install::Versions

Default:lookup({name => 'wls_version', default_value => 1111})

Back to overview of copydomain

middleware_home_dir

Middleware home directory.

Type: Stdlib::Absolutepath

Default:lookup({name => 'wls_middleware_home_dir'})

Back to overview of copydomain

weblogic_home_dir

Directory to use as WebLogic home.

Type: Stdlib::Absolutepath

Default:lookup({name => 'wls_weblogic_home_dir'})

Back to overview of copydomain

jdk_home_dir

The homdirectory for the Java evelopment Kit.

Type: Stdlib::Absolutepath

Default:lookup({name => 'wls_jdk_home_dir'})

Back to overview of copydomain

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})

Back to overview of copydomain

wls_apps_dir

The root directory where all aplication directories reside in.

Type: Optional[Stdlib::Absolutepath]

Default:lookup({name => 'wls_apps_dir', default_value => undef})

Back to overview of copydomain

use_ssh

Boolean value specifying if you want to use ssh to copy the packed file. You can only use this when the ssh keys are already provided. Type: Boolean

Default:true

Back to overview of copydomain

domain_pack_dir

Directory where to put the packed directory.

Type: Optional[Stdlib::Absolutepath]

Default:undef

Back to overview of copydomain

domain_name

The domain name.

Type: String[1]

Default:lookup({name => 'domain_name'})

Back to overview of copydomain

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'})

Back to overview of copydomain

adminserver_port

The IP port the admin server is listening on.

Type: Integer

Default:lookup({name => 'domain_adminserver_port', default_value => 7001})

Back to overview of copydomain

administration_port

The common secure administration port for this WebLogic Server domain. (Requires you to enable the administration port.) Type: Optional[Integer]

Default:undef

Back to overview of copydomain

administration_port_enabled

Specifies whether the domain-wide administration port should be enabled for this WebLogic Server domain. Because the administration port uses SSL, enabling the administration port requires that SSL must be configured for all servers in the domain.

The domain-wide administration port enables you to start a WebLogic Server instance in STANDBY state. It also allows you to separate administration traffic from application traffic in your domain. Because all servers in the domain must enable or disable the administration port at once, you configure the default administration port settings at the domain level.

If you enable the administration port:

The administration port accepts only connections that specify administrator credentials.

Connections that specify administrator credentials can use only the administration port.

The command that starts managed servers must specify a secure protocol and the administration port: -Dweblogic.management.server=https://admin_server:administration_port Type: Boolean

Default:false

Back to overview of copydomain

adminserver_ssl_port

SSL port to use for the Admin server.

Type: Optional[Integer]

Default:undef

Back to overview of copydomain

user_config_file

This parameter is not used (yet).

Type: Optional[String[1]]

Default:lookup({name => 'domain_user_config_file', default_value => undef})

Back to overview of copydomain

user_key_file

This parameter is not used (yet).

Type: Optional[String[1]]

Default:lookup({name => 'domain_user_key_file', default_value => undef})

Back to overview of copydomain

weblogic_user

The base WebLogic username to configure.

Type: String[1]

Default:lookup({name => 'wls_weblogic_user', default_value => 'weblogic'})

Back to overview of copydomain

weblogic_password

The password of the base WebLogic user name.

Type: Easy_type::Password

Default:lookup({name => 'domain_wls_password', default_value => undef})

Back to overview of copydomain

os_user

The os user used to install and run WebLogic.

Type: String[1]

Default:lookup({name => 'wls_os_user'})

Back to overview of copydomain

os_group

The os group used to install and run WebLogic.

Type: String[1]

Default:lookup({name => 'wls_os_group'})

Back to overview of copydomain

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'})

Back to overview of copydomain

log_dir

Directory to use for logging.

Type: Optional[Stdlib::Absolutepath]

Default:lookup({name => 'wls_log_dir', default_value => undef})

Back to overview of copydomain

server_start_mode

Startmode to use. This parameter id directly passed to the unpack and start of the domain.

Valid values are:

  • dev
  • prod Type: Enum['dev','prod']

Default:'dev'

Back to overview of copydomain

wls_domains_file

file containing the current domains available on the system.

Type: Optional[String[1]]

Default:undef

Back to overview of copydomain

copy_script

The user provided copy script to use for copying the packed domain.

Type: Optional[String[1]]

Default:undef

Back to overview of copydomain

puppet_os_user

The Puppet OS user to use.

Type: String[1]

Default:'root'

Back to overview of copydomain

jsse_enabled

Determine if you want to enable JSSE security.

Type: Boolean

Default:lookup({name => 'wls_jsse_enabled', default_value => false})

Back to overview of copydomain

custom_trust

Determine if you want to use a custom trust or not.

Type: Boolean

Default:lookup({name => 'wls_custom_trust', default_value => false})

Back to overview of copydomain

trust_keystore_file

File specificiation of the trust keystore.

Type: Optional[String[1]]

Default:lookup({name => 'wls_trust_keystore_file', default_value => undef})

Back to overview of copydomain

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})

Back to overview of copydomain

extra_arguments

Extra java arguments to use.

Type: Optional[String[1]]

Default:lookup({name => 'wls_install::copydomain::extra_arguments', default_value => undef})

Back to overview of copydomain

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'})

Back to overview of copydomain