salt-common/sls/nginx/init.sls
2019-06-07 19:00:23 +03:00

26 lines
426 B
Plaintext

include:
- augeas.lenses
- logrotate
- .pkg
- .service
extend:
nginx:
service.running:
- watch:
- pkg: www-servers/nginx
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/