Puppet Class: postgresql::client

Inherits:
postgresql::params
Defined in:
manifests/client.pp

Overview

Install client cli tool. See README.md for more details.

Parameters:

  • file_ensure (Any) (defaults to: 'file')
  • validcon_script_path (Any) (defaults to: $postgresql::params::validcon_script_path)
  • package_name (Any) (defaults to: $postgresql::params::client_package_name)
  • package_ensure (Any) (defaults to: 'present')


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'manifests/client.pp', line 2

class postgresql::client (
  $file_ensure    = 'file',
  $validcon_script_path  = $postgresql::params::validcon_script_path,
  $package_name   = $postgresql::params::client_package_name,
  $package_ensure = 'present'
) inherits postgresql::params {
  validate_absolute_path($validcon_script_path)
  validate_string($package_name)

  if $package_name != 'UNSET' {
    package { 'postgresql-client':
      ensure => $package_ensure,
      name   => $package_name,
      tag    => 'postgresql',
    }
  }

  file { $validcon_script_path:
    ensure => $file_ensure,
    source => 'puppet:///modules/postgresql/validate_postgresql_connection.sh',
    owner  => 0,
    group  => 0,
    mode   => '0755',
  }

}