Files
FOSSBilling/puphpet/puppet/modules/postgresql/manifests/client.pp
T
Vaidas Lungis 88512e863b add vagrant puphpet configuration
OS - Ubuntu 12.04
PHP - 5.4 with cli intl mcrypt curl gd imagick mbstring MySQL
IP - 10.20.30.12
target folder - /var/www/boxbilling
servername - boxbilling.test
XDEBUG
2014-12-11 12:42:50 +02:00

30 lines
773 B
Puppet

# Install client cli tool. See README.md for more details.
class postgresql::client (
$package_name = $postgresql::params::client_package_name,
$package_ensure = 'present'
) inherits postgresql::params {
validate_string($package_name)
package { 'postgresql-client':
ensure => $package_ensure,
name => $package_name,
tag => 'postgresql',
}
$file_ensure = $package_ensure ? {
'present' => 'file',
true => 'file',
'absent' => 'absent',
false => 'absent',
default => 'file',
}
file { "/usr/local/bin/validate_postgresql_connection.sh":
ensure => $file_ensure,
source => "puppet:///modules/postgresql/validate_postgresql_connection.sh",
owner => 0,
group => 0,
mode => 0755,
}
}