Changeset - 30c772db9c58
[Not reviewed]
0 1 1
Branko Majic (branko) - 9 years ago 2015-03-08 11:19:55
branko@majic.rs
MAR-1: Rotate slapd log files.
2 files changed with 16 insertions and 0 deletions:
0 comments (0 inline, 0 general)
roles/ldap_server/files/slapd_logrotate
Show inline comments
 
new file 100644
 
/var/log/slapd.log
 
{
 
	rotate 4
 
	weekly
 
	missingok
 
	notifempty
 
	compress
 
	delaycompress
 
	sharedscripts
 
	postrotate
 
	invoke-rc.d rsyslog rotate > /dev/null
 
	endscript
 
}
roles/ldap_server/tasks/main.yml
Show inline comments
 
@@ -17,6 +17,9 @@
 
  notify:
 
    - Restart rsyslog
 

	
 
- name: Deploy configuration file for log rotation of slapd logs
 
  copy: src=slapd_logrotate dest=/etc/logrotate.d/slapd owner=root group=root mode=0644
 

	
 
- name: Install Python LDAP bindings
 
  apt: name=python-ldap state=installed
 

	
0 comments (0 inline, 0 general)