Skip to content

Commit

Permalink
Merge pull request #351 from thomasmitchell/consul-template-fix
Browse files Browse the repository at this point in the history
Add matching %>s to consul ctl
  • Loading branch information
frodenas authored Nov 7, 2019
2 parents 17975e5 + f0c5d42 commit baa3a75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jobs/consul_exporter/templates/bin/consul_exporter_ctl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ case $1 in
echo $$ > ${PIDFILE}

exec consul_exporter \
<% if p('consul_exporter.consul_allow_stale') \
<% if p('consul_exporter.consul_allow_stale') %> \
--consul.allow_stale \
<% end %> \
<% if_p('consul_exporter.consul_ca') do %> \
Expand All @@ -34,7 +34,7 @@ case $1 in
<% if_p('consul_exporter.consul_key') do %> \
--consul.key-file="/var/vcap/jobs/consul_exporter/config/consul_key.pem" \
<% end %> \
<% if p('consul_exporter.consul_health_summary') \
<% if p('consul_exporter.consul_health_summary') %> \
--consul.health-summary \
<% end %> \
<% if p('consul_exporter.consul_require_consistent') %> \
Expand All @@ -46,7 +46,7 @@ case $1 in
<% if_p('consul_exporter.consul_server_name') do |consul_server_name| %> \
--consul.server-name="<%= consul_server_name %>" \
<% end %> \
<% if p('consul_exporter.consul_insecure') \
<% if p('consul_exporter.consul_insecure') %> \
--consul.insecure \
<% end %> \
<% if_p('consul_exporter.consul_timeout') do |consul_timeout| %> \
Expand Down

0 comments on commit baa3a75

Please sign in to comment.