Files
packstack/packstack/puppet/templates/nova_compute.pp
Derek Higgins 1fa2eddee5 Now using the is_virtual facter fact to decide on libvirt type
This was a config value, but using facter the appropiate value can be
set on the nova compute host
https://bugzilla.redhat.com/show_bug.cgi?id=888756
2012-12-19 17:55:21 -05:00

41 lines
954 B
Puppet

if $::is_virtual == "true" {
$libvirt_type = "qemu"
nova_config{
"libvirt_cpu_mode": value => "none";
}
}else{
$libvirt_type = "kvm"
}
nova_config{
"network_host": value => "%(CONFIG_NOVA_NETWORK_HOST)s";
"libvirt_inject_partition": value => "-1";
}
class {"nova::compute":
enabled => true,
vncproxy_host => "%(CONFIG_NOVA_VNCPROXY_HOST)s",
vncserver_proxyclient_address => "%(CONFIG_NOVA_COMPUTE_HOST)s",
}
class { 'nova::compute::libvirt':
libvirt_type => "$libvirt_type",
vncserver_listen => "%(CONFIG_NOVA_COMPUTE_HOST)s",
}
if $::is_virtual == "true" and $::operatingsystem == "RedHat" {
file { "/usr/bin/qemu-system-x86_64":
ensure => link,
target => "/usr/libexec/qemu-kvm",
notify => Service["nova-compute"],
}
}
firewall { '001 nove compute incoming':
proto => 'tcp',
dport => '5900-5999',
action => 'accept',
}