From: Silvio Rhatto Date: Mon, 26 Dec 2011 16:55:04 +0000 (-0200) Subject: Managing etherpad-lite home folder X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=30b860c437caefbcc20fd4c45de93d4f1ad5f64c;p=puppet-etherpad.git Managing etherpad-lite home folder --- diff --git a/manifests/init.pp b/manifests/init.pp index f45fae9..0952fb3 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -30,6 +30,13 @@ class etherpad { require => Group['etherpad-lite'], } + file { '/home/etherpad-lite': + ensure => directory, + owner => 'etherpad-lite', + group => 'etherpad-lite', + require => User['etherpad-lite'], + } + package { 'npm': ensure => present, } @@ -86,7 +93,7 @@ class etherpad { ensure => running, hasrestart => true, hasstatus => true, - require => [ File['/etc/init.d/etherpad-lite', '/var/lib/etherpad-lite/settings.json'], - Mysql_grant['etherpad@%/etherpad'], Package['npm'] ], + require => [ File['/etc/init.d/etherpad-lite', '/var/lib/etherpad-lite/settings.json', + '/home/etherpad-lite'], Mysql_grant['etherpad@%/etherpad'], Package['npm'] ], } }