Puppet Class: postgresql::server::contrib

Inherits:
postgresql::params
Defined in:
manifests/server/contrib.pp

Summary

Install the contrib postgresql packaging.

Overview

Parameters:

  • package_name (Optional[String[1]]) (defaults to: $postgresql::params::contrib_package_name)

    The name of the PostgreSQL contrib package.

  • package_ensure (Variant[Enum['present', 'absent', 'purged', 'disabled', 'installed', 'latest'], String[1]]) (defaults to: 'present')

    Ensure the contrib package is installed.



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'manifests/server/contrib.pp', line 7

class postgresql::server::contrib (
  Optional[String[1]] $package_name = $postgresql::params::contrib_package_name,
  Variant[Enum['present', 'absent', 'purged', 'disabled', 'installed', 'latest'], String[1]] $package_ensure = 'present',
) inherits postgresql::params {
  if $package_name {
    package { 'postgresql-contrib':
      ensure => $package_ensure,
      name   => $package_name,
      tag    => 'puppetlabs-postgresql',
    }

    anchor { 'postgresql::server::contrib::start': }
    -> Class['postgresql::server::install']
    -> Package['postgresql-contrib']
    -> Class['postgresql::server::service']
    anchor { 'postgresql::server::contrib::end': }
  }
}