diff --git a/.fixtures.yml b/.fixtures.yml index d1523abe..020a2453 100644 --- a/.fixtures.yml +++ b/.fixtures.yml @@ -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 diff --git a/Puppetfile b/Puppetfile index ef1e25a9..29fdeed2 100644 --- a/Puppetfile +++ b/Puppetfile @@ -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' diff --git a/site-modules/profile/manifests/platform/baseline/debian/zfs/snapshotter.pp b/site-modules/profile/manifests/platform/baseline/debian/zfs/snapshotter.pp index 51f1cdb6..bd4f3433 100644 --- a/site-modules/profile/manifests/platform/baseline/debian/zfs/snapshotter.pp +++ b/site-modules/profile/manifests/platform/baseline/debian/zfs/snapshotter.pp @@ -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 } }