Saltstack Official Apache Formula
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

68 lines
1.6KB

  1. {% from "apache/map.jinja" import apache with context %}
  2. include:
  3. - apache
  4. nologin_shell_for_apache_user:
  5. user.present:
  6. - name: {{ apache.user }}
  7. - shell: /sbin/nologin
  8. - require:
  9. - pkg: apache
  10. - watch_in:
  11. - module: apache-restart
  12. - require_in:
  13. - module: apache-restart
  14. - module: apache-reload
  15. - service: apache
  16. remove_httpd_manual:
  17. pkg.removed:
  18. - name: httpd-manual
  19. - require:
  20. - pkg: apache
  21. - watch_in:
  22. - module: apache-restart
  23. - require_in:
  24. - module: apache-restart
  25. - module: apache-reload
  26. - service: apache
  27. /etc/httpd/conf.d/autoindex.conf:
  28. file.managed:
  29. - contents: |
  30. # File commented with Salt, Do NOT Edit
  31. # Do NOT delete because it is contained in the rpm, so it wil re-created on the next upgrade
  32. # It is emptied for hardening purpose
  33. - require:
  34. - pkg: apache
  35. - watch_in:
  36. - module: apache-restart
  37. - require_in:
  38. - module: apache-restart
  39. - module: apache-reload
  40. - service: apache
  41. /etc/httpd/cgi-bin/printenv:
  42. file.absent:
  43. - require:
  44. - pkg: apache
  45. - watch_in:
  46. - module: apache-restart
  47. - require_in:
  48. - module: apache-restart
  49. - module: apache-reload
  50. - service: apache
  51. /etc/httpd/cgi-bin/test-cgi:
  52. file.absent:
  53. - require:
  54. - pkg: apache
  55. - watch_in:
  56. - module: apache-restart
  57. - require_in:
  58. - module: apache-restart
  59. - module: apache-reload
  60. - service: apache