Sha256: 10d3f1b8cb376d48c062453f40133aab45149a3e6e44f05dd582044fdb288694

Contents?: true

Size: 767 Bytes

Versions: 5

Compression:

Stored size: 767 Bytes

Contents

#
# MKIt generated file
#
<% service_port.each { |port|%>
#
# start <%=name%>-<%=port.external_port%>
#
frontend <%=name%>-<%=port.external_port%>-front
  bind <%=lease.ip%>:<%=port.external_port%>
  mode <%=port.mode%>
  #
  use_backend <%=name%>-<%=port.external_port%>-back

backend <%=name%>-<%=port.external_port%>-back
  mode <%=port.mode%>
  balance <%=port.load_balance%>
 <%if port.mode == 'http'%>
  option httpclose
  option forwardfor
  cookie JSESSIONID prefix
 <%end%><%port.service.pod.each { | pod | %>
  server <%=pod.name%>  <%=pod.ip%><%unless port.internal_port.nil? || port.internal_port.empty? then%><%=":#{port.internal_port}"%> <%if port.mode == 'http'%>cookie A<%end%> check<%end%>
  <%}%>
#
# end of <%=name%>-<%=port.external_port%>
#
<%}%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mkit-0.5.0 lib/mkit/app/templates/haproxy/xapp_haproxy.cfg.erb
mkit-0.4.3 lib/mkit/app/templates/haproxy/xapp_haproxy.cfg.erb
mkit-0.4.2 lib/mkit/app/templates/haproxy/xapp_haproxy.cfg.erb
mkit-0.4.1 lib/mkit/app/templates/haproxy/xapp_haproxy.cfg.erb
mkit-0.4.0 lib/mkit/app/templates/haproxy/xapp_haproxy.cfg.erb