Puppet Class: wls_profile::weblogic
- Inherits:
- wls_profile
- Defined in:
- manifests/weblogic.pp
Summary
Overview
+--
+
wls_profile::weblogic
This is a highly customizable Puppet profile class to define a WebLogic
Software and its requirements on your system. At its core just
adding:contain wls_profile::weblogic
Is enough to get a
WebLogic 12.2.1.3 installed on your system. But sometimes you have specific
uses cases that are not handled well by the standard classes. This profile
class allows you to add your own code to the execution.## StagesDefining
and starting a WebLogic Admin Server on you system goes through several
stages(These are not puppet stages):- sysctl Set required sysctl
parameters- limits Set OS
security limits- packages
Install required packages- groups_and_users Create
required OS users and groups- ssh_setup Setup SSH for
accounts- firewall Setup the
firewall- java_software
Install the java software- wls_software Install the
WebLogic software- wls_patches Install the
WebLogic patchesAll these stages have a default implementation. This
implementation is suitable to get started with. These classed all have
parameters you can customize through hiera values. The defaults are
specified in the module's data/default.yaml
file. ##
before classesBut sometimes this is not enough, and you would like to add
some extra definitions, you can, for example, add a Puppet class to be
executed after the packages
stage is done and before the
groups_and_users
is done. You can do this by adding the next
line to your yaml data:yamlwls_profile::weblogic::groups_and_users:
my_profile::my_extra_class
## after classesYou can do the same when
you want to add code after one of the stage
classes:yamlwls_profile::weblogic::firewall:
my_profile::my_extra_class
## SkippingSometimes organizations use
different modules and mechanisms to implement a feature, and you want to
skip the class:yamlwls_profile::weblogic::java_software:
skip
## ReplacingOr provide your own
implementation:yamlwls_profile::weblogic::wls_datasources:
my_profile::my_own_implementation
This mechanism can be used for all
named stages and makes it easy to move from an easy setup with a running
standard WebLogic software installation to a fully customized setup using a
lot of your own classes plugged in.Look at the description of the stages
and their properties.
–++–
252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 |
# File 'manifests/weblogic.pp', line 252
class wls_profile::weblogic (
Optional[String] $sysctl = undef,
Optional[String] $limits = undef,
Optional[String] $packages = undef,
Optional[String] $groups_and_users = undef,
Optional[String] $ssh_setup = undef,
Optional[String] $firewall = undef,
Optional[String] $java_software = undef,
Optional[String] $wls_software = undef,
Optional[String] $wls_patches = undef,
Optional[String] $before_sysctl = undef,
Optional[String] $before_limits = undef,
Optional[String] $before_packages = undef,
Optional[String] $before_groups_and_users = undef,
Optional[String] $before_ssh_setup = undef,
Optional[String] $before_firewall = undef,
Optional[String] $before_java_software = undef,
Optional[String] $before_wls_software = undef,
Optional[String] $before_wls_patches = undef,
Optional[String] $after_sysctl = undef,
Optional[String] $after_limits = undef,
Optional[String] $after_packages = undef,
Optional[String] $after_groups_and_users = undef,
Optional[String] $after_ssh_setup = undef,
Optional[String] $after_firewall = undef,
Optional[String] $after_java_software = undef,
Optional[String] $after_wls_software = undef,
Optional[String] $after_wls_patches = undef,
) inherits wls_profile {
easy_type::staged_contain([
'wls_profile::weblogic::sysctl',
'wls_profile::weblogic::limits',
'wls_profile::weblogic::packages',
'wls_profile::weblogic::groups_and_users',
'wls_profile::weblogic::ssh_setup',
'wls_profile::weblogic::firewall',
'wls_profile::weblogic::java_software',
'wls_profile::weblogic::wls_software',
'wls_profile::weblogic::wls_patches',
])
}
|