Skip to content

Commit c76b33c

Browse files
committed
Update to Move libvirt options into a group
Nova has moved the the libvirt options into a group in the config file, this patch aligns packstack templates to this new configuration. This patch needs this pull request to be approved first: redhat-openstack/openstack-puppet-modules#37 Change-Id: I14027588dd10e8e13af356ec53a9958f49039fb1 Fixes: rhbz#1093925
1 parent e2e686a commit c76b33c

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

packstack/puppet/templates/nova_compute_libvirt.pp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@
44
# preventing a clash with rules being set by libvirt
55

66
if $::is_virtual_packstack == "true" {
7-
$libvirt_type = "qemu"
8-
nova_config{
9-
"DEFAULT/libvirt_cpu_mode": value => "none";
10-
}
7+
$libvirt_virt_type = "qemu"
8+
$libvirt_cpu_mode = "none"
119
}else{
12-
$libvirt_type = "kvm"
10+
$libvirt_virt_type = "kvm"
1311
}
1412

1513
nova_config{
16-
"DEFAULT/libvirt_inject_partition": value => "-1";
14+
"libvirt/inject_partition": value => "-1";
1715
}
1816

1917
exec { 'qemu-kvm':
@@ -23,8 +21,9 @@
2321
}
2422

2523
class { 'nova::compute::libvirt':
26-
libvirt_type => "$libvirt_type",
27-
vncserver_listen => "0.0.0.0",
24+
libvirt_virt_type => "$libvirt_virt_type",
25+
libvirt_cpu_mode => "$libvirt_cpu_mode",
26+
vncserver_listen => "0.0.0.0",
2827
}
2928

3029
exec {'load_kvm':

0 commit comments

Comments
 (0)