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:
parent
1175ea20d6
commit
cc5cad39a7
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue