Add sysinfo_serial to control Serial number gen
Add sysinfo_serial parameter to control a Serial number entry
generation method. Defaults to $::os_service_default.
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
Change-Id: Ia66831c85b046b37c950662839d73142510b4a89
(cherry picked from commit 3f23af6485
)
(cherry picked from commit 29c0914ce087e6f090f06ca51f7dcd076f6e3021)
This commit is contained in:
parent
bab7651bd6
commit
c4ed32df1a
|
@ -65,6 +65,10 @@
|
|||
# (optional) Option to specify a default machine type per host architecture.
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
# [*sysinfo_serial*]
|
||||
# (optional) Option to specify a serial number entry generation method.
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
# [*inject_password*]
|
||||
# (optional) Inject the admin password at boot time, without an agent.
|
||||
# Defaults to false
|
||||
|
@ -244,6 +248,7 @@ class nova::compute::libvirt (
|
|||
$disk_cachemodes = [],
|
||||
$hw_disk_discard = $::os_service_default,
|
||||
$hw_machine_type = $::os_service_default,
|
||||
$sysinfo_serial = $::os_service_default,
|
||||
$inject_password = false,
|
||||
$inject_key = false,
|
||||
$inject_partition = -2,
|
||||
|
@ -394,6 +399,7 @@ class nova::compute::libvirt (
|
|||
'libvirt/inject_partition': value => $inject_partition;
|
||||
'libvirt/hw_disk_discard': value => $hw_disk_discard;
|
||||
'libvirt/hw_machine_type': value => $hw_machine_type;
|
||||
'libvirt/sysinfo_serial': value => $sysinfo_serial;
|
||||
'libvirt/enabled_perf_events': value => join(any2array($enabled_perf_events), ',');
|
||||
'libvirt/device_detach_attempts': value => $device_detach_attempts;
|
||||
'libvirt/device_detach_timeout': value => $device_detach_timeout;
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
features:
|
||||
- |
|
||||
Add ``sysinfo_serial`` parameter to control a Serial number entry generation
|
||||
method. Defaults to ``$::os_service_default``.
|
|
@ -58,6 +58,7 @@ describe 'nova::compute::libvirt' do
|
|||
it { is_expected.to contain_nova_config('libvirt/inject_key').with_value(false)}
|
||||
it { is_expected.to contain_nova_config('libvirt/inject_partition').with_value(-2)}
|
||||
it { is_expected.to contain_nova_config('libvirt/enabled_perf_events').with_value('<SERVICE DEFAULT>')}
|
||||
it { is_expected.to contain_nova_config('libvirt/sysinfo_serial').with_value('<SERVICE DEFAULT>')}
|
||||
it { is_expected.to contain_nova_config('libvirt/device_detach_attempts').with_value('<SERVICE DEFAULT>')}
|
||||
it { is_expected.to contain_nova_config('libvirt/device_detach_timeout').with_value('<SERVICE DEFAULT>')}
|
||||
it { is_expected.to contain_nova_config('vnc/server_listen').with_value('127.0.0.1')}
|
||||
|
@ -92,6 +93,7 @@ describe 'nova::compute::libvirt' do
|
|||
:disk_cachemodes => ['file=directsync','block=none'],
|
||||
:hw_disk_discard => 'unmap',
|
||||
:hw_machine_type => 'x86_64=machinetype1,armv7l=machinetype2',
|
||||
:sysinfo_serial => 'auto',
|
||||
:enabled_perf_events => ['cmt', 'mbml', 'mbmt'],
|
||||
:device_detach_attempts => 8,
|
||||
:device_detach_timeout => 20,
|
||||
|
@ -136,6 +138,7 @@ describe 'nova::compute::libvirt' do
|
|||
it { is_expected.to contain_nova_config('libvirt/disk_cachemodes').with_value('file=directsync,block=none')}
|
||||
it { is_expected.to contain_nova_config('libvirt/hw_disk_discard').with_value('unmap')}
|
||||
it { is_expected.to contain_nova_config('libvirt/hw_machine_type').with_value('x86_64=machinetype1,armv7l=machinetype2')}
|
||||
it { is_expected.to contain_nova_config('libvirt/sysinfo_serial').with_value('auto')}
|
||||
it { is_expected.to contain_nova_config('libvirt/enabled_perf_events').with_value('cmt,mbml,mbmt')}
|
||||
it { is_expected.to contain_nova_config('libvirt/device_detach_attempts').with_value(8)}
|
||||
it { is_expected.to contain_nova_config('libvirt/device_detach_timeout').with_value(20)}
|
||||
|
|
Loading…
Reference in New Issue