Skip to content

Commit

Permalink
fix(debian-ish): root owns the logs
Browse files Browse the repository at this point in the history
  • Loading branch information
alxwr committed Jul 13, 2019
1 parent 3d5723d commit 3276d3b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openvpn/config.sls
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ openvpn_{{ type }}_{{ name }}_log_file:
- name: {{ config.log }}
- makedirs: True
- replace: False
{{ _permissions(640) }}
{{ _permissions(640, map.log_user) }}
- require_in:
{%- if map.multi_services %}
- service: openvpn_{{name}}_service
Expand All @@ -185,7 +185,7 @@ openvpn_{{ type }}_{{ name }}_log_file_append:
- name: {{ config.log_append }}
- makedirs: True
- replace: False
{{ _permissions(640) }}
{{ _permissions(640, map.log_user) }}
- require_in:
{%- if map.multi_services %}
- service: openvpn_{{name}}_service
Expand Down
2 changes: 2 additions & 0 deletions openvpn/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ openvpn:
external_repo_supported: []
external_repo_version: stable
group: nobody
# None, will default to 'user'
log_user:
multi_services: False
pkgs: ['openvpn']
service: openvpn
Expand Down
1 change: 1 addition & 0 deletions openvpn/osfamilymap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Arch:
- easy-rsa
Debian:
group: nogroup
log_user: root
RedHat:
pkgs:
- openvpn
Expand Down

0 comments on commit 3276d3b

Please sign in to comment.