]> gitweb.fluxo.info Git - puppet-mpd.git/commitdiff
Hiera 5 migration
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 7 May 2020 23:58:05 +0000 (20:58 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 7 May 2020 23:58:05 +0000 (20:58 -0300)
manifests/init.pp
manifests/maintenance.pp

index 551662dc76dd32320d89d59e8921968f5a370bec..6b8c3d6fd2363b74caa63e853132087a6bd39f61 100644 (file)
@@ -1,5 +1,5 @@
 class mpd(
-  $config_content = hiera('mpd::config_content', false),
+  $config_content = lookup('mpd::config_content', undef, undef, false),
   $config_source  = [ "puppet:///modules/site_mpd/${::hostname}.conf",
                       "puppet:///modules/mpd/mpd.conf" ],
 ) {
index acd0471e641c2a4533c9c786c8cb8b9eee2cc58a..ce22bd59d51aa3aafff51520291a6df3f177489a 100644 (file)
@@ -1,5 +1,5 @@
 class mpd::maintenance inherits mpd::client::base {
-  $password = hiera('mpd::maintenance::password', '')
+  $password = lookup('mpd::maintenance::password', undef, undef, '')
 
   cron { "mpd_db_update":
     environment => "MPD_HOST=${password}@localhost",