From: Silvio Rhatto Date: Fri, 16 Nov 2012 16:08:24 +0000 (-0200) Subject: Parameter to configure API key X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=8b695af9825079b6f1ed660bbe5431e1954c522b;p=puppet-etherpad.git Parameter to configure API key --- diff --git a/manifests/init.pp b/manifests/init.pp index adf5662..928b5c8 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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,