summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-11-16 14:13:04 -0200
committerSilvio Rhatto <rhatto@riseup.net>2012-11-16 14:13:04 -0200
commit0b4651779dadfa2826b40431c30d09c3377ecad6 (patch)
treea285b47e8432782ced4dc391682008716a3d14bd
parent8b695af9825079b6f1ed660bbe5431e1954c522b (diff)
downloadpuppet-etherpad-0b4651779dadfa2826b40431c30d09c3377ecad6.tar.gz
puppet-etherpad-0b4651779dadfa2826b40431c30d09c3377ecad6.tar.bz2
Syntax fix
-rw-r--r--manifests/init.pp21
1 files changed, 9 insertions, 12 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 928b5c8..ac7ccdd 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -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'],
}
}