Saltstack Official Apache 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.

32 lines
721B

  1. {% from "apache/map.jinja" import apache with context %}
  2. apache:
  3. pkg.installed:
  4. - name: {{ apache.server }}
  5. group.present:
  6. - name: {{ apache.group }}
  7. - system: True
  8. user.present:
  9. - name: {{ apache.user }}
  10. - gid: {{ apache.group }}
  11. - system: True
  12. service.running:
  13. - name: {{ apache.service }}
  14. - enable: True
  15. {{ apache.vhostdir }}:
  16. file.directory:
  17. - makedirs: True
  18. # The following states are inert by default and can be used by other states to
  19. # trigger a restart or reload as needed.
  20. apache-reload:
  21. module.wait:
  22. - name: service.reload
  23. - m_name: {{ apache.service }}
  24. apache-restart:
  25. module.wait:
  26. - name: service.restart
  27. - m_name: {{ apache.service }}