mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-06 10:25:23 +00:00
34 lines
979 B
YAML
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
|