diff --git a/manifests/output.pp b/manifests/output.pp index 6e905812593a593e91c00b33c3e20d10e9a1ed33..e3ed051a14572c69dcfcb905b8e4ad36777f4078 100644 --- a/manifests/output.pp +++ b/manifests/output.pp @@ -7,11 +7,14 @@ # @param parameters # Remaining parameters to set for audio output. Each value will be # quoted. +# @param target +# Configuration file to be part of. define mpd::output ( Enum['shout', 'null', 'fifo', 'pipe', 'alsa', 'roar', 'ao', 'oss', 'openal', 'pulse', 'jack', 'httpd', 'recorder'] $type, String $output_name = $name, Hash $parameters = {}, + String $target = '/etc/mpd.conf', ) { $base = { type => $type, @@ -21,8 +24,8 @@ define mpd::output ( $content_aux = $params.map |$k, $v| { " ${k} \"${v}\"\n" }.join() - concat::fragment { "mpd audio ${output_name}": - target => '/etc/mpd.conf', + concat::fragment { "mpd::output - ${target} - ${output_name}": + target => $target, content => "audio_output {\n${content_aux}}\n", } }