]> gitweb.fluxo.info Git - puppet-etherpad.git/commitdiff
Managing etherpad-lite home folder
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 26 Dec 2011 16:55:04 +0000 (14:55 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 26 Dec 2011 16:55:04 +0000 (14:55 -0200)
manifests/init.pp

index f45fae9cf4d4e23f38eed6b11c3bf4b43995f8fb..0952fb3bfdce9a86881b006feb6eb42507e919d7 100644 (file)
@@ -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'] ],
   }
 }