diff options
Diffstat (limited to 'modules/postgrey/manifests')
-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]], + } +} |