File: cinder.pp

package info (click to toggle)
puppet-module-magnum 25.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,180 kB
  • sloc: ruby: 2,768; python: 38; makefile: 21; sh: 10
file content (40 lines) | stat: -rw-r--r-- 1,261 bytes parent folder | download
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
# == Class: magnum::cinder
#
# Manages the magnum cinder config
#
# === Parameters:
#
# [*default_docker_volume_type*]
#   (optional) Default cinder volume_type for docker storage
#   Defaults to $facts['os_service_default']
#
# [*default_etcd_volume_type*]
#   (optional) Default cinder volume_type for etcd storage
#   Defaults to $facts['os_service_default']
#
# [*default_boot_volume_type*]
#   (optional) Default cinder volume_type for boot disk
#   Defaults to $facts['os_service_default']
#
# [*default_boot_volume_size*]
#   (optional) Default volume size for boot disk
#   Defaults to $facts['os_service_default']
#
class magnum::cinder (
  $default_docker_volume_type = $facts['os_service_default'],
  $default_etcd_volume_type   = $facts['os_service_default'],
  $default_boot_volume_type   = $facts['os_service_default'],
  $default_boot_volume_size   = $facts['os_service_default'],
) {

  include magnum::deps

  magnum_config {
    'cinder/default_docker_volume_type': value => $default_docker_volume_type;
    'cinder/default_etcd_volume_type': value   => $default_etcd_volume_type;
    'cinder/default_boot_volume_type': value   => $default_boot_volume_type;
    'cinder/default_boot_volume_size': value   => $default_boot_volume_size;
  }

}