Add switch for service_name that works for centos

Signed-off-by: Ken Barber <ken@bob.sh>
This commit is contained in:
Ken Barber 2013-09-18 17:08:46 +01:00
parent 31e9b62a51
commit 1fbc9c6ece

View file

@ -82,7 +82,10 @@ describe 'server without defaults:' do
pp = <<-EOS
class { 'postgresql::globals':
version => "9.2",
service_name => "postgresql",
service_name => $::osfamily ? {
"RedHat" => "postgresql-9.2",
"Debian" => "postgresql",
},
}
class { 'postgresql::server':
ensure => absent,