Changeset 10587 in genesis for tools


Ignore:
Timestamp:
Apr 26, 2012, 1:54:36 PM (13 years ago)
Author:
rick
Message:

Split configs for depecrated normal proxy and default hybrid setup, to avoid my
brain from overheating.

Related-To: nodefactory#129

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r10585 r10587  
    538538  #
    539539
    540   {% if service_proxy_ileiden or service_proxy_normal %}
     540  {% if service_proxy_ileiden %}
    541541    pf_rules="/etc/pf.hybrid.conf"
    542542    pf_flags="-D ext_if=$externalif -D ext_if_net=$externalif:network -D masterip=$masterip"
    543    
    544     {% if service_proxy_ileiden %}
    545       pf_flags="$pf_flags -D publicnat=80,443"
    546     {% else %}
    547       pf_flags="$pf_flags -D publicnat=0"
    548     {% endif %}
    549 
    550     {% if service_proxy_normal %}
    551       pf_flags="$pf_flags -D ext_if_default_route={{ gateway|default('127.127.127.127') }}"
    552       lvrouted_flags="$lvrouted_flags -z $list_ileiden_proxies"
    553     {% endif %}
     543    pf_flags="$pf_flags -D publicnat=80,443"
     544  {% elif service_proxy_normal %}
     545    pf_rules="/etc/pf.proxy_normal.conf"
     546    pf_flags="-D ext_if=$externalif -D ext_if_net=$externalif:network -D masterip=$masterip"
     547    pf_flags="$pf_flags -D ext_if_gw=${ext_if_gw:-"{{ gateway|default('127.127.127.127') }}"}"
     548    lvrouted_flags="$lvrouted_flags -z $list_ileiden_proxies"
    554549  {% else %}
    555550    pf_rules="/etc/pf.node.conf"
     551    pf_flags=""
    556552  {% endif %}
    557553
Note: See TracChangeset for help on using the changeset viewer.