<IfModule mod_macro.c>
<%=
- $cert_dir_le = '/srv/puppet.debian.org/from-letsencrypt'
+ $cert_dir_le = scope().call_function('hiera', ['paths.letsencrypt_dir'])
$cert_dir_backup = '/srv/puppet.debian.org/backup-keys'
def make_pin_macro(site)
end
macros = []
- Dir.glob("#{$cert_dir_le}/*.pin") do |pinfile|
+ Dir.glob("#{$cert_dir_le}/*.pin").sort.each do |pinfile|
site = File.basename(pinfile, '.pin')
macros << make_pin_macro(site)
end