Skip to content

Commit

Permalink
Merge pull request arillso#13 from RickvdStaaij/fix-logrotate_applica…
Browse files Browse the repository at this point in the history
…tions-exmaple

Update examples on how to correclty use logrotate_applications
  • Loading branch information
sbaerlocher authored Oct 18, 2019
2 parents f2ef238 + 2b7789f commit 9d64511
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 22 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
and [human-readable changelog](https://keepachangelog.com/en/1.0.0/).

## 1.5.1

### Fixed

- Incorrect documentation adapted.

## 1.5.0

### Changed
Expand Down
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,17 @@ logrotate_applications: []
The following options are available.
```yml
logrotate_applications
definitions:
- logs:
- /var/log/apt/term.log
- /var/log/apt/history.log
options:
- rotate 12
- monthly
- missingok
- notifempty
logrotate_applications:
- name: name-your-log-rotate-application
definitions:
- logs:
- /var/log/apt/term.log
- /var/log/apt/history.log
options:
- rotate 12
- monthly
- missingok
- notifempty
```
## Dependencies
Expand Down
26 changes: 14 additions & 12 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,18 @@ logrotate_btmp:
- create 0660 root utmp
- rotate 1

# More log files can be added that will logorate.
# The following options are available.
# definitions:
# - logs:
# - /var/log/apt/term.log
# - /var/log/apt/history.log
# options:
# - rotate 12
# - monthly
# - missingok
# - notifempty
# - compress
# More log files can be added that will log rotate.
# An example of multiple log rotate applications with available settings:
# logrotate_applications:
# - name: name-your-log-rotate-application
# definitions:
# - logs:
# - /var/log/apt/term.log
# - /var/log/apt/history.log
# options:
# - rotate 12
# - monthly
# - missingok
# - notifempty
# - compress
logrotate_applications: []

0 comments on commit 9d64511

Please sign in to comment.