Add logrotate configuration
This commit is contained in:
		| @@ -29,6 +29,12 @@ | ||||
|     src: system/blacklist.j2 | ||||
|     dest: /etc/modprobe.d/blacklist.conf | ||||
|  | ||||
| # Logrotate configuration | ||||
| - name: add logrotate configuration | ||||
|   template: | ||||
|     src: system/pvc.j2 | ||||
|     dest: /etc/logrotate.d/pvc | ||||
|  | ||||
| # Install base databases (coordinators only) | ||||
| - include: ceph/main.yml | ||||
|   tags: pvc-ceph | ||||
|   | ||||
							
								
								
									
										20
									
								
								roles/pvc/templates/system/pvc.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								roles/pvc/templates/system/pvc.j2
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| /var/log/pvc/*.log { | ||||
|        weekly | ||||
|        rotate 8 | ||||
|        copytruncate | ||||
|        delaycompress | ||||
|        compress | ||||
|        notifempty | ||||
|        missingok | ||||
|        su root root | ||||
| } | ||||
| /var/log/pvc/*/*.log { | ||||
|        weekly | ||||
|        rotate 8 | ||||
|        copytruncate | ||||
|        delaycompress | ||||
|        compress | ||||
|        notifempty | ||||
|        missingok | ||||
|        su root root | ||||
| } | ||||
		Reference in New Issue
	
	Block a user