summaryrefslogtreecommitdiff
path: root/manifests/add_user.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-04-04 12:36:24 -0400
committerMicah Anderson <micah@riseup.net>2013-04-04 12:36:24 -0400
commitdc367e53b45349ef849247fc93c664c548c90359 (patch)
tree14531add8c5bf7ac20f66c9dff0262319b7b0133 /manifests/add_user.pp
parent66d918ddb6454fd4a30baed9b49baad98e274243 (diff)
clean-up commit: lint, standardize spacing, properly enclose variables, etc
Diffstat (limited to 'manifests/add_user.pp')
-rw-r--r--manifests/add_user.pp6
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/add_user.pp b/manifests/add_user.pp
index e455124..cd72530 100644
--- a/manifests/add_user.pp
+++ b/manifests/add_user.pp
@@ -6,10 +6,10 @@ define couchdb::add_user ( $roles, $pw ) {
$port = 5984
}
- couchdb::update { "update_user_$name":
+ couchdb::update { "update_user_${name}":
port => $port,
db => '_users',
- id => "org.couchdb.user:$name",
- data => "{\"type\": \"user\", \"name\": \"$name\", \"roles\": $roles, \"password\": \"$pw\"}",
+ id => "org.couchdb.user:${name}",
+ data => "{\"type\": \"user\", \"name\": \"${name}\", \"roles\": ${roles}, \"password\": \"${pw}\"}",
}
}