Puppet Class: cubbystack::nova::compute::libvirt

Defined in:
manifests/nova/compute/libvirt.pp

Overview

Class: cubbystack::nova::compute::libvirt

Configures openstack-compute to use libvirt

Parameters

package_ensure

The status of the nova-api package Defaults to latest

libvirt_type

The libvirt category to use Defaults to kvm

Parameters:

  • package_ensure (Any) (defaults to: latest)
  • libvirt_type (Any) (defaults to: 'kvm')


15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'manifests/nova/compute/libvirt.pp', line 15

class cubbystack::nova::compute::libvirt (
  $package_ensure = latest,
  $libvirt_type   = 'kvm'
) {

  include ::cubbystack::params
  include ::cubbystack::nova

  $package_name = "${::cubbystack::params::nova_compute_package_name}-${libvirt_type}"
  Package[$package_name] ~> Service<| tag == 'nova' |>

  cubbystack::functions::generic_service { $package_name:
    package_ensure => $package_ensure,
    package_name   => $package_name,
    tags           => $::cubbystack::nova::tags,
  }

  cubbystack::functions::generic_service { 'libvirt':
    package_name   => $::cubbystack::params::libvirt_package_name,
    service_name   => $::cubbystack::params::libvirt_service_name,
    package_ensure => $package_ensure,
    tags           => ['openstack', 'libvirt'],
  }

}