Skip to content

Commit

Permalink
Merge pull request #1096 from mkunin-nvidia/master
Browse files Browse the repository at this point in the history
Fixing rsyslog-server role.
  • Loading branch information
ajdecon authored Jan 24, 2022
2 parents db08984 + 6ea0fb9 commit 63ed508
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/rsyslog-server/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
rsyslog_server_tcp_port: 514
rsyslog_server_udp_port: 514
rsyslog_enable_journal: yes
rsyslog_log_file_path_pattern: "/var/log/deepops-hosts/%HOSTNAME%/%$YEAR%-%$MONTH%-%$DAY%/syslog.log"
rsyslog_log_file_path: "/var/log/deepops-hosts"
rsyslog_log_file_path_pattern: "{{ rsyslog_log_file_path }}/%HOSTNAME%/%$YEAR%-%$MONTH%-%$DAY%/syslog.log"
8 changes: 8 additions & 0 deletions roles/rsyslog-server/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,13 @@
owner: "root"
group: "root"
mode: "0644"

- name: create directory for clients logs
file:
path: "{{ rsyslog_log_file_path }}"
state: directory
owner: "syslog"
group: "syslog"
mode: "0755"
notify:
- reload rsyslog

0 comments on commit 63ed508

Please sign in to comment.