summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/add_user.pp6
-rw-r--r--manifests/query/setup.pp2
2 files changed, 7 insertions, 1 deletions
diff --git a/manifests/add_user.pp b/manifests/add_user.pp
index 1d25fd5..29c6a8c 100644
--- a/manifests/add_user.pp
+++ b/manifests/add_user.pp
@@ -30,4 +30,10 @@ define couchdb::add_user ( $roles, $pw, $salt = '' ) {
id => "org.couchdb.user:${name}",
data => $data
}
+
+ couchdb::query::setup { $name:
+ user => $name,
+ pw => $pw,
+ }
+
}
diff --git a/manifests/query/setup.pp b/manifests/query/setup.pp
index b68e54f..451eb53 100644
--- a/manifests/query/setup.pp
+++ b/manifests/query/setup.pp
@@ -1,6 +1,6 @@
define couchdb::query::setup ($user, $pw, $host='127.0.0.1') {
- file { '/etc/couchdb/couchdb.netrc':
+ file { "/etc/couchdb/couchdb-${user}.netrc":
content => "machine ${host} login ${user} password ${pw}",
mode => '0600',
owner => $::couchdb::base::couchdb_user,