custom hostgroups in soc

This commit is contained in:
m0duspwnens
2023-02-24 14:24:47 -05:00
parent afccd3f820
commit 3e2e68fbd0
4 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
soc_firewall_yaml:
file.managed:
- name: /opt/so/saltstack/local/salt/firewall/soc_firewall.yaml
- source: salt://firewall/soc/soc_firewall.yaml.jinja
- template: jinja

View File

@@ -0,0 +1,2 @@
{% import_yaml 'firewall/soc/defaults_soc_firewall.yaml' as DEFAULT_SOC_FIREWALL %}
{% set SOC_FIREWALL = salt['pillar.get'}('firewall:custom_groups:groups', DEFAULT_SOC_FIREWALL.firewall.hostgroups, merge=True) %}

View File

@@ -0,0 +1 @@
{% from 'firewall/soc/soc.map.jinja' import SOC_FIREWALL %}