Skip to content

Instantly share code, notes, and snippets.

@logicminds
Created March 11, 2021 15:53
Show Gist options
  • Save logicminds/0816ab9c3cd485a7270bc2795ec2b94f to your computer and use it in GitHub Desktop.
Save logicminds/0816ab9c3cd485a7270bc2795ec2b94f to your computer and use it in GitHub Desktop.
Ubuntu distro flavor hack
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