feat(yamllint): include for this repo and apply rules throughout
* Semi-automated using `ssf-formula` (v0.5.0)
* Fix errors shown below:
```bash
logrotate-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:")
./logrotate/osmap.yaml
1:1 warning missing document start "---" (document-start)
./logrotate/osfamilymap.yaml
1:1 warning missing document start "---" (document-start)
7:15 warning truthy value should be one of [false, true] (truthy)
12:14 warning truthy value should be one of [false, true] (truthy)
14:23 warning truthy value should be one of [false, true] (truthy)
16:14 warning truthy value should be one of [false, true] (truthy)
24:14 warning truthy value should be one of [false, true] (truthy)
./logrotate/defaults.yaml
4:1 warning missing document start "---" (document-start)
11:23 warning truthy value should be one of [false, true] (truthy)
13:13 warning truthy value should be one of [false, true] (truthy)
15:13 warning truthy value should be one of [false, true] (truthy)
16:1 error too many blank lines (1 > 0) (empty-lines)
pillar.example
3:1 warning missing document start "---" (document-start)
5:4 warning missing starting space in comment (comments)
6:6 warning missing starting space in comment (comments)
6:5 warning comment not indented like content (comments-indentation)
7:6 warning missing starting space in comment (comments)
9:13 warning truthy value should be one of [false, true] (truthy)
11:13 warning truthy value should be one of [false, true] (truthy)
12:15 warning truthy value should be one of [false, true] (truthy)
13:14 warning truthy value should be one of [false, true] (truthy)
26:12 error trailing spaces (trailing-spaces)
48:12 error too many spaces after hyphen (hyphens)
69:1 error too many blank lines (1 > 0) (empty-lines)
```
2019-08-06 15:53:31 -04:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vim: ft=yaml
|
|
|
|
---
|
2015-01-01 13:57:08 -05:00
|
|
|
logrotate:
|
2018-07-06 09:07:39 -04:00
|
|
|
# default OS values can be overridden in 'lookup' dict
|
feat(yamllint): include for this repo and apply rules throughout
* Semi-automated using `ssf-formula` (v0.5.0)
* Fix errors shown below:
```bash
logrotate-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:")
./logrotate/osmap.yaml
1:1 warning missing document start "---" (document-start)
./logrotate/osfamilymap.yaml
1:1 warning missing document start "---" (document-start)
7:15 warning truthy value should be one of [false, true] (truthy)
12:14 warning truthy value should be one of [false, true] (truthy)
14:23 warning truthy value should be one of [false, true] (truthy)
16:14 warning truthy value should be one of [false, true] (truthy)
24:14 warning truthy value should be one of [false, true] (truthy)
./logrotate/defaults.yaml
4:1 warning missing document start "---" (document-start)
11:23 warning truthy value should be one of [false, true] (truthy)
13:13 warning truthy value should be one of [false, true] (truthy)
15:13 warning truthy value should be one of [false, true] (truthy)
16:1 error too many blank lines (1 > 0) (empty-lines)
pillar.example
3:1 warning missing document start "---" (document-start)
5:4 warning missing starting space in comment (comments)
6:6 warning missing starting space in comment (comments)
6:5 warning comment not indented like content (comments-indentation)
7:6 warning missing starting space in comment (comments)
9:13 warning truthy value should be one of [false, true] (truthy)
11:13 warning truthy value should be one of [false, true] (truthy)
12:15 warning truthy value should be one of [false, true] (truthy)
13:14 warning truthy value should be one of [false, true] (truthy)
26:12 error trailing spaces (trailing-spaces)
48:12 error too many spaces after hyphen (hyphens)
69:1 error too many blank lines (1 > 0) (empty-lines)
```
2019-08-06 15:53:31 -04:00
|
|
|
# lookup:
|
|
|
|
# pkg: logrotate
|
|
|
|
# service: crond
|
2017-02-14 08:34:35 -05:00
|
|
|
default_config:
|
feat(yamllint): include for this repo and apply rules throughout
* Semi-automated using `ssf-formula` (v0.5.0)
* Fix errors shown below:
```bash
logrotate-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:")
./logrotate/osmap.yaml
1:1 warning missing document start "---" (document-start)
./logrotate/osfamilymap.yaml
1:1 warning missing document start "---" (document-start)
7:15 warning truthy value should be one of [false, true] (truthy)
12:14 warning truthy value should be one of [false, true] (truthy)
14:23 warning truthy value should be one of [false, true] (truthy)
16:14 warning truthy value should be one of [false, true] (truthy)
24:14 warning truthy value should be one of [false, true] (truthy)
./logrotate/defaults.yaml
4:1 warning missing document start "---" (document-start)
11:23 warning truthy value should be one of [false, true] (truthy)
13:13 warning truthy value should be one of [false, true] (truthy)
15:13 warning truthy value should be one of [false, true] (truthy)
16:1 error too many blank lines (1 > 0) (empty-lines)
pillar.example
3:1 warning missing document start "---" (document-start)
5:4 warning missing starting space in comment (comments)
6:6 warning missing starting space in comment (comments)
6:5 warning comment not indented like content (comments-indentation)
7:6 warning missing starting space in comment (comments)
9:13 warning truthy value should be one of [false, true] (truthy)
11:13 warning truthy value should be one of [false, true] (truthy)
12:15 warning truthy value should be one of [false, true] (truthy)
13:14 warning truthy value should be one of [false, true] (truthy)
26:12 error trailing spaces (trailing-spaces)
48:12 error too many spaces after hyphen (hyphens)
69:1 error too many blank lines (1 > 0) (empty-lines)
```
2019-08-06 15:53:31 -04:00
|
|
|
weekly: true
|
2017-03-13 06:40:09 -04:00
|
|
|
rotate: 52
|
feat(yamllint): include for this repo and apply rules throughout
* Semi-automated using `ssf-formula` (v0.5.0)
* Fix errors shown below:
```bash
logrotate-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:")
./logrotate/osmap.yaml
1:1 warning missing document start "---" (document-start)
./logrotate/osfamilymap.yaml
1:1 warning missing document start "---" (document-start)
7:15 warning truthy value should be one of [false, true] (truthy)
12:14 warning truthy value should be one of [false, true] (truthy)
14:23 warning truthy value should be one of [false, true] (truthy)
16:14 warning truthy value should be one of [false, true] (truthy)
24:14 warning truthy value should be one of [false, true] (truthy)
./logrotate/defaults.yaml
4:1 warning missing document start "---" (document-start)
11:23 warning truthy value should be one of [false, true] (truthy)
13:13 warning truthy value should be one of [false, true] (truthy)
15:13 warning truthy value should be one of [false, true] (truthy)
16:1 error too many blank lines (1 > 0) (empty-lines)
pillar.example
3:1 warning missing document start "---" (document-start)
5:4 warning missing starting space in comment (comments)
6:6 warning missing starting space in comment (comments)
6:5 warning comment not indented like content (comments-indentation)
7:6 warning missing starting space in comment (comments)
9:13 warning truthy value should be one of [false, true] (truthy)
11:13 warning truthy value should be one of [false, true] (truthy)
12:15 warning truthy value should be one of [false, true] (truthy)
13:14 warning truthy value should be one of [false, true] (truthy)
26:12 error trailing spaces (trailing-spaces)
48:12 error too many spaces after hyphen (hyphens)
69:1 error too many blank lines (1 > 0) (empty-lines)
```
2019-08-06 15:53:31 -04:00
|
|
|
create: true
|
|
|
|
compress: true
|
|
|
|
dateext: true
|
2015-01-21 05:00:07 -05:00
|
|
|
jobs:
|
2017-11-15 05:18:45 -05:00
|
|
|
/tmp/var/log/mysql/error:
|
2015-05-05 09:20:54 -04:00
|
|
|
config:
|
|
|
|
- weekly
|
|
|
|
- missingok
|
|
|
|
- rotate 52
|
|
|
|
- compress
|
|
|
|
- delaycompress
|
|
|
|
- notifempty
|
|
|
|
- create 640 root adm
|
|
|
|
- sharedscripts
|
|
|
|
mysql:
|
feat(yamllint): include for this repo and apply rules throughout
* Semi-automated using `ssf-formula` (v0.5.0)
* Fix errors shown below:
```bash
logrotate-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:")
./logrotate/osmap.yaml
1:1 warning missing document start "---" (document-start)
./logrotate/osfamilymap.yaml
1:1 warning missing document start "---" (document-start)
7:15 warning truthy value should be one of [false, true] (truthy)
12:14 warning truthy value should be one of [false, true] (truthy)
14:23 warning truthy value should be one of [false, true] (truthy)
16:14 warning truthy value should be one of [false, true] (truthy)
24:14 warning truthy value should be one of [false, true] (truthy)
./logrotate/defaults.yaml
4:1 warning missing document start "---" (document-start)
11:23 warning truthy value should be one of [false, true] (truthy)
13:13 warning truthy value should be one of [false, true] (truthy)
15:13 warning truthy value should be one of [false, true] (truthy)
16:1 error too many blank lines (1 > 0) (empty-lines)
pillar.example
3:1 warning missing document start "---" (document-start)
5:4 warning missing starting space in comment (comments)
6:6 warning missing starting space in comment (comments)
6:5 warning comment not indented like content (comments-indentation)
7:6 warning missing starting space in comment (comments)
9:13 warning truthy value should be one of [false, true] (truthy)
11:13 warning truthy value should be one of [false, true] (truthy)
12:15 warning truthy value should be one of [false, true] (truthy)
13:14 warning truthy value should be one of [false, true] (truthy)
26:12 error trailing spaces (trailing-spaces)
48:12 error too many spaces after hyphen (hyphens)
69:1 error too many blank lines (1 > 0) (empty-lines)
```
2019-08-06 15:53:31 -04:00
|
|
|
path:
|
2016-01-26 11:53:08 -05:00
|
|
|
- /tmp/var/log/mysql/*.log
|
2015-05-05 09:20:54 -04:00
|
|
|
config:
|
|
|
|
- weekly
|
|
|
|
- missingok
|
|
|
|
- rotate 52
|
|
|
|
- compress
|
|
|
|
- delaycompress
|
|
|
|
- notifempty
|
|
|
|
- create 640 root adm
|
|
|
|
- sharedscripts
|
2022-03-27 19:52:36 -04:00
|
|
|
a_monthly_job:
|
|
|
|
path:
|
|
|
|
- /tmp/var/log/a_service/*.log
|
|
|
|
config:
|
|
|
|
- monthly
|
|
|
|
- missingok
|
|
|
|
- rotate 12
|
|
|
|
- compress
|
|
|
|
- delaycompress
|
|
|
|
- notifempty
|
|
|
|
- create 640 root adm
|
|
|
|
- sharedscripts
|
2016-01-26 05:40:30 -05:00
|
|
|
syslog:
|
|
|
|
path:
|
|
|
|
- /var/log/cron
|
|
|
|
- /var/log/maillog
|
|
|
|
- /var/log/messages
|
|
|
|
- /var/log/secure
|
|
|
|
- /var/log/spooler
|
|
|
|
- /var/log/slapd.log
|
|
|
|
config:
|
|
|
|
- sharedscripts
|
|
|
|
- postrotate
|
feat(yamllint): include for this repo and apply rules throughout
* Semi-automated using `ssf-formula` (v0.5.0)
* Fix errors shown below:
```bash
logrotate-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:")
./logrotate/osmap.yaml
1:1 warning missing document start "---" (document-start)
./logrotate/osfamilymap.yaml
1:1 warning missing document start "---" (document-start)
7:15 warning truthy value should be one of [false, true] (truthy)
12:14 warning truthy value should be one of [false, true] (truthy)
14:23 warning truthy value should be one of [false, true] (truthy)
16:14 warning truthy value should be one of [false, true] (truthy)
24:14 warning truthy value should be one of [false, true] (truthy)
./logrotate/defaults.yaml
4:1 warning missing document start "---" (document-start)
11:23 warning truthy value should be one of [false, true] (truthy)
13:13 warning truthy value should be one of [false, true] (truthy)
15:13 warning truthy value should be one of [false, true] (truthy)
16:1 error too many blank lines (1 > 0) (empty-lines)
pillar.example
3:1 warning missing document start "---" (document-start)
5:4 warning missing starting space in comment (comments)
6:6 warning missing starting space in comment (comments)
6:5 warning comment not indented like content (comments-indentation)
7:6 warning missing starting space in comment (comments)
9:13 warning truthy value should be one of [false, true] (truthy)
11:13 warning truthy value should be one of [false, true] (truthy)
12:15 warning truthy value should be one of [false, true] (truthy)
13:14 warning truthy value should be one of [false, true] (truthy)
26:12 error trailing spaces (trailing-spaces)
48:12 error too many spaces after hyphen (hyphens)
69:1 error too many blank lines (1 > 0) (empty-lines)
```
2019-08-06 15:53:31 -04:00
|
|
|
- /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
|
2016-01-26 05:40:30 -05:00
|
|
|
- endscript
|
2022-01-13 15:41:52 -05:00
|
|
|
nginx_high_traf:
|
|
|
|
path:
|
|
|
|
- /var/log/nginx_high_traf/*.log
|
|
|
|
config:
|
|
|
|
- hourly
|
|
|
|
- missingok
|
|
|
|
- rotate {{ 30 * 24 }} # keep 1 month's worth of hourly logs
|
|
|
|
- compress
|
|
|
|
- notifempty
|
|
|
|
- dateext
|
|
|
|
- dateformat .%Y-%m-%d-%H00
|
|
|
|
- olddir /var/log/nginx_high_traf/archive
|
|
|
|
- sharedscripts
|
|
|
|
- postrotate
|
|
|
|
- 'kill -USR1 $(cat /var/run/nginx_high_traf.pid)'
|
|
|
|
- endscript
|
2018-07-12 06:44:01 -04:00
|
|
|
nginx:
|
|
|
|
contents: |
|
|
|
|
/var/log/nginx/*.log{
|
|
|
|
weekly
|
|
|
|
missingok
|
|
|
|
compress
|
|
|
|
delaycompress
|
|
|
|
notifempty
|
|
|
|
create 0640 www-data adm
|
|
|
|
sharedscripts
|
|
|
|
prerotate
|
|
|
|
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
|
|
|
|
run-parts /etc/logrotate.d/httpd-prerotate; \
|
|
|
|
fi \
|
|
|
|
endscript
|
|
|
|
postrotate
|
|
|
|
invoke-rc.d nginx rotate >/dev/null 2>&1
|
|
|
|
endscript
|
|
|
|
}
|