Stop hardcoding /srv/puppet.debian.org/from-letsencrypt/ all over the place
[mirror/dsa-puppet.git] / modules / roles / manifests / dbmaster.pp
index c75713f..5dbc7b6 100644 (file)
@@ -23,7 +23,7 @@ class roles::dbmaster {
               ensure => present,
               mode   => '0440',
               group  => 'openldap',
-              content => inline_template('<%= File.read("/srv/puppet.debian.org/from-letsencrypt/db.debian.org.key") %>'),
+              content => inline_template('<%= File.read(scope().call_function("hiera", ["paths.letsencrypt_dir"]) + "/db.debian.org.key") %>'),
               links  => follow,
        }