Saltstack Official Apache Formula
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

43 行
1.2KB

  1. #
  2. # This file is managed by Salt! Do not edit by hand!
  3. #
  4. {%- from "apache/map.jinja" import apache with context %}
  5. {%- import_yaml "apache/hardening-values.yaml" as hardening_values %}
  6. {%- from "apache/lib.sls" import directives_output, container_output with context %}
  7. {%- set list_interfaces_ports = [] %}
  8. {%- for name, vhost in salt['pillar.get']('apache:VirtualHost', {}).items() %}
  9. {%- if not vhost.get('absent', False) %}
  10. {%- set items = vhost.item.split() %}
  11. {%- for item in items if item not in list_interfaces_ports %}
  12. {%- do list_interfaces_ports.append(item) %}
  13. {%- endfor %}
  14. {%- endif %}
  15. {%- endfor %}
  16. {%- for item in list_interfaces_ports %}
  17. Listen {{ item }}
  18. {% else %}
  19. Listen *:80
  20. {%- endfor %}
  21. {{ directives_output(server_config, 0) }}
  22. Include conf.modules.d/*.conf
  23. User {{ apache.user }}
  24. Group {{ apache.group }}
  25. {%- for container_name, container_data_list in server_config.get('containers', {}).items() %}
  26. {%- for container_data in container_data_list %}
  27. {{ container_output(container_name, container_data) }}
  28. {%- endfor %}
  29. {%- endfor %}
  30. IncludeOptional {{ apache.confdir }}/*.conf
  31. {%- if apache.vhostdir != apache.confdir %}
  32. IncludeOptional {{ apache.vhostdir }}/*.conf
  33. {%- endif %}