Bring in baremetal support
[fuel.git] / mcp / salt-formulas / maas / pxe_nat.sls
1 net.ipv4.ip_forward:
2   sysctl.present:
3     - value: 1
4
5 iptables_pxe_nat:
6   iptables.append:
7     - table: nat
8     - chain: POSTROUTING
9     - jump: MASQUERADE
10     - destination: 0/0
11     - source: {{ salt['pillar.get']('_param:single_address') }}/24
12     - save: True
13
14 iptables_pxe_source:
15   iptables.append:
16     - table: filter
17     - chain: INPUT
18     - jump: ACCEPT
19     - destination: 0/0
20     - source: {{ salt['pillar.get']('_param:single_address') }}/24
21     - save: True
22
23 iptables_pxe_destination:
24   iptables.append:
25     - table: filter
26     - chain: INPUT
27     - jump: ACCEPT
28     - destination: {{ salt['pillar.get']('_param:single_address') }}/24
29     - source: 0/0
30     - save: True