Puppet Class: wls_profile::node::copy_domain
- Inherits:
- wls_profile
- Defined in:
- manifests/node/copy_domain.pp
Summary
This class is the default implementation to copy the packed domain from the Admin Server, unpack it on the current machine and start the nodemanager.Overview
+--
+
wls_profile::copy_domain
Using hiera, you can customize some of the aspects of this process.
When these customizations aren't enough, you can replace the class with your own class. See wls_profile::node for an explanation on how to do this.
–++–
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
# File 'manifests/node/copy_domain.pp', line 97
class wls_profile::node::copy_domain(
String[1] $domain_name,
Stdlib::Absolutepath
$weblogic_home,
Stdlib::Absolutepath
$log_dir,
Stdlib::Absolutepath
$middleware_home,
Stdlib::Absolutepath
$jdk_home,
Stdlib::Absolutepath
$domains_dir,
String[1] $os_user,
String[1] $os_group,
String[1] $adminserver_address,
String[1] $nodemanager_address,
Integer $nodemanager_wait,
String[1] $weblogic_user,
String[1] $weblogic_password,
Wls_install::Versions
$version = $wls_profile::weblogic_version,
Integer $adminserver_port = $wls_profile::adminserver_port,
) inherits wls_profile {
echo {"WebLogic copy domain ${domain_name} from ${adminserver_address}:${domains_dir}/${domain_name}":
withpath => false,
}
wls_install::copydomain{$domain_name:
domain_name => $domain_name,
version => $version,
weblogic_home_dir => $weblogic_home,
middleware_home_dir => $middleware_home,
jdk_home_dir => $jdk_home,
wls_domains_dir => $domains_dir,
os_user => $os_user,
os_group => $os_group,
download_dir => '/tmp',
log_dir => '/var/log/weblogic',
use_ssh => true,
domain_pack_dir => "${domains_dir}/${domain_name}",
adminserver_address => $adminserver_address,
adminserver_port => $adminserver_port,
weblogic_user => $weblogic_user,
weblogic_password => $weblogic_password,
}
#
# Over here you define the nodemanager. Here you can specify the address
# the nodemanager is running on and the listen address. When you create multiple domains
# with multiple nodemanagers, you have to specify different addresses and/or ports.
#
-> wls_install::nodemanager{"nodemanager for ${domain_name}":
weblogic_home_dir => $weblogic_home,
middleware_home_dir => $middleware_home,
jdk_home_dir => $jdk_home,
download_dir => '/var/tmp/install',
domain_name => $domain_name,
version => $version,
log_dir => $log_dir,
nodemanager_address => $nodemanager_address,
os_user => $os_user,
os_group => $os_group,
sleep => $nodemanager_wait,
}
}
|