Puppet Class: openstack::cinder::service::ussuri

Defined in:
modules/openstack/manifests/cinder/service/ussuri.pp

Overview

Parameters:

  • openstack_controllers (Any)
  • db_user (Any)
  • db_pass (Any)
  • db_name (Any)
  • db_host (Any)
  • ldap_user_pass (Any)
  • keystone_admin_uri (Any)
  • region (Any)
  • ceph_pool (String)
  • rabbit_user (String)
  • rabbit_pass (String)
  • api_bind_port (Stdlib::Port)
  • libvirt_rbd_cinder_uuid (String)


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
# File 'modules/openstack/manifests/cinder/service/ussuri.pp', line 1

class openstack::cinder::service::ussuri(
    $openstack_controllers,
    $db_user,
    $db_pass,
    $db_name,
    $db_host,
    $ldap_user_pass,
    $keystone_admin_uri,
    $region,
    String $ceph_pool,
    String $rabbit_user,
    String $rabbit_pass,
    Stdlib::Port $api_bind_port,
    String $libvirt_rbd_cinder_uuid,
) {
    require "openstack::serverpackages::ussuri::${::lsbdistcodename}"

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

    file {
        '/etc/cinder/cinder.conf':
            content   => template('openstack/ussuri/cinder/cinder.conf.erb'),
            owner     => 'cinder',
            group     => 'cinder',
            mode      => '0440',
            show_diff => false,
            notify    => Service['cinder-scheduler', 'nova-api', 'cinder-volume', 'cinder-api'],
            require   => Package['cinder-api', 'cinder-scheduler', 'cinder-volume'];
        '/etc/cinder/policy.json':
            ensure  => 'absent';
        '/etc/cinder/policy.yaml':
            source  => 'puppet:///modules/openstack/ussuri/cinder/policy.yaml',
            owner   => 'cinder',
            group   => 'cinder',
            mode    => '0644',
            require => Package['cinder-api'];
        '/etc/cinder/resource_filters.json':
            source  => 'puppet:///modules/openstack/ussuri/cinder/resource_filters.json',
            owner   => 'cinder',
            group   => 'cinder',
            mode    => '0644',
            require => Package['cinder-api'];
        '/etc/init.d/cinder-api':
            content => template('openstack/ussuri/cinder/cinder-api'),
            owner   => 'root',
            group   => 'root',
            mode    => '0755',
            notify  => Service['cinder-api'],
            require => Package['cinder-api'];
    }
}