Puppet Class: openstack::cinder::volume::bobcat

Defined in:
modules/openstack/manifests/cinder/volume/bobcat.pp

Overview

Parameters:

  • version (Any)
  • rabbitmq_nodes (Array[Stdlib::Fqdn])
  • db_user (String[1])
  • db_pass (String[1])
  • db_name (String[1])
  • db_host (Stdlib::Fqdn)
  • region (String[1])
  • ceph_pool (String[1])
  • ceph_rbd_client_name (String[1])
  • rabbit_user (String[1])
  • rabbit_pass (String[1])
  • libvirt_rbd_cinder_uuid (String[1])
  • all_backend_names (Array[String])
  • backend_type (String[1])
  • backend_name (String[1])
  • lvm_volume_group (String[1])


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
# File 'modules/openstack/manifests/cinder/volume/bobcat.pp', line 3

class openstack::cinder::volume::bobcat(
    $version,
    Array[Stdlib::Fqdn] $rabbitmq_nodes,
    String[1]           $db_user,
    String[1]           $db_pass,
    String[1]           $db_name,
    Stdlib::Fqdn        $db_host,
    String[1]           $region,
    String[1]           $ceph_pool,
    String[1]           $ceph_rbd_client_name,
    String[1]           $rabbit_user,
    String[1]           $rabbit_pass,
    String[1]           $libvirt_rbd_cinder_uuid,
    Array[String]       $all_backend_names,
    String[1]           $backend_type,
    String[1]           $backend_name,
    String[1]           $lvm_volume_group,
) {
    require "openstack::serverpackages::bobcat::${::lsbdistcodename}"
    require 'openstack::cinder::user'

    package { 'cinder-volume':
        ensure => 'present',
    }
    package { 'tgt':
        ensure => 'present',
    }

    file {
        # Override the package init module to specify cinder-volume.conf
        '/etc/init.d/cinder-volume':
            source  => 'puppet:///modules/openstack/bobcat/cinder/cinder-volume',
            owner   => 'root',
            group   => 'root',
            mode    => '0755',
            notify  => Service['cinder-volume'],
            require => Package['cinder-volume'];
    }

    file { '/etc/cinder/cinder-volume.conf':
        content   => template('openstack/bobcat/cinder/cinder-volume.conf.erb'),
        owner     => 'cinder',
        group     => 'cinder',
        mode      => '0440',
        show_diff => false,
    }
}