summaryrefslogtreecommitdiffstats
path: root/pillar/global/init.sls
blob: c4b13004601aa27ae481c04f83c4a884cc9b91d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{%- from slspath ~ '/../map.jinja' import firewall_interfaces, public, internal, backend %}

include:
  - role.salt.common
  - role.salt.minion
  - .mta
  - .ssh

managed_header_pound: |
  ### This file is managed via https://git.com.de/LibertaCasa/salt
  ### Manual changes will be overwritten

{%- if grains['os'] == 'SUSE' %}
zypper:
  refreshdb_force: False

firewalld:
  FlushAllOnReload: 'yes'
  zones:
    internal:
      short: Internal
      {{ firewall_interfaces(internal) }}
      ports:
        - comment: node_exporter
          port: 9200
          protocol: tcp
    public:
      short: Public
      {{ firewall_interfaces(public) }}
    {%- if backend | length %}
    backend:
      {{ firewall_interfaces(backend) }}
    {%- endif %}
{%- endif %}

mine_functions:
  network.ip_addrs: []
  network.ip_addrs6: []
  network.interfaces: []