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/manifests/init.pp | |
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/manifests/init.pp')
-rw-r--r-- | modules/postgrey/manifests/init.pp | 31 |
1 files changed, 31 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]], + } +} |