Puppet Class: yum::plugin::rhnplugin
- Inherits:
- ::yum::params
- Defined in:
- manifests/plugin/rhnplugin.pp
Overview
Manage the Yum RHN plugin
[View source]
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'manifests/plugin/rhnplugin.pp', line 17
class yum::plugin::rhnplugin (
Enum['present', 'absent'] $ensure = 'present',
Boolean $enable = true,
String $package_name = $::yum::params::rhnplugin_package_name,
Optional[Boolean] $gpgcheck = true,
Optional[Integer[0]] $timeout = 120,
) inherits ::yum::params {
if ! defined(Class['::yum']) {
fail('You must include the yum base class before using the yum::plugin::rhnplugin class')
}
package { $package_name:
ensure => $ensure,
tag => [
"bodgit::${module_name}",
],
}
if $ensure == 'present' {
::yum::plugin { 'rhnplugin':
content => template("${module_name}/rhnplugin.conf.erb"),
require => Package[$package_name],
}
}
}
|