Puppet Class: openstack::nova::compute::service::mitaka::jessie

Defined in:
modules/openstack/manifests/nova/compute/service/mitaka/jessie.pp

Overview

Parameters:

  • libvirt_type (Any)
  • certname (Any)
  • ca_target (Any)
  • libvirt_unix_sock_group (Any)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'modules/openstack/manifests/nova/compute/service/mitaka/jessie.pp', line 1

class openstack::nova::compute::service::mitaka::jessie(
    $libvirt_type,
    $certname,
    $ca_target,
    $libvirt_unix_sock_group,
) {
    require ::openstack::serverpackages::mitaka::jessie

    $packages = [
        'libvirt-bin',
        'qemu-system',
        'nova-compute',
        'nova-compute-kvm',
        'spice-html5',
        'websockify',
        'virt-top',
        'dnsmasq-base',
        'libguestfs-tools',
    ]

    package { $packages:
        ensure          => 'present',
        install_options => ['-t', 'jessie-backports']
    }

    file {'/etc/libvirt/original':
        ensure  => 'directory',
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        recurse => true,
        source  => 'puppet:///modules/openstack/mitaka/nova/libvirt/original',
        require => Package['nova-compute'],
    }

    service { 'libvirtd':
        ensure  => 'running',
        enable  => true,
        require => Package[libvirt-bin],
    }

    file { '/etc/libvirt/libvirtd.conf':
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        content => template('openstack/mitaka/nova/compute/libvirtd.conf.erb'),
        notify  => Service['libvirtd'],
        require => Package['nova-compute'],
    }

    file { '/etc/default/libvirtd':
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        content => template('openstack/mitaka/nova/compute/libvirt.default.erb'),
        notify  => Service['libvirtd'],
        require => Package['nova-compute'],
    }

    file { '/etc/nova/nova-compute.conf':
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        content => template('openstack/mitaka/nova/compute/nova-compute.conf.erb'),
        notify  => Service['nova-compute'],
        require => Package['nova-compute'],
    }
}