summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp6
1 files changed, 1 insertions, 5 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index dbbf4f4..ed6b3db 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -20,11 +20,7 @@ class nginx inherits nginx::base {
include ssl
# See https://weakdh.org/
- exec { 'openssl-nginx-gendh-2048':
- command => 'openssl dhparam -out /etc/ssl/private/dhparams.pem 2048',
- user => root,
- group => root,
- creates => '/etc/ssl/private/dh_2048.pem',
+ ssl::dhparams { 'openssl-nginx-gendh-2048':
notify => Service['nginx'],
}