* 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) ```tags/v0.11.0
--- | --- | ||||
stages: | stages: | ||||
- test | - test | ||||
- commitlint | |||||
- lint | |||||
- name: release | - name: release | ||||
if: branch = master AND type != pull_request | if: branch = master AND type != pull_request | ||||
jobs: | jobs: | ||||
include: | include: | ||||
# Define the commitlint stage | |||||
- stage: commitlint | |||||
# Define the `lint` stage (runs `yamllint` and `commitlint`) | |||||
- stage: lint | |||||
language: node_js | language: node_js | ||||
node_js: lts/* | node_js: lts/* | ||||
before_install: skip | before_install: skip | ||||
script: | script: | ||||
# Install and run `yamllint` | |||||
- pip install --user yamllint | |||||
# yamllint disable-line rule:line-length | |||||
- yamllint -s . .yamllint pillar.example | |||||
# Install and run `commitlint` | |||||
- npm install @commitlint/config-conventional -D | - npm install @commitlint/config-conventional -D | ||||
- npm install @commitlint/travis-cli -D | - npm install @commitlint/travis-cli -D | ||||
- commitlint-travis | - commitlint-travis | ||||
# Define the release stage that runs semantic-release | |||||
# Define the release stage that runs `semantic-release` | |||||
- stage: release | - stage: release | ||||
language: node_js | language: node_js | ||||
node_js: lts/* | node_js: lts/* |
# -*- coding: utf-8 -*- | |||||
# vim: ft=yaml | |||||
--- | |||||
# Extend the `default` configuration provided by `yamllint` | |||||
extends: default | |||||
# Files to ignore completely | |||||
# 1. All YAML files under directory `node_modules/`, introduced during the Travis run | |||||
ignore: | | |||||
node_modules/ | |||||
rules: | |||||
line-length: | |||||
# Increase from default of `80` | |||||
# Based on https://github.com/PyCQA/flake8-bugbear#opinionated-warnings (`B950`) | |||||
max: 88 |
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||
# vim: ft=yaml | # vim: ft=yaml | ||||
--- | |||||
logrotate: | logrotate: | ||||
pkg: logrotate | pkg: logrotate | ||||
conf_file: '/etc/logrotate.conf' | conf_file: '/etc/logrotate.conf' | ||||
user: root | user: root | ||||
group: root | group: root | ||||
service: cron | service: cron | ||||
login_records_jobs: True | |||||
login_records_jobs: true | |||||
default_config: | default_config: | ||||
weekly: True | |||||
weekly: true | |||||
rotate: 4 | rotate: 4 | ||||
create: True | |||||
create: true |
# -*- coding: utf-8 -*- | |||||
# vim: ft=yaml | |||||
--- | |||||
Arch: | Arch: | ||||
service: logrotate.timer | service: logrotate.timer | ||||
default_config: | default_config: | ||||
tabooext: + .pacorig .pacnew .pacsave | tabooext: + .pacorig .pacnew .pacsave | ||||
Debian: | Debian: | ||||
default_config: | default_config: | ||||
compress: True | |||||
compress: true | |||||
RedHat: | RedHat: | ||||
pkg: cronie | pkg: cronie | ||||
service: crond | service: crond | ||||
default_config: | default_config: | ||||
dateext: True | |||||
dateext: true | |||||
Suse: | Suse: | ||||
login_records_jobs: False | |||||
login_records_jobs: false | |||||
default_config: | default_config: | ||||
dateext: True | |||||
dateext: true | |||||
compresscmd: /usr/bin/xz | compresscmd: /usr/bin/xz | ||||
uncompresscmd: /usr/bin/xzdec | uncompresscmd: /usr/bin/xzdec | ||||
Gentoo: | Gentoo: | ||||
service: cronie | service: cronie | ||||
default_config: | default_config: | ||||
tabooext: + .keep | tabooext: + .keep | ||||
dateext: True | |||||
dateext: true | |||||
FreeBSD: | FreeBSD: | ||||
conf_file: /usr/local/etc/logrotate.conf | conf_file: /usr/local/etc/logrotate.conf | ||||
include_dir: /usr/local/etc/logrotate.d | include_dir: /usr/local/etc/logrotate.d |
# -*- coding: utf-8 -*- | |||||
# vim: ft=yaml | |||||
--- | |||||
Ubuntu: | Ubuntu: | ||||
default_config: | default_config: | ||||
su: root syslog | su: root syslog |
# vim: sts=2 ts=2 sw=2 et ai | |||||
# -*- coding: utf-8 -*- | |||||
# vim: ft=yaml | |||||
--- | |||||
logrotate: | logrotate: | ||||
# default OS values can be overridden in 'lookup' dict | # default OS values can be overridden in 'lookup' dict | ||||
#lookup: | |||||
#pkg: logrotate | |||||
#service: crond | |||||
# lookup: | |||||
# pkg: logrotate | |||||
# service: crond | |||||
default_config: | default_config: | ||||
weekly: True | |||||
weekly: true | |||||
rotate: 52 | rotate: 52 | ||||
create: True | |||||
compress: True | |||||
dateext: True | |||||
create: true | |||||
compress: true | |||||
dateext: true | |||||
jobs: | jobs: | ||||
/tmp/var/log/mysql/error: | /tmp/var/log/mysql/error: | ||||
config: | config: | ||||
- create 640 root adm | - create 640 root adm | ||||
- sharedscripts | - sharedscripts | ||||
mysql: | mysql: | ||||
path: | |||||
path: | |||||
- /tmp/var/log/mysql/*.log | - /tmp/var/log/mysql/*.log | ||||
config: | config: | ||||
- weekly | - weekly | ||||
config: | config: | ||||
- sharedscripts | - sharedscripts | ||||
- postrotate | - postrotate | ||||
- /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true | |||||
- /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true | |||||
- endscript | - endscript | ||||
nginx: | nginx: | ||||
contents: | | contents: | | ||||
invoke-rc.d nginx rotate >/dev/null 2>&1 | invoke-rc.d nginx rotate >/dev/null 2>&1 | ||||
endscript | endscript | ||||
} | } | ||||
# -*- coding: utf-8 -*- | |||||
# vim: ft=yaml | |||||
--- | |||||
name: default | name: default | ||||
title: logrotate formula | title: logrotate formula | ||||
maintainer: SaltStack Formulas | maintainer: SaltStack Formulas |