Pārlūkot izejas kodu

Merge pull request #36 from miska/master

Allow more services definition inside zone
tags/v0.9.0
Imran Iqbal pirms 4 gadiem
vecāks
revīzija
0d0f191449
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
2 mainītis faili ar 9 papildinājumiem un 5 dzēšanām
  1. +6
    -4
      firewalld/files/zone.xml
  2. +3
    -1
      pillar.example

+ 6
- 4
firewalld/files/zone.xml Parādīt failu

@@ -33,11 +33,13 @@
{%- endif %}
{%- endfor %}
{%- endif %}
{%- if 'services' in zone %}
{%- for v in zone.services %}
{%- for k,val in zone.items() %}
{%- if k.endswith("services") %}
{%- for v in val %}
<service name="{{ v }}" />
{%- endfor %}
{%- endif %}
{%- endfor %}
{%- endif %}
{%- endfor %}
{%- if 'ports' in zone %}
{%- for v in zone.ports %}
{%- if 'comment' in v %}

+ 3
- 1
pillar.example Parādīt failu

@@ -107,10 +107,12 @@ firewalld:
are accepted.
services:
- http
- zabbixcustom
- https
- ssh
- salt-minion
# Anything in zone definition ending with services will get merged into services
other_services:
- zabbixcustom
protocols:
- igmp
rich_rules:

Notiek ielāde…
Atcelt
Saglabāt