summaryrefslogtreecommitdiff
path: root/puppet/modules/couchdb/manifests/query
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/couchdb/manifests/query')
-rw-r--r--puppet/modules/couchdb/manifests/query/setup.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/puppet/modules/couchdb/manifests/query/setup.pp b/puppet/modules/couchdb/manifests/query/setup.pp
new file mode 100644
index 00000000..451eb536
--- /dev/null
+++ b/puppet/modules/couchdb/manifests/query/setup.pp
@@ -0,0 +1,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'];
+ }
+}