Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
IPHC-Puppet
yum
Commits
5a028f46
Commit
5a028f46
authored
Mar 23, 2018
by
Emmanuel Medernach
Browse files
Gestion de plusieurs listes de listes de paquets a installer (union)
parent
02a03a36
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
manifests/config.pp
manifests/config.pp
+11
-8
manifests/init.pp
manifests/init.pp
+1
-1
No files found.
manifests/config.pp
View file @
5a028f46
...
...
@@ -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
{
...
...
manifests/init.pp
View file @
5a028f46
...
...
@@ -6,7 +6,7 @@ class yum(
$packages
,
# List of packages to install
$profile
,
# Profile type (set of repositories to install)
$autoupdate
=
false
,
$group
,
# P
ackage group name
$group
s
,
# List of p
ackage group name
s
$grouplist
,
# List of package groups
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment