Puppet Class: postgresql::lib::python

Inherits:
postgresql::params
Defined in:
manifests/lib/python.pp

Summary

This class installs the python libs for postgresql.

Overview

Parameters:

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

    The name of the PostgreSQL Python package.

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

    Ensure the python libs for postgresql are installed.



8
9
10
11
12
13
14
15
16
17
# File 'manifests/lib/python.pp', line 8

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