summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-03-08 11:10:34 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-03-08 11:10:34 -0300
commite4fe6cad936b939bcefc734e4dd6178cf95a2afe (patch)
tree500a334c4d9b95980f8538b6141fc9a0ac8795a9
parentb7c9137450c5d488838e9a8dd668b49cab46c842 (diff)
downloadpuppet-mail-e4fe6cad936b939bcefc734e4dd6178cf95a2afe.tar.gz
puppet-mail-e4fe6cad936b939bcefc734e4dd6178cf95a2afe.tar.bz2
Notify service opendkim
-rw-r--r--manifests/opendkim.pp5
-rw-r--r--manifests/opendkim/key.pp1
2 files changed, 6 insertions, 0 deletions
diff --git a/manifests/opendkim.pp b/manifests/opendkim.pp
index 1a30dba..f688c04 100644
--- a/manifests/opendkim.pp
+++ b/manifests/opendkim.pp
@@ -9,6 +9,7 @@ class mail::opendkim {
mode => 0644,
source => "puppet:///modules/mail/opendkim/default",
require => Package['opendkim'],
+ notify => Service['opendkim'],
}
file { '/etc/opendkim.conf':
@@ -19,6 +20,7 @@ class mail::opendkim {
source => [ "puppet:///modules/site_mail/opendkim/opendkim.conf",
"puppet:///modules/mail/opendkim/opendkim.conf" ],
require => Package['opendkim'],
+ notify => Service['opendkim'],
}
file { '/etc/opendkim':
@@ -45,6 +47,7 @@ class mail::opendkim {
source => [ "puppet:///modules/site_mail/opendkim/TrustedHosts",
"puppet:///modules/mail/opendkim/TrustedHosts" ],
require => File['/etc/opendkim'],
+ notify => Service['opendkim'],
}
file { '/etc/opendkim/KeyTable':
@@ -55,6 +58,7 @@ class mail::opendkim {
source => [ "puppet:///modules/site_mail/opendkim/KeyTable",
"puppet:///modules/mail/opendkim/KeyTable" ],
require => File['/etc/opendkim'],
+ notify => Service['opendkim'],
}
file { '/etc/opendkim/SigningTable':
@@ -65,6 +69,7 @@ class mail::opendkim {
source => [ "puppet:///modules/site_mail/opendkim/SigningTable",
"puppet:///modules/mail/opendkim/SigningTable" ],
require => File['/etc/opendkim'],
+ notify => Service['opendkim'],
}
service { 'opendkim' :
diff --git a/manifests/opendkim/key.pp b/manifests/opendkim/key.pp
index e14a228..d653f31 100644
--- a/manifests/opendkim/key.pp
+++ b/manifests/opendkim/key.pp
@@ -14,5 +14,6 @@ define mail::opendkim::key() {
group => root,
creates => "/etc/opendkim/keys/${name}/mail.private",
require => [ File["/etc/opendkim/keys/${name}"], Package['opendkim-tools'] ],
+ notify => Service['opendkim'],
}
}