
Remove deprecated service entries for authtoken config. Move keystone config from nova class to nova::api class.
33 lines
825 B
Puppet
33 lines
825 B
Puppet
class nova::compute::libvirt (
|
|
$libvirt_type = 'kvm',
|
|
$vncserver_listen = '127.0.0.1'
|
|
) {
|
|
|
|
include nova::params
|
|
|
|
Service['libvirt'] -> Service['nova-compute']
|
|
|
|
if($::nova::params::compute_package_name) {
|
|
package { "nova-compute-${libvirt_type}":
|
|
ensure => present,
|
|
before => Package['nova-compute'],
|
|
}
|
|
}
|
|
|
|
package { 'libvirt':
|
|
name => $::nova::params::libvirt_package_name,
|
|
ensure => present,
|
|
}
|
|
|
|
service { 'libvirt' :
|
|
name => $::nova::params::libvirt_service_name,
|
|
ensure => running,
|
|
provider => $::nova::params::special_service_provider,
|
|
require => Package['libvirt'],
|
|
}
|
|
|
|
nova_config { 'libvirt_type': value => $libvirt_type }
|
|
nova_config { 'connection_type': value => 'libvirt' }
|
|
nova_config { 'vncserver_listen': value => $vncserver_listen }
|
|
}
|