Index: modules/nginx/manifests/init.pp |
diff --git a/modules/nginx/manifests/init.pp b/modules/nginx/manifests/init.pp |
index 398154e2a6dac7bf00913a4f38b3c554aaf77331..ec164d96627b13b809831163c2fd8d8a83c49d0e 100644 |
--- a/modules/nginx/manifests/init.pp |
+++ b/modules/nginx/manifests/init.pp |
@@ -65,6 +65,14 @@ class nginx ( |
require => Package['nginx'], |
} |
+ @file {'/etc/nginx/dhparam.pem': |
+ ensure => 'present', |
+ mode => 0600, |
+ notify => Service['nginx'], |
+ require => Package['nginx'], |
+ source => 'puppet:///modules/private/dhe_rsa_export.pem', |
+ } |
+ |
define hostconfig ( |
$domain = $title, |
$alt_names = [], |
@@ -85,6 +93,8 @@ class nginx ( |
} |
if $certificate and $private_key { |
+ realize(File['/etc/nginx/dhparam.pem']) |
+ |
if !defined(File["/etc/nginx/${certificate}"]) { |
file {"/etc/nginx/${certificate}": |
ensure => file, |