Saltstack Official FirewallD Formula
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

32 lines
827B

  1. # == State: firewalld._config
  2. #
  3. # This state configures firewalld.
  4. #
  5. {% from "firewalld/map.jinja" import firewalld with context %}
  6. directory_firewalld:
  7. file.directory: # make sure this is a directory
  8. - name: /etc/firewalld
  9. - user: root
  10. - group: root
  11. - mode: 750
  12. - require:
  13. - pkg: package_firewalld # make sure package is installed
  14. - listen_in:
  15. - module: service_firewalld # restart service
  16. config_firewalld:
  17. file.managed:
  18. - name: /etc/firewalld/firewalld.conf
  19. - user: root
  20. - group: root
  21. - mode: 640
  22. - source: salt://firewalld/files/firewalld.conf
  23. - template: jinja
  24. - require:
  25. - pkg: package_firewalld # make sure package is installed
  26. - file: directory_firewalld
  27. - listen_in:
  28. - module: service_firewalld # restart service