diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-12-26 14:55:04 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-12-26 14:55:04 -0200 |
commit | 30b860c437caefbcc20fd4c45de93d4f1ad5f64c (patch) | |
tree | 1c5677af51db5931d8700bef16d078d4ecf271a2 | |
parent | a5783363139b414851708687dac8255b5efff459 (diff) | |
download | puppet-etherpad-30b860c437caefbcc20fd4c45de93d4f1ad5f64c.tar.gz puppet-etherpad-30b860c437caefbcc20fd4c45de93d4f1ad5f64c.tar.bz2 |
Managing etherpad-lite home folder
-rw-r--r-- | manifests/init.pp | 11 |
1 files changed, 9 insertions, 2 deletions
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'] ], } } |