diff --git a/manifests/compute.pp b/manifests/compute.pp index 98c3c11..35df2cc 100644 --- a/manifests/compute.pp +++ b/manifests/compute.pp @@ -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 diff --git a/spec/classes/openstack_compute_spec.rb b/spec/classes/openstack_compute_spec.rb index f6a0a56..8f3c78a 100644 --- a/spec/classes/openstack_compute_spec.rb +++ b/spec/classes/openstack_compute_spec.rb @@ -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',