Saltstack Official Apache Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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