Added force_config_drive param for compute

This adds the ability to turn on config drive.
nova::compute has the option, but openstack::compute
does not have a parameter to pass to nova::compute.

Change-Id: Icd680a296ac4251eeb33e4ac6feca9527ccc247b
This commit is contained in:
Matthew Black
2013-08-09 10:14:31 -04:00
committed by Dan Bode
parent 3693c1f868
commit f1b5d684bd
2 changed files with 7 additions and 2 deletions

View File

@@ -96,6 +96,7 @@ class openstack::compute (
# General
$migration_support = false,
$verbose = false,
$force_config_drive = false,
$enabled = true
) {
@@ -144,6 +145,7 @@ class openstack::compute (
vnc_enabled => $vnc_enabled,
vncserver_proxyclient_address => $internal_address,
vncproxy_host => $vncproxy_host,
force_config_drive => $force_config_drive,
}
# Configure libvirt for nova-compute

View File

@@ -46,7 +46,8 @@ describe 'openstack::compute' do
:enabled => true,
:vnc_enabled => true,
:vncserver_proxyclient_address => '127.0.0.2',
:vncproxy_host => false
:vncproxy_host => false,
:force_config_drive => false
)
should contain_class('nova::compute::libvirt').with(
:libvirt_type => 'kvm',
@@ -103,6 +104,7 @@ describe 'openstack::compute' do
:libvirt_type => 'qemu',
:vncproxy_host => '127.0.0.2',
:vnc_enabled => false,
:force_config_drive => true,
:verbose => true
)
end
@@ -122,7 +124,8 @@ describe 'openstack::compute' do
:enabled => true,
:vnc_enabled => false,
:vncserver_proxyclient_address => '127.0.0.1',
:vncproxy_host => '127.0.0.2'
:vncproxy_host => '127.0.0.2',
:force_config_drive => true
)
should contain_class('nova::compute::libvirt').with(
:libvirt_type => 'qemu',