summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'] ],
}
}