paulbsd-salt/states/nginx/install.sls
2023-06-06 09:24:24 +02:00

29 lines
552 B
Plaintext

---
{%- from "nginx/map.jinja" import nginx with context %}
nginx-pkg:
pkg.installed:
- pkgs: {{ nginx.packages }}
nginx-logs-perms:
file.directory:
- name: /var/log/nginx
- user: www-data
- group: root
- mode: 0775
#nginx-logs-user-acl:
# acl.present:
# - name: /var/log/nginx
# - acl_type: user
# - acl_name: www-data
# - perms: rwx
# - recurse: true
#
#nginx-logs-group-acl:
# acl.present:
# - name: /var/log/nginx
# - acl_type: group
# - acl_name: www-data
# - perms: rwx
# - recurse: true