blob: 9312cdb15b519d6008e731c99614a76b0ae4b807 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
class site_webapp::couchdb {
$webapp = hiera('webapp')
$couchdb_hosts = $webapp['couchdb_hosts']
# for now, pick the first couchdb host before we have a working
# load balancing setup (see https://leap.se/code/issues/1994)
$couchdb_host = $couchdb_hosts[0]
$couchdb_user = $webapp['couchdb_user']['username']
$couchdb_password = $webapp['couchdb_user']['password']
file {
'/srv/leap-webapp/config/couchdb.yml':
content => template('site_webapp/couchdb.yml.erb'),
owner => leap-webapp,
group => leap-webapp,
mode => '0600';
}
}
|