Skip to content

Commit

Permalink
Add logrotate for pyznap
Browse files Browse the repository at this point in the history
  • Loading branch information
mergwyn committed Jan 24, 2024
1 parent 8eb1365 commit a4d06ce
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ fixtures:
yumrepo_core:
repo: puppetlabs/yumrepo_core
ref: 2.0.0
logrotate:
repo: puppet/logrotate
ref: 7.0.1
php:
repo: puppet/php
ref: 10.1.0
Expand Down
1 change: 1 addition & 0 deletions Puppetfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ mod 'puppetlabs/vcsrepo', '6.1.0'
mod 'puppetlabs/xinetd', '3.4.1'
mod 'puppetlabs/yumrepo_core', '2.0.0'
#mod 'puppet/letsencrypt', '9.2.0'
mod 'puppet-logrotate', '7.0.1'
# TODO workaround until next release of NGINX moduke
#mod 'puppet/nginx', '3.3.0'
mod 'puppet/nginx', :git => 'https://github.com/voxpupuli/puppet-nginx'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@
command => '/opt/pyznap/venv/bin/pyznap snap >> /var/log/pyznap.log 2>&1',
}

logrotate::rule { 'pyznap':
path => '/var/log/pyznap',
rotate => 7,
rotate_every => 'day',
}

package { 'zfs-auto-snapshot': ensure => absent }
}

Expand Down

0 comments on commit a4d06ce

Please sign in to comment.