diff options
Diffstat (limited to 'manifests/bigcouch/document.pp')
-rw-r--r-- | manifests/bigcouch/document.pp | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/manifests/bigcouch/document.pp b/manifests/bigcouch/document.pp index f72f205..13f4ac1 100644 --- a/manifests/bigcouch/document.pp +++ b/manifests/bigcouch/document.pp @@ -1,9 +1,14 @@ -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 +define couchdb::bigcouch::document ( + $db, + $id, + $host = '127.0.0.1:5986', + $data ='{}', + $ensure ='content') { + couchdb::document { $name: + ensure => $ensure, + host => $host, + db => $db, + id => $id, + data => $data } } |