Skip to content

Commit

Permalink
rpm-sign missing in el6
Browse files Browse the repository at this point in the history
rpm-sign is only present in "rpm" package before el7
  • Loading branch information
PascalBourdier authored Jun 15, 2016
1 parent 6b16669 commit cfdf6c2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions manifests/packages/essential.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
}

$builder_pkgs = [
$common_builder_pkgs = [
'autoconf',
'automake',
'createrepo',
Expand All @@ -22,9 +22,15 @@
'rubygem-rake',
'yum',
'yum-utils',
'rpm-sign',
]

# this package is only present in "rpm" package before el7
if versioncmp($::operatingsystemrelease, '7') >= 0 {
$builder_pkgs = concat($common_builder_pkgs, 'rpm-sign')
} else {
$builder_pkgs = $common_builder_pkgs
}

package { $builder_pkgs:
ensure => installed,
}
Expand Down

0 comments on commit cfdf6c2

Please sign in to comment.