Puppet Class: postgresql::server::contrib

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

Summary

Install the contrib postgresql packaging.

Overview

Parameters:

  • package_name (String) (defaults to: $postgresql::params::contrib_package_name)

    The name of the PostgreSQL contrib package.

  • package_ensure (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
25
26
# File 'manifests/server/contrib.pp', line 7

class postgresql::server::contrib (
  String $package_name      = $postgresql::params::contrib_package_name,
  String[1] $package_ensure = 'present'
) inherits postgresql::params {
  if $facts['os']['family'] == 'Gentoo' {
    fail('osfamily Gentoo does not have a separate "contrib" package, postgresql::server::contrib is not supported.')
  }

  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': }
}