{
  "datacenter": "<%= scope['::consul::datacenter'] %>",
  "data_dir": "<%= scope['::consul::data_dir'] %>",
  "log_level": "INFO",
  "node_name": "<%= scope['::certname'] %>",
  "server": <%= scope['::consul::server'] %>,
  <%- if scope['::consul::server'] == true %>
  "bootstrap_expect": <%= scope['::consul::bootstrap_expect'] %>
  <%- end %>
  <%- if scope['::web_ui'] == true %>
  "ui_dir": "/opt/consul/web"
  <%- end %>
}

{
  "datacenter": "<%= scope['::consul::datacenter'] %>",
  "data_dir": "<%= scope['::consul::data_dir'] %>",
  "log_level": "INFO",
  "node_name": "<%= scope['::certname'] %>",
  "server": <%= scope['::consul::server'] %>,
  <% if scope['::consul::server'] == true -%>
  "bootstrap_expect": <%= scope['::consul::bootstrap_expect'] %>,
  <% end -%>
  <% if scope['::web_ui'] == true -%>
  "ui_dir": "/opt/consul/web",
  <% end -%>
  "client_addr": "0.0.0.0"
}

Add client address bind to listen on public interface
Add client address bind to listen on public interface
