]> gitweb.fluxo.info Git - puppet-nginx.git/commitdiff
Use ssl::dhparams
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 23 May 2015 15:01:15 +0000 (12:01 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 23 May 2015 15:01:15 +0000 (12:01 -0300)
manifests/init.pp

index dbbf4f4b1b8722cabbe6030754907bc1196e0664..ed6b3dbd1f2cee0e0286f1533269e57642929b01 100644 (file)
@@ -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'],
   }