Skip to content

Commit

Permalink
fix: indent for rails_cache_store redis type
Browse files Browse the repository at this point in the history
  • Loading branch information
ministicraft authored and ekohl committed Jun 18, 2020
1 parent fe7b09a commit 7462292
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions templates/settings.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,22 @@
:rails_cache_store:
:type: <%= scope["foreman::rails_cache_store"]["type"] %>
<% if scope["foreman::rails_cache_store"]["type"] == "redis" -%>
:urls:
:urls:
<% if scope["foreman::rails_cache_store"].key?("urls") -%>
<% scope["foreman::rails_cache_store"]["urls"].each do |url| -%>
- redis://<%= url %>
- redis://<%= url %>
<% end -%>
<% else -%>
- redis://localhost:8479/0
- redis://localhost:8479/0
<% end -%>
:options:
:options:
<% if scope["foreman::rails_cache_store"].key?("options") -%>
<% scope["foreman::rails_cache_store"]["options"].each do |option,value| -%>
:<%= option %>: <%= value %>
:<%= option %>: <%= value %>
<% end -%>
<% else -%>
:compress: true
:namespace: foreman
:compress: true
:namespace: foreman
<% end -%>
<% end -%>
<% if scope.lookupvar("foreman::apache") && !scope.lookupvar("foreman::passenger") -%>
Expand Down

0 comments on commit 7462292

Please sign in to comment.