diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-03-29 18:22:57 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-03-29 18:22:57 -0300 |
commit | 89a77fc8a4f8a4877ac19e81cbab2c03a7bb1626 (patch) | |
tree | 74d4ef2ba093c08cc028776bf5f72994f58b7a03 /manifests/init.pp | |
download | puppet-minidlna-master.tar.gz puppet-minidlna-master.tar.bz2 |
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp new file mode 100644 index 0000000..dd3b62d --- /dev/null +++ b/manifests/init.pp @@ -0,0 +1,19 @@ +class minidlna { + package { "minidlna": } -> + service { "minidlna": } + + $conf = "/etc/minidlna.conf" + concat { $conf: + owner => root, + group => root, + require => Package[minidlna], + notify => Service[minidlna], + } + + concat::fragment { "${conf}_header": + target => $conf, + content => template("minidlna/minidlna.conf.erb"), + order => 1, + } + +} |