Puppet Class: postgresql::server::postgis

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

Summary

Install the postgis postgresql packaging.

Overview

Parameters:

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

    Sets the package name.

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

    Specifies if the package is present or not.



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

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

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

  if $postgresql::globals::manage_package_repo {
    Class['postgresql::repo']
    -> Package['postgresql-postgis']
  }
}