diff options
author | Azul <azul@riseup.net> | 2013-09-20 09:27:24 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2013-09-20 09:27:24 +0200 |
commit | 1eff45c923e2ff196e3b52d1033185453358e047 (patch) | |
tree | 0445c094fb6b2b5cc06362a922f2a0d08aa9909b | |
parent | a6d9c2dea3d67f7368fef373e96bfb0fda612851 (diff) |
use require => rather than the -> syntax
-rw-r--r-- | manifests/create_db.pp | 5 |
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}"] } } |