Files
puppet-nova/manifests/compute/libvirt/version.pp
Takashi Kajinami 6c3a81151a Drop support for old libvirt package
This change removes logic to support very old version of libvirt.
Currently all distros we support provider puppet 5.6 or later and we
don't expect users are using packages older than distro packages.

Change-Id: I3c693493c305330acb775fae9566761688d26d29
2022-02-15 00:06:13 +09:00

25 lines
628 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'], '9') >= 0 {
$default = '7.0'
} else {
$default = '5.6'
}
}
'Debian': {
$default = '6.0'
}
default: {
fail("Class['nova::compute::libvirt::version']: Unsupported osfamily: ${::osfamily}")
}
}
}