Puppet Class: openstack::profile::cinder::volume

Defined in:
manifests/profile/cinder/volume.pp

Overview

The profile to install the volume service



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'manifests/profile/cinder/volume.pp', line 2

class openstack::profile::cinder::volume {
  $management_network = hiera('openstack::network::management')
  $management_address = ip_for_network($management_network)

  openstack::resources::firewall { 'ISCSI API': port => '3260', }

  include ::openstack::common::cinder

  class { '::cinder::setup_test_volume':
    volume_name => 'cinder-volumes',
    size        => hiera('openstack::cinder::volume_size')
  } ->

  class { '::cinder::volume':
    package_ensure => true,
    enabled        => true,
  }

  class { '::cinder::volume::iscsi':
    iscsi_ip_address  => $management_address,
    volume_group      => 'cinder-volumes',
  }
}