Skip to content

Commit

Permalink
Merge pull request #643 from Velgus/velgus/redisdb-ssl-config
Browse files Browse the repository at this point in the history
Add SSL config for RedisDB
  • Loading branch information
albertvaka authored Oct 15, 2019
2 parents ff83d70 + 5d286a6 commit ad5d9c3
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions templates/default/redisdb.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,31 @@ 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| -%>
- <%= t %>
<% 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 %>
Expand Down

0 comments on commit ad5d9c3

Please sign in to comment.