23 lines
473 B
Puppet
23 lines
473 B
Puppet
|
|
nova_config{
|
|
"network_host": value => "%(CONFIG_NOVA_NETWORK_HOST)s";
|
|
"libvirt_inject_partition": value => "-1";
|
|
}
|
|
|
|
class {"nova::compute":
|
|
enabled => true,
|
|
}
|
|
|
|
class { 'nova::compute::libvirt':
|
|
libvirt_type => "%(CONFIG_LIBVIRT_TYPE)s",
|
|
}
|
|
|
|
if "%(CONFIG_LIBVIRT_TYPE)s" == "qemu" {
|
|
file { "/usr/bin/qemu-system-x86_64":
|
|
ensure => link,
|
|
target => "/usr/libexec/qemu-kvm",
|
|
notify => Service["nova-compute"],
|
|
}
|
|
}
|
|
|