inuits/puppet-logrotate

Name: puppet-logrotate

Owner: Inuits

Description: A Puppet module to manage Logrotate.

Created: 2015-07-29 12:32:52.0

Updated: 2015-07-29 12:32:52.0

Pushed: 2015-08-06 21:25:30.0

Homepage:

Size: 109

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.