Added parameter libvirt_type to nova class
need to set it to qemu for vagrant testing
This commit is contained in:
parent
eb468b2569
commit
a0e403682a
@ -12,6 +12,8 @@ class nova::all(
|
||||
$rabbit_virtual_host = undef,
|
||||
$rabbit_host = undef,
|
||||
|
||||
$libvirt_type = 'qemu',
|
||||
|
||||
$flat_network_bridge = 'br100',
|
||||
$flat_network_bridge_ip = '11.0.0.1',
|
||||
$flat_network_bridge_netmask = '255.255.255.0',
|
||||
@ -60,6 +62,7 @@ class nova::all(
|
||||
|
||||
class { "nova::compute":
|
||||
api_server => $ipaddress,
|
||||
libvirt_type => $libvirt_type,
|
||||
enabled => true,
|
||||
}
|
||||
|
||||
|
@ -5,10 +5,13 @@ class nova::compute(
|
||||
$enabled = false,
|
||||
$api_port = 8773,
|
||||
$aws_address = '169.254.169.254'
|
||||
$libvirt_type = 'kvm',
|
||||
) {
|
||||
|
||||
Nova_config<| |>~>Service['nova-compute']
|
||||
|
||||
nova_config { 'libvirt_type': value => $libvirt_type }
|
||||
|
||||
if $enabled {
|
||||
$service_ensure = 'running'
|
||||
} else {
|
||||
|
@ -31,4 +31,5 @@ class { 'nova::all':
|
||||
glance_host => 'localhost',
|
||||
glance_port => '9292',
|
||||
|
||||
libvirt_type => 'qemu',
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user