+<%- if @pg_hostname[0] == "/" -%>
+type="unix"
+address="<%= @pg_hostname %>/.s.PGSQL.<%= @pg_port %>"
+<%- else -%>
+type="tcp"
+address="<%= @pg_hostname %>:<%= @pg_port %>"
+<%- end -%>
+
+<%- if !@redis_host.nil? && @redis_host != "" -%>
+[redis]
+<%- if @redis_host[0] == "/" -%>
+type="unix"
+<%- else -%>
+type="tcp"
+<%- end -%>
+address="<%= @redis_host %>"
+database=0
+<%- end -%>