36 lines
763 B
Text
36 lines
763 B
Text
|
logrotate:
|
||
|
pkg:
|
||
|
- installed
|
||
|
|
||
|
{% set logrotate_files = ['kube-scheduler', 'kube-proxy', 'kubelet', 'kube-apiserver', 'kube-controller-manager', 'kube-addons', 'docker'] %}
|
||
|
{% for file in logrotate_files %}
|
||
|
/etc/logrotate.d/{{ file }}:
|
||
|
file:
|
||
|
- managed
|
||
|
- source: salt://logrotate/conf
|
||
|
- template: jinja
|
||
|
- user: root
|
||
|
- group: root
|
||
|
- mode: 644
|
||
|
- context:
|
||
|
file: {{ file }}
|
||
|
{% endfor %}
|
||
|
|
||
|
/etc/logrotate.d/docker-containers:
|
||
|
file:
|
||
|
- managed
|
||
|
- source: salt://logrotate/docker-containers
|
||
|
- template: jinja
|
||
|
- user: root
|
||
|
- group: root
|
||
|
- mode: 644
|
||
|
|
||
|
/etc/cron.hourly/logrotate:
|
||
|
file:
|
||
|
- managed
|
||
|
- source: salt://logrotate/cron
|
||
|
- template: jinja
|
||
|
- user: root
|
||
|
- group: root
|
||
|
- mode: 755
|