]> gitweb.fluxo.info Git - puppet-ssl.git/commitdiff
Notifying postfinx and nginx on cert change
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 15 Jul 2010 01:11:16 +0000 (22:11 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 15 Jul 2010 01:11:16 +0000 (22:11 -0300)
manifests/init.pp

index f5f007a8f674456001f88c60a59b10b5d992e775..93f26935f8a6976585ac26349ce16357908c13ba 100644 (file)
@@ -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'],
   }
 }