summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2022-02-04 16:28:23 -0300
committerSilvio Rhatto <rhatto@riseup.net>2022-02-04 16:28:23 -0300
commit0c376beb5f8a499cd558315c358820bfc2f695e9 (patch)
tree97e63e4721106e70e2de05fe6a00f79c0184036e
parent1c7ebba5f33610d8588765ab536550d04ed44d1d (diff)
downloadpuppet-mpd-0c376beb5f8a499cd558315c358820bfc2f695e9.tar.gz
puppet-mpd-0c376beb5f8a499cd558315c358820bfc2f695e9.tar.bz2
Feat: support for custom pulseaudio configs
-rw-r--r--manifests/all.pp8
1 files changed, 6 insertions, 2 deletions
diff --git a/manifests/all.pp b/manifests/all.pp
index 5c26afe..2ab41f8 100644
--- a/manifests/all.pp
+++ b/manifests/all.pp
@@ -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",
+ ],
}
}