Skip to content

Commit

Permalink
Merge pull request #1039 from david22swan/GH-1036/main/dependency_cycle
Browse files Browse the repository at this point in the history
(ISSUE-1036) Conditional `gnupg` include added to init.pp
  • Loading branch information
chelnak authored Jun 20, 2022
2 parents 915082e + 8d35d59 commit a03ae3f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -358,4 +358,20 @@
if $pins {
create_resources('apt::pin', $pins)
}

case $facts['os']['name'] {
'Debian': {
if versioncmp($facts['os']['release']['major'], '9') >= 0 {
ensure_packages(['gnupg'])
}
}
'Ubuntu': {
if versioncmp($facts['os']['release']['full'], '17.04') >= 0 {
ensure_packages(['gnupg'])
}
}
default: {
# Nothing in here
}
}
}

0 comments on commit a03ae3f

Please sign in to comment.