aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-07-14 22:11:16 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-07-14 22:11:16 -0300
commitf4905e39e09ce720aece3e2bc36fc94fb2614606 (patch)
treed68d37cf1a410072dd9d6172ac22a312a016c2c9 /manifests/init.pp
parent12d070f36bbd4d1213f6f77359032023b61dfcfc (diff)
downloadpuppet-ssl-f4905e39e09ce720aece3e2bc36fc94fb2614606.tar.gz
puppet-ssl-f4905e39e09ce720aece3e2bc36fc94fb2614606.tar.bz2
Notifying postfinx and nginx on cert change
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp15
1 files changed, 13 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index f5f007a..93f2693 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -26,7 +26,18 @@ class ssl {
class ssl::mail inherits ssl {
File['/etc/ssl/private/cert.pem'] {
- group => postfix,
- mode => 0640,
+ group => postfix,
+ mode => 0640,
+ notify => Service['postfix'],
+ }
+
+ File['/etc/ssl/certs/cert.crt'] {
+ notify => Service['postfix'],
+ }
+}
+
+class ssl::proxy inherits ssl {
+ File['/etc/ssl/certs/cert.crt', '/etc/ssl/private/cert.pem'] {
+ notify => Service['nginx'],
}
}