init.sls 324 B

123456789101112131415161718192021
  1. #
  2. # nftables state
  3. #
  4. nftables:
  5. pkg.installed:
  6. - name: nftables
  7. service.running:
  8. - enable: true
  9. - reload: true
  10. /etc/nftables.conf:
  11. file.managed:
  12. - source: salt://nftables/nftables.conf.tmpl
  13. - template: jinja
  14. - mode: 755
  15. - require:
  16. - pkg: nftables
  17. - watch_in:
  18. - service: nftables