summaryrefslogtreecommitdiff
path: root/manifests/bigcouch/document.pp
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2013-08-15 12:52:45 +0200
committerAzul <azul@riseup.net>2013-08-28 12:52:35 +0200
commit8a0f585cbdb8f54d495f636e36b812a3d5b8b804 (patch)
tree6892cea9b2064ae3ee0c829417e07e1984959376 /manifests/bigcouch/document.pp
parent16a3583c359cd57ff52866a8dfd933726d120d30 (diff)
use couchdb::document to create bigcouch node config (feature #3485)
fixes the use of couch-doc-update with non standart hosts replaces couchdb::bigcouch::query with couchdb::bigcouch::document
Diffstat (limited to 'manifests/bigcouch/document.pp')
-rw-r--r--manifests/bigcouch/document.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/manifests/bigcouch/document.pp b/manifests/bigcouch/document.pp
new file mode 100644
index 0000000..f72f205
--- /dev/null
+++ b/manifests/bigcouch/document.pp
@@ -0,0 +1,9 @@
+define couchdb::bigcouch::document ( $host='127.0.0.1:5986', $db, $id, $data='{}', $ensure='content') {
+ couchdb::document { "${name}":
+ host => $host,
+ db => $db,
+ id => $id,
+ data => $data,
+ ensure => $ensure
+ }
+}