Stop hardcoding /srv/puppet.debian.org/from-letsencrypt/ all over the place
[mirror/dsa-puppet.git] / modules / roles / manifests / init.pp
index 371a99b..8ccca49 100644 (file)
@@ -251,7 +251,7 @@ class roles {
                        ensure => present,
                        mode => '0440',
                        group => 'gobby',
-                       content => inline_template('<%= File.read("/srv/puppet.debian.org/from-letsencrypt/gobby.debian.org.key") %>'),
+                       content => inline_template('<%= File.read(scope().call_function("hiera", ["paths.letsencrypt_dir"]) + "/gobby.debian.org.key") %>'),
                        links => follow,
                }
        }