aboutsummaryrefslogtreecommitdiff
path: root/manifests/share.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-03-29 18:22:57 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-03-29 18:22:57 -0300
commit89a77fc8a4f8a4877ac19e81cbab2c03a7bb1626 (patch)
tree74d4ef2ba093c08cc028776bf5f72994f58b7a03 /manifests/share.pp
downloadpuppet-minidlna-master.tar.gz
puppet-minidlna-master.tar.bz2
Initial importHEADmaster
Diffstat (limited to 'manifests/share.pp')
-rw-r--r--manifests/share.pp15
1 files changed, 15 insertions, 0 deletions
diff --git a/manifests/share.pp b/manifests/share.pp
new file mode 100644
index 0000000..d1dca65
--- /dev/null
+++ b/manifests/share.pp
@@ -0,0 +1,15 @@
+define minidlna::share($type = undef) {
+
+ $def = $type ? {
+ undef => $title,
+ default => "${type},${title}",
+ }
+
+ $conf = "/etc/minidlna.conf"
+ concat::fragment { "${conf}_${title}":
+ target => $conf,
+ content => "media_dir=${def}\n",
+ order => 50,
+ }
+
+}