From 9a41c103196507a348b6edf12669a903c872d235 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 23 May 2015 12:01:15 -0300 Subject: Use ssl::dhparams --- manifests/init.pp | 6 +----- 1 file changed, 1 insertion(+), 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'], } -- cgit v1.2.3