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