Files
puppet-nova/manifests/compute/libvirt/version.pp
2025-04-28 15:33:17 +00:00

31 lines
710 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 = '8.0'
}
'Debian': {
case $facts['os']['name'] {
'Ubuntu': {
$default = '10.0'
}
'Debian': {
$default = '9.0'
}
default: {
fail("Unsupported osname: ${::facts['os']['name']}")
}
}
}
default: {
fail("Unsupported osfamily: ${::facts['os']['family']}")
}
}
}