summaryrefslogtreecommitdiff
path: root/manifests/query/setup.pp
blob: b68e54f57330030856bace2466f4f45c590ff565 (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.netrc':
    content => "machine ${host} login ${user} password ${pw}",
    mode    => '0600',
    owner   => $::couchdb::base::couchdb_user,
    group   => $::couchdb::base::couchdb_user,
    require => Package['couchdb'];
  }
}