summaryrefslogtreecommitdiff
path: root/manifests/create_db.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/create_db.pp')
-rw-r--r--manifests/create_db.pp1
1 files changed, 1 insertions, 0 deletions
diff --git a/manifests/create_db.pp b/manifests/create_db.pp
index 6a6d18f..91c4a1d 100644
--- a/manifests/create_db.pp
+++ b/manifests/create_db.pp
@@ -9,6 +9,7 @@ define couchdb::create_db ( $host='127.0.0.1:5984',
cmd => 'PUT',
host => $host,
url => $name,
+ unless => "/usr/bin/curl --netrc-file /etc/couchdb/couchdb.netrc ${host}/${name}"
}
couchdb::query { "db_security_${name}":