]> gitweb.fluxo.info Git - puppet-etherpad.git/commitdiff
Syntax fix
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 16 Nov 2012 16:13:04 +0000 (14:13 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 16 Nov 2012 16:13:04 +0000 (14:13 -0200)
manifests/init.pp

index 928b5c8ce956167e91cc23cb442ba56084d5eecf..ac7ccdd8b4294a3fcf341961983ceb17c4137498 100644 (file)
@@ -88,18 +88,15 @@ 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'],
-      }
+  if $etherpad_api_key != '' {
+    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'],
     }
   }