summaryrefslogtreecommitdiff
path: root/puppet/modules/couchdb/manifests/query/setup.pp
blob: 451eb536339394a9c22646c28d970edfdb8185b8 (plain)
1
2
3
4
5
6
7
8
9
10
define couchdb::query::setup ($user, $pw, $host='127.0.0.1') {

  file { "/etc/couchdb/couchdb-${user}.netrc":
    content => "machine ${host} login ${user} password ${pw}",
    mode    => '0600',
    owner   => $::couchdb::base::couchdb_user,
    group   => $::couchdb::base::couchdb_user,
    require => Package['couchdb'];
  }
}