diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-11-16 14:08:24 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-11-16 14:08:24 -0200 |
commit | 8b695af9825079b6f1ed660bbe5431e1954c522b (patch) | |
tree | b2be376cd327711b7c63a0f37d6349d79dbe82d1 /manifests | |
parent | 36aee5636b9c972155db227006d804cc86d6a2a2 (diff) | |
download | puppet-etherpad-8b695af9825079b6f1ed660bbe5431e1954c522b.tar.gz puppet-etherpad-8b695af9825079b6f1ed660bbe5431e1954c522b.tar.bz2 |
Parameter to configure API key
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 15 |
1 files changed, 15 insertions, 0 deletions
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, |