salt/states/roles/maintain/pkg-cache/init.sls
2017-08-07 13:25:01 -05:00

22 lines
434 B
Text
Executable file

nginx-pkg-cache:
pkg.installed:
- pkgs:
- nginx
service.running:
- name: nginx
- enable: true
- watch:
- file: /etc/nginx/conf.d/*
/srv/http/pacman-cache:
file.symlink:
- target: /mnt/pkgs
/etc/nginx/conf.d/pkg-cache.conf:
file.managed:
- makedirs: true
- source: salt://roles/maintain/pkg-cache/pkg-cache.conf
- user: root
- group: root
- mode: 644
- template: jinja