Saltstack Official FirewallD Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 line
702B

  1. # == State: firewalld._config
  2. #
  3. # This state configures firewalld.
  4. #
  5. /etc/firewalld/:
  6. file.directory: # make sure this is a directory
  7. - user: root
  8. - group: root
  9. - mode: 750
  10. - require:
  11. - pkg: firewalld # make sure package is installed
  12. - watch_in:
  13. - service: firewalld # restart service
  14. /etc/firewalld/firewalld.conf:
  15. file:
  16. - managed
  17. - name: /etc/firewalld/firewalld.conf
  18. - user: root
  19. - group: root
  20. - mode: 640
  21. - source: salt://firewalld/files/firewalld.conf
  22. - template: jinja
  23. - require:
  24. - pkg: firewalld # make sure package is installed
  25. - watch_in:
  26. - service: firewalld # restart service