
Fedora support is never tested, and has been unmaintained for a while. Because we don't expect any actual user using OpenStack on Fedora, this change drops support for Fedora directly. Change-Id: I4d96eaf73bdfbed5aab9c6f5c60da3d6005d8cf9
31 lines
844 B
Puppet
31 lines
844 B
Puppet
# Class: nova::compute::libvirt::version
|
|
#
|
|
# Try to detect the version by OS
|
|
# Right now this is only used by nova::compute::libvirt::qemu and the
|
|
# interesting version is with which release there will be libvirt 4.5
|
|
# or higher.
|
|
#
|
|
class nova::compute::libvirt::version {
|
|
case $facts['os']['family'] {
|
|
'RedHat': {
|
|
if versioncmp($facts['os']['release']['full'], '8') >= 0 {
|
|
$default = '5.6'
|
|
} elsif versioncmp($facts['os']['release']['full'], '7.6') >= 0 {
|
|
$default = '4.5'
|
|
} else {
|
|
$default = '3.9'
|
|
}
|
|
}
|
|
'Debian': {
|
|
if versioncmp($facts['os']['release']['full'], '18.04') >= 0 {
|
|
$default = '6.0'
|
|
} else {
|
|
$default = '4.0'
|
|
}
|
|
}
|
|
default: {
|
|
fail("Class['nova::compute::libvirt::version']: Unsupported osfamily: ${::osfamily}")
|
|
}
|
|
}
|
|
}
|