Fix Ubuntu18/puppet6 CI job

Because of odd packaging decisions at Puppet Inc, the lsb_release tool
is required on Puppet 6 for the distro facts. It's not in the Ubuntu18
base package.
This commit is contained in:
Tim Meusel 2022-02-17 09:19:45 +01:00
parent fb2171dde6
commit ea0978356a
No known key found for this signature in database
GPG key ID: 04D659E6BF1C4CC0

View file

@ -0,0 +1,6 @@
# Needed for os.distro.codebase fact on ubuntu 18 on puppet 6
if $facts['os']['name'] == 'Ubuntu' and $facts['os']['release']['full'] == '18.04' and versioncmp($facts['puppetversion'], '7') <= 0 {
package{'lsb-release':
ensure => present,
}
}