summaryrefslogtreecommitdiff
path: root/puppet/modules/tapicero/templates/tapicero.yaml.erb
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/tapicero/templates/tapicero.yaml.erb')
-rw-r--r--puppet/modules/tapicero/templates/tapicero.yaml.erb6
1 files changed, 5 insertions, 1 deletions
diff --git a/puppet/modules/tapicero/templates/tapicero.yaml.erb b/puppet/modules/tapicero/templates/tapicero.yaml.erb
index 182a6aa6..d6ea56fa 100644
--- a/puppet/modules/tapicero/templates/tapicero.yaml.erb
+++ b/puppet/modules/tapicero/templates/tapicero.yaml.erb
@@ -1,3 +1,5 @@
+<%- require 'json' -%>
+
#
# Default configuration options for Tapicero
#
@@ -25,7 +27,9 @@ options:
# prefix for per user databases:
db_prefix: "user-"
mode: <%= @couchdb_mode %>
- replication: <%= @couchdb_replication %>
+<%- if @couchdb_replication %>
+ replication: <%= @couchdb_replication.to_json %>
+<%- end -%>
# security settings to be used for the per user databases
security: