]> gitweb.fluxo.info Git - puppet-etherpad.git/commitdiff
Parameter to configure API key
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 16 Nov 2012 16:08:24 +0000 (14:08 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 16 Nov 2012 16:08:24 +0000 (14:08 -0200)
manifests/init.pp

index adf5662f194dcf96a237826a064847cc8c00d11c..928b5c8ce956167e91cc23cb442ba56084d5eecf 100644 (file)
@@ -88,6 +88,21 @@ class etherpad {
     notify  => Service['etherpad-lite'],
   }
 
+  case $etherpad_api_key {
+    ''      => { },
+    default => {
+      file { '/var/lib/etherpad-lite/APIKEY.txt':
+        ensure  => present,
+        owner   => 'etherpad-lite',
+        group   => 'etherpad-lite',
+        mode    => 0640,
+        content => "$etherpad_api_key",
+        require => Vcsrepo['/var/lib/etherpad-lite'],
+        notify  => Service['etherpad-lite'],
+      }
+    }
+  }
+
   service { 'etherpad-lite':
     enable     => true,
     ensure     => running,