MythicSalt/states/apache/init.sls

68 lines
1.1 KiB
Plaintext

apache:
pkg.installed:
- name: apache2
apache_certs_group:
group.present:
- name: ssl-cert
- system: true
- addusers:
- www-data
apache_cgi_module:
apache_module.enabled:
- name: cgi
apache_cgid_module:
apache_module.enabled:
- name: cgid
apache_headers_module:
apache_module.enabled:
- name: headers
apache_include_module:
apache_module.enabled:
- name: include
apache_mpm_module:
apache_module.disabled:
- name: mpm_prefork
apache_module.enabled:
- name: mpm_event
apache_proxy_module:
apache_module.enabled:
- name: proxy
apache_proxy_http_module:
apache_module.enabled:
- name: proxy_http
apache_remoteip_module:
apache_module.enabled:
- name: remoteip
apache_rewrite_module:
apache_module.enabled:
- name: rewrite
apache_ssl_module:
apache_module.enabled:
- name: ssl
apache_disable_default_site:
apache_site.disabled:
- name: 000-default
apache_disable_default_ssl_site:
apache_site.disabled:
- name: default-ssl
apache_service:
service.running:
- name: apache2
- enable: True
- require:
- pkg: apache2