Puppet Class: yum

Inherits:
::yum::params
Defined in:
manifests/init.pp

Overview

Manages the configuration of Yum.

Examples:

Declaring the class

include ::yum

Don't purge unmanaged repositories

class { '::yum':
  purge_repos => false,
}

Parameters:

  • bugtracker_url (Optional[String]) (defaults to: $::yum::params::bugtracker_url)
  • cachedir (Optional[Stdlib::Absolutepath]) (defaults to: $::yum::params::cachedir)
  • conf_dir (Stdlib::Absolutepath) (defaults to: $::yum::params::conf_dir)

    The top-level configuration directory, usually /etc/yum.

  • conf_file (Stdlib::Absolutepath) (defaults to: $::yum::params::conf_file)

    The path to the main configuration file, usually /etc/yum.conf.

  • debuglevel (Optional[Integer[0, 10]]) (defaults to: $::yum::params::debuglevel)
  • default_plugins (Hash[String, Hash[String, Any]]) (defaults to: $::yum::params::default_plugins)

    The default set of plugins to manage.

  • distroverpkg (Optional[String]) (defaults to: $::yum::params::distroverpkg)
  • exactarch (Optional[Boolean]) (defaults to: $::yum::params::exactarch)
  • fssnap_dir (Optional[Stdlib::Absolutepath]) (defaults to: $::yum::params::fssnap_dir)
  • gpgcheck (Optional[Boolean]) (defaults to: $::yum::params::gpgcheck)
  • groups (Hash[String, Hash[String, Any]]) (defaults to: $::yum::params::groups)
  • installonly_limit (Optional[Integer[0]]) (defaults to: $::yum::params::installonly_limit)
  • keepcache (Optional[Boolean]) (defaults to: $::yum::params::keepcache)
  • logfile (Optional[Stdlib::Absolutepath]) (defaults to: $::yum::params::logfile)
  • metadata_expire (Optional[Variant[Integer[0], Pattern[/^\d+[dhm]?$/], Enum['never']]]) (defaults to: undef)
  • obsoletes (Optional[Boolean]) (defaults to: $::yum::params::obsoletes)
  • package_name (String) (defaults to: $::yum::params::package_name)

    The name of the package.

  • pluginconf_dir (Stdlib::Absolutepath) (defaults to: $::yum::params::pluginconf_dir)
  • plugins (Optional[Boolean]) (defaults to: $::yum::params::plugins)
  • protected (Hash[String, Hash[String, Any]]) (defaults to: $::yum::params::protected)
  • protected_dir (Stdlib::Absolutepath) (defaults to: $::yum::params::protected_dir)
  • purge_repos (Boolean) (defaults to: $::yum::params::purge_repos)

    Whether to purge unmanaged repositories or not.

  • repo_dir (Stdlib::Absolutepath) (defaults to: $::yum::params::repo_dir)
  • repos (Hash[String, Hash[String, Any]]) (defaults to: $::yum::params::repos)

    The default set of repositories.

  • variables (Hash[String, Hash[String, Any]]) (defaults to: $::yum::params::variables)
  • variable_dir (Stdlib::Absolutepath) (defaults to: $::yum::params::variable_dir)

See Also:

Since:

  • 1.0.0



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# File 'manifests/init.pp', line 54

class yum (
  Stdlib::Absolutepath                                                 $conf_dir          = $::yum::params::conf_dir,
  Stdlib::Absolutepath                                                 $conf_file         = $::yum::params::conf_file,
  Hash[String, Hash[String, Any]]                                      $default_plugins   = $::yum::params::default_plugins,
  Optional[Stdlib::Absolutepath]                                       $fssnap_dir        = $::yum::params::fssnap_dir,
  Hash[String, Hash[String, Any]]                                      $groups            = $::yum::params::groups,
  String                                                               $package_name      = $::yum::params::package_name,
  Stdlib::Absolutepath                                                 $pluginconf_dir    = $::yum::params::pluginconf_dir,
  Hash[String, Hash[String, Any]]                                      $protected         = $::yum::params::protected,
  Stdlib::Absolutepath                                                 $protected_dir     = $::yum::params::protected_dir,
  Boolean                                                              $purge_repos       = $::yum::params::purge_repos,
  Stdlib::Absolutepath                                                 $repo_dir          = $::yum::params::repo_dir,
  Hash[String, Hash[String, Any]]                                      $repos             = $::yum::params::repos,
  Stdlib::Absolutepath                                                 $variable_dir      = $::yum::params::variable_dir,
  Hash[String, Hash[String, Any]]                                      $variables         = $::yum::params::variables,
  Optional[String]                                                     $bugtracker_url    = $::yum::params::bugtracker_url,
  Optional[Stdlib::Absolutepath]                                       $cachedir          = $::yum::params::cachedir,
  Optional[Integer[0, 10]]                                             $debuglevel        = $::yum::params::debuglevel,
  Optional[String]                                                     $distroverpkg      = $::yum::params::distroverpkg,
  Optional[Boolean]                                                    $exactarch         = $::yum::params::exactarch,
  Optional[Boolean]                                                    $gpgcheck          = $::yum::params::gpgcheck,
  Optional[Integer[0]]                                                 $installonly_limit = $::yum::params::installonly_limit,
  Optional[Boolean]                                                    $keepcache         = $::yum::params::keepcache,
  Optional[Stdlib::Absolutepath]                                       $logfile           = $::yum::params::logfile,
  Optional[Variant[Integer[0], Pattern[/^\d+[dhm]?$/], Enum['never']]] $metadata_expire   = undef,
  Optional[Boolean]                                                    $obsoletes         = $::yum::params::obsoletes,
  Optional[Boolean]                                                    $plugins           = $::yum::params::plugins,
) inherits ::yum::params {

  contain ::yum::install
  contain ::yum::config

  Class['::yum::install'] -> Class['::yum::config']
}