summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-06-25 18:02:35 -0700
committerelijah <elijah@riseup.net>2014-06-25 18:02:35 -0700
commit14f863f54c46bdf6f681c8a5ba660aba6a7419eb (patch)
treecb017e0fb762d27ab69a6f74c5d9c6a9aab85499
parent1ecb96caeb9cf236a4aa94baa8ea3a079d178cae (diff)
minor lint
-rw-r--r--manifests/mirror_db.pp14
1 files 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}"]
}
}