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::weblogicIs 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_implementationThis 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.

–++–

Parameters:

  • sysctl (Optional[String]) (defaults to: undef)

    Use this value if you want to skip or use your own class for stage sysctl.

    Use your own class

    You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::sysctl: my_module::my_class

    Skip

    You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::sysctl: skip

  • limits (Optional[String]) (defaults to: undef)

    Use this value if you want to skip or use your own class for stage limits.

    Use your own class

    You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::limits: my_module::my_class

    Skip

    You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::limits: skip

  • packages (Optional[String]) (defaults to: undef)

    Use this value if you want to skip or use your own class for stage packages.

    Use your own class

    You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::packages: my_module::my_class

    Skip

    You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::packages: skip

  • groups_and_users (Optional[String]) (defaults to: undef)

    Use this value if you want to skip or use your own class for stage groups_and_users.

    Use your own class

    You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::groups_and_users: my_module::my_class

    Skip

    You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::groups_and_users: skip

  • ssh_setup (Optional[String]) (defaults to: undef)

    Use this value if you want to skip or use your own class for stage ssh_setup.

    Use your own class

    You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::ssh_setup: my_module::my_class

    Skip

    You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::ssh_setup: skip

  • firewall (Optional[String]) (defaults to: undef)

    Use this value if you want to skip or use your own class for stage firewall.

    Use your own class

    You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::firewall: my_module::my_class

    Skip

    You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::firewall: skip

  • java_software (Optional[String]) (defaults to: undef)

    Use this value if you want to skip or use your own class for stage java_software.

    Use your own class

    You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::java_software: my_module::my_class

    Skip

    You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::java_software: skip

  • wls_software (Optional[String]) (defaults to: undef)

    Use this value if you want to skip or use your own class for stage wls_software.

    Use your own class

    You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::wls_software: my_module::my_class

    Skip

    You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::wls_software: skip

  • wls_patches (Optional[String]) (defaults to: undef)

    Use this value if you want to skip or use your own class for stage wls_patches.

    Use your own class

    You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::wls_patches: my_module::my_class

    Skip

    You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::wls_patches: skip

  • before_sysctl (Optional[String]) (defaults to: undef)

    The name of the class you want to execute directly before the sysctl class. You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::before_sysctl: my_module::my_class

  • before_limits (Optional[String]) (defaults to: undef)

    The name of the class you want to execute directly before the limits class. You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::before_limits: my_module::my_class

  • before_packages (Optional[String]) (defaults to: undef)

    The name of the class you want to execute directly before the packages class. You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::before_packages: my_module::my_class

  • before_groups_and_users (Optional[String]) (defaults to: undef)

    The name of the class you want to execute directly before the groups_and_users class. You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::before_groups_and_users: my_module::my_class

  • before_ssh_setup (Optional[String]) (defaults to: undef)

    The name of the class you want to execute directly before the ssh_setup class. You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::before_ssh_setup: my_module::my_class

  • before_firewall (Optional[String]) (defaults to: undef)

    The name of the class you want to execute directly before the firewall class. You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::before_firewall: my_module::my_class

  • before_java_software (Optional[String]) (defaults to: undef)

    The name of the class you want to execute directly before the java_software class. You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::before_java_software: my_module::my_class

  • before_wls_software (Optional[String]) (defaults to: undef)

    The name of the class you want to execute directly before the wls_software class. You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::before_wls_software: my_module::my_class

  • before_wls_patches (Optional[String]) (defaults to: undef)

    The name of the class you want to execute directly before the wls_patches class. You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::before_wls_patches: my_module::my_class

  • after_sysctl (Optional[String]) (defaults to: undef)

    The name of the class you want to execute directly after the sysctl class. You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::after_sysctl: my_module::my_class

  • after_limits (Optional[String]) (defaults to: undef)

    The name of the class you want to execute directly after the limits class. You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::after_limits: my_module::my_class

  • after_packages (Optional[String]) (defaults to: undef)

    The name of the class you want to execute directly after the packages class. You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::after_packages: my_module::my_class

  • after_groups_and_users (Optional[String]) (defaults to: undef)

    The name of the class you want to execute directly after the groups_and_usesr class. You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::after_groups_and_usesr: my_module::my_class

  • after_ssh_setup (Optional[String]) (defaults to: undef)

    The name of the class you want to execute directly after the ssh_setup class. You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::after_ssh_setup: my_module::my_class

  • after_firewall (Optional[String]) (defaults to: undef)

    The name of the class you want to execute directly after the firewall class. You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::after_firewall: my_module::my_class

  • after_java_software (Optional[String]) (defaults to: undef)

    The name of the class you want to execute directly after the java_software class. You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::after_java_software: my_module::my_class

  • after_wls_software (Optional[String]) (defaults to: undef)

    The name of the class you want to execute directly after the wls_software class. You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::after_wls_software: my_module::my_class

  • after_wls_patches (Optional[String]) (defaults to: undef)

    The name of the class you want to execute directly after the wls_patches class. You can use hiera to set this value. Here is an example: yaml wls_profile::weblogic::after_wls_patches: my_module::my_class



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