Commit Graph

5 Commits

Author SHA1 Message Date
Yolanda Robla f9f02e47d4 Allow logrotation actions to be string or array
For prerotate, logrotate, firstaction and lastaction
is very common to need several lines of commands, making
it difficult to pass with a puppet string.
Allow this parameter to be either and string or an array
to allow this usage.

Change-Id: I7451ecc550b50b85c55784ef598f6b45412117fc
2015-08-14 18:03:58 +02:00
Spencer Krum bdee020d9e Fixing deprecation warnings in logrotate module
Change-Id: I9e69cc96db5e84e729d7bdbe655c3933886903ce
2014-08-27 16:40:00 -07:00
James E. Blair 7d0d6df746 Revert "Fixing deprecation warnings"
This reverts commit 82b9b59522928863ddadeacfec819e287303ef20.

Change-Id: I746d7ae57802dc76618db9024a0cf94c43774c02
2014-07-02 17:35:02 +00:00
Spencer Krum a38fb0780e Fixing deprecation warnings
Non instance variable representation is deprecated
so needs to be changed. This change changes varibles
to their instance variable representation.

See more details see:
http://docs.puppetlabs.com/guides/templating.html

Change-Id: Ib77827e01011ef6c0380c9ec7a9d147eafd8ce2f
2014-06-19 22:41:42 -07:00
David Shrewsbury 9a04df09eb Added new logrotate puppet module.
Allows us to easily manage log rotation. Example:

  logrotate::file { 'xyz':
    log => '/var/log/xyz.log',
    options => ['compress', 'weekly'],
  }

Change-Id: I84fa3a20e0510a1273aa9b8555da0dde4613f50a
2012-05-07 16:24:42 -04:00