1234567891011121314151617181920212223242526272829 |
- #
- # nftables state
- #
- nftables:
- pkg.installed:
- - name: nftables
- service.running:
- - enable: true
- - reload: true
- /etc/nftables.conf:
- file.managed:
- - source: salt://nftables/nftables.conf.tmpl
- - template: jinja
- - mode: 755
- - require:
- - pkg: nftables
- - watch_in:
- - service: nftables
- purge-iptables:
- pkg.purged:
- - pkgs:
- - iptables-persistent
- {%- if not 'docker' in salt['pillar.get']('nodes:' ~ grains['id'] ~ ':roles', []) %}
- - iptables
- {%- endif %}
|