Created
March 11, 2021 15:53
-
-
Save logicminds/0816ab9c3cd485a7270bc2795ec2b94f to your computer and use it in GitHub Desktop.
Ubuntu distro flavor hack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if $::lsbdistid == 'MMP' { | |
# This is a hack to get around a facter 3,4 bug | |
# where the codename is not read correctly | |
if $::lsbdistcodename == 'pisces' { | |
ini_setting{'DISTRIB_CODENAME': | |
ensure => present, | |
path => '/etc/lsb-release', | |
value => 'bionic', | |
setting => 'DISTRIB_CODENAME', | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment