From f4905e39e09ce720aece3e2bc36fc94fb2614606 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 14 Jul 2010 22:11:16 -0300 Subject: Notifying postfinx and nginx on cert change --- manifests/init.pp | 15 +++++++++++++-- 1 file 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'], } } -- cgit v1.2.3