summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-12-26 14:55:04 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-12-26 14:55:04 -0200
commit30b860c437caefbcc20fd4c45de93d4f1ad5f64c (patch)
tree1c5677af51db5931d8700bef16d078d4ecf271a2
parenta5783363139b414851708687dac8255b5efff459 (diff)
downloadpuppet-etherpad-30b860c437caefbcc20fd4c45de93d4f1ad5f64c.tar.gz
puppet-etherpad-30b860c437caefbcc20fd4c45de93d4f1ad5f64c.tar.bz2
Managing etherpad-lite home folder
-rw-r--r--manifests/init.pp11
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'] ],
}
}