aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgrey
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-01-08 20:45:23 +0000
committerMichael Scherer <misc@mageia.org>2012-01-08 20:45:23 +0000
commit0e2a7dce5049e7dda972d34a256f4f1beb8fcf0a (patch)
treee86c86dfc5e607dcbdd2162e4403e27c2d80f385 /modules/postgrey
parent41ee7334a1caad53759566372e0de2e95bfa4842 (diff)
downloadpuppet-0e2a7dce5049e7dda972d34a256f4f1beb8fcf0a.tar
puppet-0e2a7dce5049e7dda972d34a256f4f1beb8fcf0a.tar.gz
puppet-0e2a7dce5049e7dda972d34a256f4f1beb8fcf0a.tar.bz2
puppet-0e2a7dce5049e7dda972d34a256f4f1beb8fcf0a.tar.xz
puppet-0e2a7dce5049e7dda972d34a256f4f1beb8fcf0a.zip
cleaning of postgrey module
Diffstat (limited to 'modules/postgrey')
-rw-r--r--modules/postgrey/manifests/init.pp28
1 files changed, 9 insertions, 19 deletions
diff --git a/modules/postgrey/manifests/init.pp b/modules/postgrey/manifests/init.pp
index 8d55a77c..44703b61 100644
--- a/modules/postgrey/manifests/init.pp
+++ b/modules/postgrey/manifests/init.pp
@@ -1,31 +1,21 @@
class postgrey {
- package { postgrey:
- ensure => installed
- }
+ package { postgrey: }
service { postgrey:
ensure => running,
path => "/etc/init.d/postgrey",
- subscribe => [ Package[postgrey]]
+ subscribe => Package[postgrey],
}
- file { "/etc/sysconfig/postgrey":
- ensure => present,
- owner => root,
- group => root,
- mode => 644,
- content => template("postgrey/postgrey.sysconfig"),
- notify => [ Service[postgrey] ],
+ File {
+ 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]],
+ file {
+ "/etc/sysconfig/postgrey":
+ content => template("postgrey/postgrey.sysconfig");
+ "/etc/postfix/postgrey_whitelist_clients.local":
+ content => template("postgrey/whitelist_clients.local");
}
}