]> gitweb.fluxo.info Git - puppet-mpd.git/commitdiff
Feat: support for custom pulseaudio configs
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 4 Feb 2022 19:28:23 +0000 (16:28 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 4 Feb 2022 19:28:23 +0000 (16:28 -0300)
manifests/all.pp

index 5c26afee3fa2653dd9c6ffa8e709b80b8a69f3cd..2ab41f872601f8afddf48a3765e2bbfa1908585f 100644 (file)
@@ -10,7 +10,7 @@ class mpd::all {
     groups  => [ 'audio', 'pulse', 'pulse-access' ],
   }
 
-  # In the past we ensured pulseaudio were running systemwide
+  # In the past we ensured pulseaudio ran systemwide
   # so both mpd and users can share audio control.
   #
   # This could be managed elsewhere.
@@ -36,6 +36,10 @@ class mpd::all {
     group  => root,
     mode   => '0644',
     notify => Service['mpd'],
-    source => [ "puppet:///modules/mpd/default.pa" ],
+    source => [
+      "puppet:///modules/site_mpd/default-${::hostname}.pa",
+      "puppet:///modules/site_mpd/default.pa",
+      "puppet:///modules/mpd/default.pa",
+    ],
   }
 }