Commit 5a028f46 authored by Emmanuel Medernach's avatar Emmanuel Medernach
Browse files

Gestion de plusieurs listes de listes de paquets a installer (union)

parent 02a03a36
......@@ -12,15 +12,18 @@ class yum::config {
create_resources(yumrepo, $listofrepos)
}
if (has_key($yum::grouplist, $yum::group)) {
if ($yum::grouplist[$yum::group] != undef) {
package { $yum::grouplist[$yum::group]:
ensure => 'installed',
$yum::groups.each |$group| {
if (has_key($yum::grouplist, $group)) {
if ($yum::grouplist[$group] != undef) {
package { $yum::grouplist[$group]:
ensure => 'installed',
}
}
} else {
notify {"Warning: yum group ${group} is absent from yum::grouplist !":}
}
}
} else {
notify {"Warning: yum module: yum::group is absent from yum::grouplist !":}
}
if $yum::autoupdate {
......
......@@ -6,7 +6,7 @@ class yum(
$packages, # List of packages to install
$profile, # Profile type (set of repositories to install)
$autoupdate = false,
$group, # Package group name
$groups, # List of package group names
$grouplist, # List of package groups
) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment