From 5d286a6da144056a055929ead62d4b8bf6fa6036 Mon Sep 17 00:00:00 2001 From: Velgus Date: Wed, 2 Oct 2019 10:02:45 -0700 Subject: [PATCH] Add SSL config for RedisDB --- templates/default/redisdb.yaml.erb | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/templates/default/redisdb.yaml.erb b/templates/default/redisdb.yaml.erb index e610af37..86144020 100644 --- a/templates/default/redisdb.yaml.erb +++ b/templates/default/redisdb.yaml.erb @@ -14,6 +14,21 @@ instances: <% if i.key?("db") -%> db: <%= i["db"] %> <% end -%> + <% if i.key?("ssl") -%> + ssl: <%= i["ssl"] %> + <% if i.key?("ssl_keyfile") -%> + ssl_keyfile: <%= i["ssl_keyfile"] %> + <% end %> + <% if i.key?("ssl_certfile") -%> + ssl_certfile: <%= i["ssl_certfile"] %> + <% end %> + <% if i.key?("ssl_ca_certs") -%> + ssl_ca_certs: <%= i["ssl_ca_certs"] %> + <% end %> + <% if i.key?("ssl_cert_reqs") -%> + ssl_cert_reqs: <%= i["ssl_cert_reqs"] %> + <% end %> + <% end -%> <% if i.key?("tags") -%> tags: <% i["tags"].each do |t| -%> @@ -21,9 +36,9 @@ instances: <% end -%> <% end -%> <% if i.key?("keys") -%> - <% if i.key?("warn_on_missing_keys") -%> + <% if i.key?("warn_on_missing_keys") -%> warn_on_missing_keys: <%= i['warn_on_missing_keys'] %> - <% end -%> + <% end -%> keys: <% i["keys"].each do |k| -%> - <%= k %>