Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.21 KB

logrotate_package.md

File metadata and controls

58 lines (40 loc) · 1.21 KB

logrotate_package

Back to resource list

Manages the installation of the logrotate package. This resource allows you to install, upgrade, or remove the logrotate package and its dependencies.

Introduced: v3.0.0

Actions

  • :upgrade - Upgrade the logrotate package if a newer version is available
  • :install - Install the logrotate package (default)
  • :remove - Remove the logrotate package

Properties

Name Type Default Description
packages String, Array 'logrotate' Package name or array of package names to manage

Examples

Basic installation using defaults:

logrotate_package 'logrotate'

Install a specific package:

logrotate_package 'logrotate' do
  packages 'logrotate-special-package'
end

Install multiple packages:

logrotate_package 'logrotate' do
  packages ['logrotate', 'logrotate-dbg']
end

Upgrade existing installation:

logrotate_package 'logrotate' do
  action :upgrade
end

Remove logrotate:

logrotate_package 'logrotate' do
  action :remove
end