From: Silvio Rhatto Date: Thu, 15 Jul 2010 01:11:16 +0000 (-0300) Subject: Notifying postfinx and nginx on cert change X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=f4905e39e09ce720aece3e2bc36fc94fb2614606;p=puppet-ssl.git Notifying postfinx and nginx on cert change --- 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'], } }