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.

28 lines
656B

  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. # The following states are inert by default and can be used by other states to
  16. # trigger a restart or reload as needed.
  17. apache-reload:
  18. module.wait:
  19. - name: service.reload
  20. - m_name: {{ apache.service }}
  21. apache-restart:
  22. module.wait:
  23. - name: service.restart
  24. - m_name: {{ apache.service }}