2020-07-10 00:58:55 +02:00
|
|
|
---
|
|
|
|
{%- from "nginx/map.jinja" import nginx with context %}
|
|
|
|
nginx-pkg:
|
|
|
|
pkg.installed:
|
2021-11-07 23:37:17 +01:00
|
|
|
- pkgs: {{ nginx.packages }}
|
|
|
|
|
2023-06-06 09:24:24 +02:00
|
|
|
nginx-logs-perms:
|
|
|
|
file.directory:
|
2021-11-07 23:37:17 +01:00
|
|
|
- name: /var/log/nginx
|
2023-06-06 09:24:24 +02:00
|
|
|
- user: www-data
|
|
|
|
- group: root
|
|
|
|
- mode: 0775
|
2021-11-07 23:37:17 +01:00
|
|
|
|
2023-06-06 09:24:24 +02:00
|
|
|
#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
|