diff --git a/manifests/server.pp b/manifests/server.pp index a1872bd..e75a04d 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -131,6 +131,9 @@ $spampd_maxsize = '512', # Other filters $postgrey = false, + # whether this class should manage installing and configuring postgrey + # if postgrey is requested + $postgrey_manage = true, $postgrey_policy_service = undef, $clamav = false, # Parameters @@ -216,14 +219,16 @@ # Optional Postgrey setup if $postgrey { - # Main package and service it provides - package { $postgrey_package: ensure => installed } - service { 'postgrey': - require => Package[$postgrey_package], - enable => true, - ensure => running, - # When stopped, status returns zero with 1.31-1.el5 - hasstatus => false, + if $postgrey_manage { + # Main package and service it provides + package { $postgrey_package: ensure => installed } + service { 'postgrey': + require => Package[$postgrey_package], + enable => true, + ensure => running, + # When stopped, status returns zero with 1.31-1.el5 + hasstatus => false, + } } }