File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 43
43
with_items : " {{ rsyslog_environments }}"
44
44
when : item.db_loglogins_name is defined
45
45
46
- - name : Put log_logins logrotate scripts
46
+ - name : Put log_logins logrotate scripts for ebauth
47
47
template :
48
48
src : logrotate_ebauth.j2
49
49
dest : /etc/logrotate.d/logrotate_ebauth_{{ item.name }}
53
53
with_items : " {{ rsyslog_environments }}"
54
54
when : item.db_loglogins_name is defined
55
55
56
+ - name : Put log_logins logrotate scripts for stepup
57
+ template :
58
+ src : logrotate_stepup_authentication.j2
59
+ dest : /etc/logrotate.d/logrotate_stepup_authentication_{{ item.name }}
60
+ mode : 0644
61
+ owner : root
62
+ group : root
63
+ with_items : " {{ rsyslog_environments }}"
64
+ when : item.db_loglogins_name is defined
65
+
56
66
- name : Create logdirectory for log_logins cleanup script
57
67
file :
58
68
path : " {{ rsyslog_dir }}/apps/{{ item.name }}/loglogins_cleanup/"
Original file line number Diff line number Diff line change
1
+ {{ rsyslog_dir }}/log_logins/{{ item.name }}/stepup-authentication.log
2
+ {
3
+ missingok
4
+ daily
5
+ rotate 180
6
+ sharedscripts
7
+ dateext
8
+ dateyesterday
9
+ compress
10
+ delaycompress
11
+ create 0640 root {{ rsyslog_read_group }}
12
+ postrotate
13
+ # TODO: Write logs to MySQL for further processing (e.g. for deprovisioning)
14
+ # E.g.: /usr/local/sbin/parse_stepup_authentication_to_mysql_{{ item.name }}.py > /dev/null
15
+ systemctl kill -s HUP rsyslog.service
16
+ endscript
17
+ }
You can’t perform that action at this time.
0 commit comments