salt/states/roles/maintain/pkg-cache/init.sls

22 lines
394 B
Text
Raw Normal View History

2017-08-07 13:25:01 -05:00
nginx-pkg-cache:
pkg.installed:
- pkgs:
- nginx
service.running:
- name: nginx
- enable: true
- watch:
- file: /etc/nginx/conf.d/*
2022-08-17 09:20:26 -05:00
/cache:
2017-08-07 13:25:01 -05:00
file.symlink:
2022-08-17 09:20:26 -05:00
- target: /mnt/pkgs/cache
2017-08-07 13:25:01 -05:00
2022-08-17 09:20:26 -05:00
/etc/nginx/conf.d/cache.conf:
2017-08-07 13:25:01 -05:00
file.managed:
- makedirs: true
2022-08-17 09:20:26 -05:00
- source: salt://roles/maintain/pkg-cache/cache.conf
2017-08-07 13:25:01 -05:00
- user: root
- group: root
- mode: 644