[Mageia-sysadm] [268] - add a postgrey module
root at mageia.org
root at mageia.org
Wed Nov 17 16:58:10 CET 2010
Revision: 268
Author: misc
Date: 2010-11-17 16:58:10 +0100 (Wed, 17 Nov 2010)
Log Message:
-----------
- add a postgrey module
Added Paths:
-----------
puppet/modules/postgrey/
puppet/modules/postgrey/manifests/
puppet/modules/postgrey/manifests/init.pp
puppet/modules/postgrey/templates/
puppet/modules/postgrey/templates/postgrey.sysconfig
puppet/modules/postgrey/templates/whitelist_clients.local
Added: puppet/modules/postgrey/manifests/init.pp
===================================================================
--- puppet/modules/postgrey/manifests/init.pp (rev 0)
+++ puppet/modules/postgrey/manifests/init.pp 2010-11-17 15:58:10 UTC (rev 268)
@@ -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]],
+ }
+}
Added: puppet/modules/postgrey/templates/postgrey.sysconfig
===================================================================
--- puppet/modules/postgrey/templates/postgrey.sysconfig (rev 0)
+++ puppet/modules/postgrey/templates/postgrey.sysconfig 2010-11-17 15:58:10 UTC (rev 268)
@@ -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"
Added: puppet/modules/postgrey/templates/whitelist_clients.local
===================================================================
--- puppet/modules/postgrey/templates/whitelist_clients.local (rev 0)
+++ puppet/modules/postgrey/templates/whitelist_clients.local 2010-11-17 15:58:10 UTC (rev 268)
@@ -0,0 +1,5 @@
+# zarb
+ryu.zarb.org
+cthulhu.zarb.org
+
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101117/f634009c/attachment.html>
More information about the Mageia-sysadm
mailing list