2013-08-27 22:43:47 +02:00
|
|
|
# Install client cli tool. See README.md for more details.
|
2012-12-20 01:50:45 +01:00
|
|
|
class postgresql::client (
|
2014-07-02 16:45:07 +02:00
|
|
|
$file_ensure = 'file',
|
2014-04-30 14:30:03 +02:00
|
|
|
$validcon_script_path = $postgresql::params::validcon_script_path,
|
2012-12-20 01:50:45 +01:00
|
|
|
$package_name = $postgresql::params::client_package_name,
|
|
|
|
$package_ensure = 'present'
|
|
|
|
) inherits postgresql::params {
|
2014-04-30 14:30:03 +02:00
|
|
|
validate_absolute_path($validcon_script_path)
|
2013-08-27 22:43:47 +02:00
|
|
|
validate_string($package_name)
|
2012-12-20 01:50:45 +01:00
|
|
|
|
|
|
|
package { 'postgresql-client':
|
2015-01-11 05:27:57 +01:00
|
|
|
ensure => $package_ensure,
|
|
|
|
name => $package_name,
|
|
|
|
tag => 'postgresql',
|
2012-12-20 01:50:45 +01:00
|
|
|
}
|
|
|
|
|
2014-04-30 14:30:03 +02:00
|
|
|
file { $validcon_script_path:
|
2013-10-23 23:49:16 +02:00
|
|
|
ensure => $file_ensure,
|
2014-07-02 16:45:07 +02:00
|
|
|
source => 'puppet:///modules/postgresql/validate_postgresql_connection.sh',
|
2013-10-23 23:49:16 +02:00
|
|
|
owner => 0,
|
|
|
|
group => 0,
|
2014-07-02 16:45:07 +02:00
|
|
|
mode => '0755',
|
2013-10-23 23:49:16 +02:00
|
|
|
}
|
|
|
|
|
2012-12-20 01:50:45 +01:00
|
|
|
}
|