newer pg module
[mirror/dsa-puppet.git] / 3rdparty / modules / postgresql / manifests / client.pp
1 # Install client cli tool. See README.md for more details.
2 class postgresql::client (
3   Enum['file', 'absent'] $file_ensure        = 'file',
4   Stdlib::Absolutepath $validcon_script_path = $postgresql::params::validcon_script_path,
5   String[1] $package_name                    = $postgresql::params::client_package_name,
6   String[1] $package_ensure                  = 'present'
7 ) inherits postgresql::params {
8
9   if $package_name != 'UNSET' {
10     package { 'postgresql-client':
11       ensure => $package_ensure,
12       name   => $package_name,
13       tag    => 'postgresql',
14     }
15   }
16
17   file { $validcon_script_path:
18     ensure => $file_ensure,
19     source => 'puppet:///modules/postgresql/validate_postgresql_connection.sh',
20     owner  => 0,
21     group  => 0,
22     mode   => '0755',
23   }
24
25 }