Skip to content

jlambert121/evenup-logrotate

 
 

Repository files navigation

What is it?

A Puppet module that manages logrotate and associated rules

Released under the Apache 2.0 licence

Usage:

To install:

  include logrotate

To add a logrotate config file:

  logrotate::file {
    'puppet':
      log         => '/var/log/puppet/*log',
      options     => [ 'missingok', 'notifempty', 'create 0644 puppet puppet', 'sharedscripts', 'weekly' ],
       postrotate  => [  '[ -e /etc/init.d/puppetmaster ] && /etc/init.d/puppetmaster condrestart >/dev/null 2>&1 || true',
                         '[ -e /etc/init.d/puppet ] && /etc/init.d/puppet reload > /dev/null 2>&1 || true' ],
       ensure      => 'present';
  }

Known Issues:

Contribute:

  • Fork it
  • Create a topic branch
  • Improve/fix (with spec tests)
  • Push new topic branch
  • Submit a PR

About

Installs and configures logrotate. Provides a method for other modules to set up logrotate jobs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 60.5%
  • Puppet 25.0%
  • HTML 9.9%
  • Smarty 4.6%