From 1eff45c923e2ff196e3b52d1033185453358e047 Mon Sep 17 00:00:00 2001 From: Azul Date: Fri, 20 Sep 2013 09:27:24 +0200 Subject: use require => rather than the -> syntax --- manifests/create_db.pp | 5 ++--- 1 file 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}"] } } -- cgit v1.2.3