Fix for debian 6 service name

It turns out that Ubuntu and Debian have different names
for the postgres service; this fix makes the module
compatible with debian 6.
This commit is contained in:
Chris Price 2012-06-14 15:12:51 -07:00
parent 1175ea20d6
commit cc5cad39a7

View file

@ -45,7 +45,16 @@ class postgresql::params {
}
'Debian': {
$service_name = "postgresql-${::postgres_default_version}"
case $::operatingsystem {
'Debian': {
$service_name = "postgresql"
}
'Ubuntu': {
$service_name = "postgresql-${::postgres_default_version}"
}
}
$client_package_name = 'postgresql-client'
$server_package_name = 'postgresql'
$needs_initdb = false