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'],
}
}