
The NBD protocol previously runs in clear text, offering no security protection for the data transferred, unless it is tunnelled over some external transport like SSH. Such tunnelling is inefficient and inconvenient to manage. Support for TLS to the NBD clients & servers provided by QEMU was added. This adds support to configure ndb related qemu.conf parameters. Since libvirt >= 4.5 is required ::nova::compute::libvirt::version checks the OS version to map the libvirt version we can expect and only configured the nbd parameter then. Change-Id: Ifa5cf08d5104a62c9c094e3585de33e19e265110 Related-Bug: 1793093
44 lines
1.1 KiB
Puppet
44 lines
1.1 KiB
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 {
|
|
# This will be 7.5 or 7.6 on RedHat, 9 on Debian, 18.10 or cosmic on Ubuntu, etc.
|
|
case $facts['os']['family'] {
|
|
'RedHat': {
|
|
case $facts['os']['name'] {
|
|
'RedHat': {
|
|
if versioncmp($facts['os']['release']['full'], '7.6') >= 0 {
|
|
$default = '4.5'
|
|
} else {
|
|
$default = '3.9'
|
|
}
|
|
}
|
|
'Fedora': {
|
|
if versioncmp($facts['os']['release']['full'], '29') >= 0 {
|
|
$default = '4.5'
|
|
} else {
|
|
$default = '3.9'
|
|
}
|
|
}
|
|
default: {
|
|
$default = '3.9'
|
|
}
|
|
}
|
|
}
|
|
'Debian': {
|
|
if versioncmp($facts['os']['release']['full'], '18.10') >= 0 {
|
|
$default = '4.6'
|
|
} else {
|
|
$default = '4.0'
|
|
}
|
|
}
|
|
default: {
|
|
fail("Class['nova::compute::libvirt::version']: Unsupported osfamily: ${::osfamily}")
|
|
}
|
|
}
|
|
}
|