Saltstack Official FirewallD Formula
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

_config.sls 702B

10 år sedan
1234567891011121314151617181920212223242526272829
  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