]> gitweb.fluxo.info Git - puppet-nginx.git/commitdiff
Pass post_command to certbot class
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 31 May 2018 00:00:51 +0000 (21:00 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 31 May 2018 00:00:51 +0000 (21:00 -0300)
manifests/ssl.pp

index 195ef66431a45a0a16a91bfacc0851819a9960fa..4b6547ac9f2d109d96948c78cacf15d4330130ef 100644 (file)
@@ -3,12 +3,12 @@ class nginx::ssl(
 ) {
   include ssl
   include ssl::snakeoil
-  include certbot
 
-  #class { 'certbot':
-  #  pre_hook  => '/usr/sbin/service nginx stop',
-  #  post_hook => '/usr/sbin/service nginx start',
-  #}
+  class { 'certbot':
+    #pre_hook    => '/usr/sbin/service nginx stop',
+    #post_hook   => '/usr/sbin/service nginx start',
+    post_command => '/usr/sbin/service nginx start',
+  }
 
   #package { 'python-certbot-nginx':
   #  ensure: present,