Puppet Class: wls_profile::admin_server::wls_datasources

Inherits:
wls_profile
Defined in:
manifests/admin_server/wls_datasources.pp

Summary

This class is the default implementation for defining WebLogic datasources.

Overview

wls_profile::admin_server::wls_datasources

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::weblogic](./weblogic.html) for an explanation on how to do this.

See the file “LICENSE” for the full license governing this code.

Parameters:

  • list (Hash)

    A list of datasources to define. The default value is: ‘{}` This is a simple way to get started. It is easy to get started, but soon your hiera yaml become a nightmare. Our advice is when you need to let puppet manage your Oracle profiles, to override this class and add your own puppet implementation. This is much better maintainable and adds more consistency.



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'manifests/admin_server/wls_datasources.pp', line 17

class wls_profile::admin_server::wls_datasources (
  Hash $list,
) inherits wls_profile {
  echo { "WebLogic Datasources ${list.keys.join(',')} ":
    withpath => false,
  }
  #
  # This is a simple way to get started. It is easy to get started, but
  # soon your hiera yaml become a nightmare. Our advise is when you need
  # to let puppet manage your tablespaces, to override this class and 
  # add your own puppet implementation. This is much better maintainable
  # and adds more consistency,
  #
  create_resources(wls_datasource, $list)
}