Defined Type: yum::plugin

Defined in:
manifests/plugin.pp

Overview

Manage per-plugin configuration files.

Examples:

Configure an example plugin

include ::yum
::yum::plugin { 'example':
  content => @(EOS/L),
    [main]
    enabled = 1
    | EOS
}

Parameters:

  • content (String)

    The content of the plugin configuration file.

  • plugin (String) (defaults to: $title)

    The name of the plugin.

See Also:

Since:

  • 1.0.0



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'manifests/plugin.pp', line 18

define yum::plugin (
  String $content,
  String $plugin  = $title,
) {

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

  file { "${::yum::pluginconf_dir}/${plugin}.conf":
    ensure  => file,
    owner   => 0,
    group   => 0,
    mode    => '0644',
    content => $content,
  }
}