Added class for managing yum excludes
This commit is contained in:
parent
6da53f3c8c
commit
1d1d0845cb
1 changed files with 23 additions and 0 deletions
|
@ -99,6 +99,29 @@ class yum::common {
|
|||
}
|
||||
|
||||
|
||||
# Manage yum excludes.
|
||||
#
|
||||
# === Global variables
|
||||
#
|
||||
# $yum_exclude:
|
||||
# Array of packets to exclude.
|
||||
#
|
||||
class yum::exclude {
|
||||
|
||||
if !$yum_exclude {
|
||||
fail("\$yum_exclude must be defined for yum::exclude")
|
||||
}
|
||||
|
||||
$yum_exclude_real = inline_template('<%= yum_exclude.join(" ") -%>')
|
||||
|
||||
augeas { "yum-exclude":
|
||||
context => "/files/etc/yum.conf/main",
|
||||
changes => "set exclude ${yum_exclude_real}",
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
# Add new yum repository.
|
||||
#
|
||||
# === Parameters
|
||||
|
|
Loading…
Add table
Reference in a new issue