Skip to content

Commit

Permalink
updated template with 0.6+ params
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Crowe committed Dec 13, 2014
1 parent 462cfdd commit c394b3b
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions templates/confd.toml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,15 @@ srv_domain = "<%= @srv_domain %>"
<% if @verbose != nil -%>
verbose = <%= @verbose %>
<% end -%>
<% if @consul != nil -%>
consul = <%= @consul %>
<% end -%>
<% if @consul_addr -%>
prefix = "<%= @consul_addr %>"
<% end -%>
<% if @etcd_nodes -%>
etcd_nodes = [
<% @etcd_nodes.each do |node| -%>
<% if @nodes -%>
nodes = [
<% @nodes.each do |node| -%>
"<%= node %>",
<% end -%>
]
<% end -%>
<% if @etcd_scheme -%>
etcd_scheme = "<%= @etcd_scheme %>"
<% if @scheme -%>
etcd_scheme = "<%= @scheme %>"
<% end -%>
<% if @client_cert -%>
client_cert = "<%= @client_cert_path %>"
Expand Down

0 comments on commit c394b3b

Please sign in to comment.