salt-common/sls/nginx/init.sls
2019-02-14 14:53:08 +03:00

28 lines
465 B
Plaintext

include:
- ssl.openssl
- augeas.lenses
- logrotate
- .pkg
- .service
extend:
nginx:
service.running:
- watch:
- pkg: www-servers/nginx
- pkg: openssl
nginx-reload:
service.running:
- require:
- pkg: www-servers/nginx
/etc/logrotate.d/nginx:
file.managed:
- source: salt://nginx/files/nginx.logrotate
- mode: 644
- user: root
- group: root
- require:
- file: /etc/logrotate.d/