summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2013-09-20 09:27:24 +0200
committerAzul <azul@riseup.net>2013-09-20 09:27:24 +0200
commit1eff45c923e2ff196e3b52d1033185453358e047 (patch)
tree0445c094fb6b2b5cc06362a922f2a0d08aa9909b
parenta6d9c2dea3d67f7368fef373e96bfb0fda612851 (diff)
use require => rather than the -> syntax
-rw-r--r--manifests/create_db.pp5
1 files changed, 2 insertions, 3 deletions
diff --git a/manifests/create_db.pp b/manifests/create_db.pp
index 690892c..9335e4b 100644
--- a/manifests/create_db.pp
+++ b/manifests/create_db.pp
@@ -4,8 +4,6 @@ define couchdb::create_db (
$readers="{\"names\": [], \"roles\": [] }" )
{
- Couchdb::Query["create_db_${name}"] -> Couchdb::Document["${name}_security"]
-
couchdb::query { "create_db_${name}":
cmd => 'PUT',
host => $host,
@@ -17,6 +15,7 @@ define couchdb::create_db (
db => $name,
id => '_security',
host => $host,
- data => "{ \"admins\": ${admins}, \"readers\": ${readers} }"
+ data => "{ \"admins\": ${admins}, \"readers\": ${readers} }",
+ require => Couchdb::Query["create_db_${name}"]
}
}