Browse Source

feat(service): add option to include existing services into a service

pull/60/head
K. de Jong 6 months ago
parent
commit
124ad06a68
No account linked to committer's email address
3 changed files with 9 additions and 0 deletions
  1. +5
    -0
      firewalld/files/service.xml
  2. +2
    -0
      pillar.example
  3. +2
    -0
      test/integration/default/files/_mapdata/almalinux-8.yaml

+ 5
- 0
firewalld/files/service.xml View File

@@ -84,4 +84,9 @@
<include service="{{ v }}" />
{%- endfor %}
{%- endif %}
{%- if 'includes' in service %}
{%- for v in service.includes %}
<include service="{{ v }}" />
{%- endfor %}
{%- endif %}
</service>

+ 2
- 0
pillar.example View File

@@ -55,6 +55,8 @@ firewalld:
ipv6:
- ff02::fb
- ff02::fc
includes:
- dhcp

zabbixcustom:
short: Zabbixcustom

+ 2
- 0
test/integration/default/files/_mapdata/almalinux-8.yaml View File

@@ -99,6 +99,8 @@ values:
source_ports:
tcp:
- 21
includes:
- dhcp
zabbixcustom:
description: zabbix custom rule
ports:

Loading…
Cancel
Save