Skip to content

Commit

Permalink
added setfacl to /etc/logrotate.d/syslog conf Fixes #109 (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
jewnix authored Nov 23, 2022
1 parent e27e14c commit 9df2892
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
13 changes: 6 additions & 7 deletions roles/splunk/tasks/configure_facl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@
- true
- false

- name: Add logrotate script to enforce splunk user facls
template:
src: splunk_facl.j2
dest: /etc/logrotate.d/splunk_facl
owner: root
group: root
become: true
- name: Add setfacl to logrotate script
lineinfile:
path: /etc/logrotate.d/syslog
insertbefore: ' endscript'
line: ' /usr/bin/setfacl -Rm u:{{ splunk_nix_user }}:rx /var/log'
become: True

- name: Check if auditd.conf is present
stat:
Expand Down
5 changes: 0 additions & 5 deletions roles/splunk/templates/splunk_facl.j2

This file was deleted.

0 comments on commit 9df2892

Please sign in to comment.