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 {
9 if $package_name != 'UNSET' {
10 package { 'postgresql-client':
11 ensure => $package_ensure,
12 name => $package_name,
17 file { $validcon_script_path:
18 ensure => $file_ensure,
19 source => 'puppet:///modules/postgresql/validate_postgresql_connection.sh',