From 14f863f54c46bdf6f681c8a5ba660aba6a7419eb Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 25 Jun 2014 18:02:35 -0700 Subject: minor lint --- manifests/mirror_db.pp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/manifests/mirror_db.pp b/manifests/mirror_db.pp index a6ba549..7615c65 100644 --- a/manifests/mirror_db.pp +++ b/manifests/mirror_db.pp @@ -6,16 +6,16 @@ define couchdb::mirror_db ( $role='replication' ) { - $source = "$from/$name" + $source = "${from}/${name}" if $to == '' { $target = $name } - else { $target = "$to/$name" } + else { $target = "${to}/${name}" } couchdb::document { "${name}_replication": - db => "_replicator", - id => "${name}_replication", - netrc => "/etc/couchdb/couchdb-${user}.netrc", - host => $host, - data => "{ \"source\": \"${source}\", \"target\": \"${target}\", \"continuous\": true, \"user_ctx\": { \"name\": \"${user}\", \"roles\": [\"${role}\"] } }", + db => "_replicator", + id => "${name}_replication", + netrc => "/etc/couchdb/couchdb-${user}.netrc", + host => $host, + data => "{ \"source\": \"${source}\", \"target\": \"${target}\", \"continuous\": true, \"user_ctx\": { \"name\": \"${user}\", \"roles\": [\"${role}\"] } }", require => Couchdb::Query["create_db_${name}"] } } -- cgit v1.2.3