Unmask OpenDaylight service explicitly
[fuel.git] / mcp / salt-formulas / maas / pxe_nat.sls
1 ##############################################################################
2 # Copyright (c) 2017 Mirantis Inc., Enea AB and others.
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7 ##############################################################################
8 net.ipv4.ip_forward:
9   sysctl.present:
10     - value: 1
11
12 iptables_pxe_nat:
13   iptables.append:
14     - table: nat
15     - chain: POSTROUTING
16     - jump: MASQUERADE
17     - destination: 0/0
18     - source: {{ salt['pillar.get']('_param:single_address') }}/24
19     - save: True
20
21 iptables_pxe_source:
22   iptables.append:
23     - table: filter
24     - chain: INPUT
25     - jump: ACCEPT
26     - destination: 0/0
27     - source: {{ salt['pillar.get']('_param:single_address') }}/24
28     - save: True
29
30 iptables_pxe_destination:
31   iptables.append:
32     - table: filter
33     - chain: INPUT
34     - jump: ACCEPT
35     - destination: {{ salt['pillar.get']('_param:single_address') }}/24
36     - source: 0/0
37     - save: True