Compare commits
2 Commits
250d97dd3b
...
732bc608c8
Author | SHA1 | Date | |
---|---|---|---|
732bc608c8 | |||
5aaad6f6ca |
@ -28,7 +28,6 @@ apache:
|
|||||||
ServerAdmin: False
|
ServerAdmin: False
|
||||||
ServerAlias: False
|
ServerAlias: False
|
||||||
Formula_Append: |
|
Formula_Append: |
|
||||||
Include /etc/apache2/snippets.d/ssl_themis.conf
|
|
||||||
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript
|
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript
|
||||||
SetOutputFilter DEFLATE
|
SetOutputFilter DEFLATE
|
||||||
<FilesMatch '\.php$'>
|
<FilesMatch '\.php$'>
|
||||||
|
@ -1,13 +1,3 @@
|
|||||||
{%- set host = grains['host'] -%}
|
|
||||||
{%- set fqdn = grains['fqdn'] -%}
|
|
||||||
|
|
||||||
apache:
|
apache:
|
||||||
global:
|
global:
|
||||||
ServerAdmin: system@lysergic.dev
|
ServerAdmin: system@lysergic.dev
|
||||||
|
|
||||||
profile:
|
|
||||||
apache-httpd:
|
|
||||||
snippets:
|
|
||||||
ssl_{{ host }}:
|
|
||||||
- 'SSLCertificateFile "/etc/ssl/{{ host }}/{{ fqdn }}.crt"'
|
|
||||||
- 'SSLCertificateKeyFile "/etc/ssl/{{ host }}/{{ fqdn }}.key"'
|
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
{%- set snippetsdir = '/etc/apache2/snippets.d' -%}
|
|
||||||
{%- set mypillar = salt['pillar.get']('profile:apache-httpd', {}) -%}
|
|
||||||
|
|
||||||
{{ snippetsdir }}:
|
|
||||||
file.directory:
|
|
||||||
- makedirs: True
|
|
||||||
|
|
||||||
{%- if 'snippets' in mypillar %}
|
|
||||||
{%- for snippet, config in mypillar['snippets'].items() %}
|
|
||||||
{{ snippetsdir }}/{{ snippet }}.conf:
|
|
||||||
file.managed:
|
|
||||||
- contents:
|
|
||||||
{%- for line in config %}
|
|
||||||
- {{ line }}
|
|
||||||
{%- endfor %}
|
|
||||||
- require:
|
|
||||||
- file: {{ snippetsdir }}
|
|
||||||
{#- formula dependencies #}
|
|
||||||
- require_in:
|
|
||||||
- module: apache-service-running-restart
|
|
||||||
- service: apache-service-running
|
|
||||||
- watch_in:
|
|
||||||
- module: apache-service-running-reload
|
|
||||||
{%- endfor %}
|
|
||||||
{%- endif %}
|
|
||||||
|
|
||||||
include:
|
|
||||||
- apache.config
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
|||||||
include:
|
include:
|
||||||
- profile.apache-httpd
|
- apache.config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user