make pin macros conditional on mod_macro being present
authorPeter Palfrader <peter@palfrader.org>
Mon, 26 Sep 2016 17:07:53 +0000 (19:07 +0200)
committerPeter Palfrader <peter@palfrader.org>
Mon, 26 Sep 2016 17:07:53 +0000 (19:07 +0200)
modules/apache2/templates/ssl-key-pins.erb

index 273cc69..41cfcea 100644 (file)
@@ -3,6 +3,8 @@
 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
 ##
 
+<IfModule mod_macro.c>
+
 <%=
   $cert_dir_le = '/srv/puppet.debian.org/from-letsencrypt'
   $cert_dir_backup = '/srv/puppet.debian.org/backup-keys'
@@ -41,3 +43,5 @@
   end
   macros.join("\n")
 -%>
+
+</IfModule>