salt-common/sls/gentoo-mirrors/cache.sls
2017-05-10 17:20:45 +03:00

34 lines
979 B
YAML

# -*- mode: yaml -*-
include:
- nginx
- gentoo-mirrors.ssl-nginx
/etc/nginx/includes/gentoo-mirror-proxy-params.conf:
file.managed:
- source: salt://gentoo-mirrors/files/gentoo-mirror-proxy-params.conf
- mode: 644
- user: root
- group: root
- require:
- file: /etc/nginx/includes/
- watch_in:
- service: nginx-reload
/etc/nginx/vhosts.d/gentoo-mirror-cache.conf:
file.managed:
- source: salt://gentoo-mirrors/files/gentoo-mirror-cache.nginx.conf.tpl
- template: jinja
- defaults:
ssl: True
ssl_cert_path: /etc/ssl/nginx/gentoo-mirror/certificate.pem
ssl_key_path: /etc/ssl/nginx/gentoo-mirror/privkey.pem
- mode: 644
- user: root
- group: root
- require:
- file: /etc/ssl/nginx/gentoo-mirror/certificate.pem
- file: /etc/ssl/nginx/gentoo-mirror/privkey.pem
- file: /etc/nginx/includes/gentoo-mirror-proxy-params.conf
- watch_in:
- service: nginx-reload