diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-05-19 14:50:00 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-05-19 14:50:00 -0300 |
commit | 92bec1c3d6c8c3336ec1d98298498f499834948b (patch) | |
tree | 1be1cd79c9d4712065a0e71cb09d28a60f214a30 /manifests/maintenance.pp | |
parent | 27254e40605e89efc7e9291b7831fb3810e40e9b (diff) | |
download | puppet-mpd-92bec1c3d6c8c3336ec1d98298498f499834948b.tar.gz puppet-mpd-92bec1c3d6c8c3336ec1d98298498f499834948b.tar.bz2 |
Adds mpd::maintenance
Diffstat (limited to 'manifests/maintenance.pp')
-rw-r--r-- | manifests/maintenance.pp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/manifests/maintenance.pp b/manifests/maintenance.pp new file mode 100644 index 0000000..09b41f0 --- /dev/null +++ b/manifests/maintenance.pp @@ -0,0 +1,13 @@ +class mpd::maintenance inherits mpc::client::base { + $password = hiera('mpd::maintenance::password', '') + + cron { "db_update": + environment => "MPD_HOST=${password}@localhost" + command => "/usr/bin/mpc update", + user => "root", + ensure => $password ? { + '' => present, + default => absent, + }, + } +} |