arioch / puppet-logrotate

A Puppet module to manage Logrotate.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Puppet-logrotate

Build Status

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

About

A Puppet module to manage Logrotate.

License:Other


Languages

Language:Ruby 67.0%Language:Puppet 26.9%Language:HTML 5.7%Language:Pascal 0.3%