diff options
author | Michael Scherer <misc@mageia.org> | 2010-11-17 15:58:10 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-11-17 15:58:10 +0000 |
commit | 602d4637e0fc7711ffb90b40f9b5467074f741c8 (patch) | |
tree | da97ead874955c9a58c43151e31554997711ff31 /modules/postgrey | |
parent | d0b22dcb390873be41d24bafb728a4f21810cad7 (diff) | |
download | puppet-602d4637e0fc7711ffb90b40f9b5467074f741c8.tar puppet-602d4637e0fc7711ffb90b40f9b5467074f741c8.tar.gz puppet-602d4637e0fc7711ffb90b40f9b5467074f741c8.tar.bz2 puppet-602d4637e0fc7711ffb90b40f9b5467074f741c8.tar.xz puppet-602d4637e0fc7711ffb90b40f9b5467074f741c8.zip |
- add a postgrey module
Diffstat (limited to 'modules/postgrey')
-rw-r--r-- | modules/postgrey/manifests/init.pp | 31 | ||||
-rw-r--r-- | modules/postgrey/templates/postgrey.sysconfig | 12 | ||||
-rw-r--r-- | modules/postgrey/templates/whitelist_clients.local | 5 |
3 files changed, 48 insertions, 0 deletions
diff --git a/modules/postgrey/manifests/init.pp b/modules/postgrey/manifests/init.pp new file mode 100644 index 00000000..8d55a77c --- /dev/null +++ b/modules/postgrey/manifests/init.pp @@ -0,0 +1,31 @@ +class postgrey { + package { postgrey: + ensure => installed + } + + service { postgrey: + ensure => running, + path => "/etc/init.d/postgrey", + subscribe => [ Package[postgrey]] + } + + file { "/etc/sysconfig/postgrey": + ensure => present, + owner => root, + group => root, + mode => 644, + content => template("postgrey/postgrey.sysconfig"), + notify => [ Service[postgrey] ], + require => Package[postgrey], + } + + file { "/etc/postfix/postgrey_whitelist_clients.local": + ensure => present, + owner => root, + group => root, + mode => 644, + content => template("postgrey/whitelist_clients.local"), + require => Package[postgrey], + notify => [ Service[postgrey]], + } +} diff --git a/modules/postgrey/templates/postgrey.sysconfig b/modules/postgrey/templates/postgrey.sysconfig new file mode 100644 index 00000000..ec4e6947 --- /dev/null +++ b/modules/postgrey/templates/postgrey.sysconfig @@ -0,0 +1,12 @@ +# change default configuration option here + +# SOCKET=$(postconf -h queue_directory)/extern/postgrey/socket +# OPTIONS="--unix=$SOCKET" +# DBPATH=/var/lib/postgrey +# OPTIONS="$OPTIONS --dbdir=$DBPATH" + +# to use an inet connection instead of a socket +#OPTIONS="--inet=127.0.0.1:10031" + +# enable whitelisting +OPTIONS="$OPTIONS --auto-whitelist-clients" diff --git a/modules/postgrey/templates/whitelist_clients.local b/modules/postgrey/templates/whitelist_clients.local new file mode 100644 index 00000000..9457cc82 --- /dev/null +++ b/modules/postgrey/templates/whitelist_clients.local @@ -0,0 +1,5 @@ +# zarb +ryu.zarb.org +cthulhu.zarb.org + + |