Files
puppet-nova/manifests/compute/libvirt/version.pp
Takashi Kajinami 8cba8cd046 Remove libvirt version detection for CentOS 8
... because this module no longer supports CentOS 8.

Change-Id: I1e13e1694ce0f5d8cf5f40e13c0cacbf2892adbd
2023-03-20 18:06:12 +09:00

21 lines
484 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': {
$default = '7.0'
}
'Debian': {
$default = '6.0'
}
default: {
fail("Unsupported osfamily: ${::facts['os']['family']}")
}
}
}