Skip to content

Commit

Permalink
Install lsb-release on Facter 3
Browse files Browse the repository at this point in the history
While this repository no longer relies on it, puppetlabs-apt does. This
ensures it's installed.
  • Loading branch information
ekohl committed Mar 15, 2022
1 parent f382b7a commit b029ecc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/setup_acceptance_node.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
if $facts['os']['name'] == 'Ubuntu' {
# Facter < 4 needs lsb-release for os.distro.codename
if versioncmp($facts['facterversion'], '4.0.0') <= 0 {
package { 'lsb-release':
ensure => installed,
}
}
}

0 comments on commit b029ecc

Please sign in to comment.