Puppet Class: yum::plugin::etckeeper

Inherits:
::yum::params
Defined in:
manifests/plugin/etckeeper.pp

Overview

Manage the Yum etckeeper plugin.

Examples:

Declaring the class

include ::yum
include ::yum::plugin::etckeeper

Parameters:

  • ensure (Enum['present', 'absent']) (defaults to: 'present')
  • enable (Boolean) (defaults to: true)

See Also:

Since:

  • 1.0.0



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'manifests/plugin/etckeeper.pp', line 14

class yum::plugin::etckeeper (
  Enum['present', 'absent'] $ensure = 'present',
  Boolean                   $enable = true,
) inherits ::yum::params {

  if ! defined(Class['::yum']) {
    fail('You must include the yum base class before using the yum::plugin::etckeeper class')
  }

  include ::etckeeper

  if $ensure == 'present' {
    ::yum::plugin { 'etckeeper':
      content => template("${module_name}/plugin.conf.erb"),
      require => Class['::etckeeper'],
    }
  }
}