Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create postgrey_manage to request managing install and service #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
}
}
}

Expand Down