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.

12345678910111213141516171819202122232425
  1. # -*- coding: utf-8 -*-
  2. # vim: ft=sls
  3. {%- set tplroot = tpldir.split('/')[0] %}
  4. {%- set sls_service_clean = tplroot ~ '.service.clean' %}
  5. {%- set sls_modules_clean = tplroot ~ '.config.modules.clean' %}
  6. {%- from tplroot ~ "/map.jinja" import apache with context %}
  7. include:
  8. - .modules.clean
  9. - {{ sls_service_clean }}
  10. apache-config-clean-file-absent:
  11. file.absent:
  12. - names:
  13. - {{ apache.config }}
  14. - {{ apache.logdir }}
  15. - {{ apache.vhostdir }}
  16. # apache.portsfile
  17. - /etc/apache2
  18. - /etc/httpd
  19. - {{ apache.confdir }}/server-status{{ apache.confext }}
  20. - require:
  21. - sls: {{ sls_service_clean }}
  22. - sls: {{ sls_modules_clean }}