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 line
674B

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=sls
  3. {#- Get the `tplroot` from `tpldir` #}
  4. {%- set tplroot = tpldir.split('/')[0] %}
  5. {%- set sls_config_clean = tplroot ~ '.config.clean' %}
  6. {%- from tplroot ~ "/map.jinja" import apache with context %}
  7. include:
  8. - {{ sls_config_clean }}
  9. apache-package-clean-pkg-removed:
  10. {%- if grains.os_family == 'Windows' %}
  11. chocolatey.uninstalled:
  12. - name: {{ apache.pkg.name }}
  13. {%- else %}
  14. pkg.removed:
  15. - names:
  16. - {{ apache.pkg.name }}
  17. - httpd-tools
  18. {%- endif %}
  19. - require:
  20. - sls: {{ sls_config_clean }}
  21. user.absent:
  22. - name: {{ apache.user }}
  23. group.absent:
  24. - name: {{ apache.group }}