Defined Type: yum::group

Defined in:
manifests/group.pp

Overview

Manage version groups.

Examples:

Define an example group

include ::yum
::yum::group { 'yum':
  run_with_packages => true,
  pkglist           => [
    'glibc',
    'sqlite',
    'libcurl',
    'nss',
    'yum-metadata-parser',
    'rpm',
    'rpm-libs',
    'rpm-python',
    'python',
    'python-iniparse',
    'python-urlgrabber',
    'python-pycurl',
  ],
}

Parameters:

  • group (String) (defaults to: $title)
  • pkglist (Array[String, 1])
  • run_with_packages (Optional[Boolean]) (defaults to: undef)

See Also:

Since:

  • 1.0.0



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'manifests/group.pp', line 30

define yum::group (
  Array[String, 1]  $pkglist,
  String            $group             = $title,
  Optional[Boolean] $run_with_packages = undef,
) {

  ensure_resource('concat', "${::yum::conf_dir}/version-groups.conf", {
    owner => 0,
    group => 0,
    mode  => '0644',
    warn  => "# !!! Managed by Puppet !!!\n",
  })

  ::concat::fragment { "${::yum::conf_dir}/version-groups.conf ${group}":
    content => template("${module_name}/version-groups.conf.erb"),
    target  => "${::yum::conf_dir}/version-groups.conf",
  }
}