summaryrefslogtreecommitdiff
path: root/puppet/modules/site_webapp/manifests/couchdb.pp
blob: 6cac666f722d35dfcab4beda1b58956e4183a669 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class site_webapp::couchdb {

  $webapp           = hiera('webapp')
  $couchdb_host     = $webapp['couchdb_hosts']
  $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';
  }

}