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',
|
2012-12-20 01:50:45 +01:00
|
|
|
$package_name = $postgresql::params::client_package_name,
|
|
|
|
$package_ensure = 'present'
|
|
|
|
) inherits postgresql::params {
|
2013-08-27 22:43:47 +02:00
|
|
|
validate_string($package_name)
|
2012-12-20 01:50:45 +01:00
|
|
|
|
|
|
|
package { 'postgresql-client':
|
|
|
|
ensure => $package_ensure,
|
|
|
|
name => $package_name,
|
2013-02-15 11:23:18 +01:00
|
|
|
tag => 'postgresql',
|
2012-12-20 01:50:45 +01:00
|
|
|
}
|
|
|
|
|
2014-07-02 16:45:07 +02:00
|
|
|
file { '/usr/local/bin/validate_postgresql_connection.sh':
|
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
|
|
|
}
|