Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A Puppet module to manage Logrotate.
Ruby Puppet
Branch: master
Pull request Compare This branch is 11 commits ahead, 19 commits behind arioch:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
manifests
spec
templates
tests
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.md

README.md

Basic usage

node 'node1.domain.tld' {
  logrotate::file { 'apache2':
    postrotate => "/etc/init.d/apache2 reload > /dev/null",
    log        => [ '/var/log/apache2/access.log', '/var/log/apache2/error.log' ],
    options    => [ 
      'weekly',
      'compress',
      'rotate 52',
      'missingok'
    ],
  }
}

Unit testing

Plain RSpec:

# rspec

Using bundle:

# bundle exec rspec

Test against a specific Puppet or Facter version:

# PUPPET_VERSION=2.7.1  bundle update && bundle exec rspec
# PUPPET_VERSION=2.7.19 bundle update && bundle exec rspec
# FACTER_VERSION=1.6.8  bundle update && bundle exec rspec
Something went wrong with that request. Please try again.