Puppet Class: octavia::cinder
- Defined in:
- manifests/cinder.pp
Overview
Class: octavia::cinder
Setup and configure octavia.conf cinder section.
Parameters:
- service_name
-
(Optional) The name of the cinder service in the keystone catalog. Defaults to $facts
- endpoint
-
(Optional) Custom cinder endpoint if override is necessary. Defaults to $facts
- region_name
-
(Optional) Region in catalog to use for cinder. Defaults to $facts
- endpoint_type
-
(Optional) Endpoint type in catalog to use for cinder. Defaults to $facts
- availability_zone
-
(Optional) Availability zone to use for creating volume. Defaults to $facts
- volume_size
-
(Optional) Size of volume, in GB, for Amphora instance Defaults to $facts
- volume_type
-
(Optional) Type of volume for Amphorae volume root disk Defaults to $facts
- volume_create_retry_interval
-
(Optional) Interval time to wait volume is created in available state Defaults to $facts
- volume_create_timeout
-
(Optional) Timeout to wait volume is created in available Defaults to $facts
- volume_create_max_retries
-
(Optional) Maximum number of retries to create volume Defaults to $facts
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'manifests/cinder.pp', line 47
class octavia::cinder (
$service_name = $facts['os_service_default'],
$endpoint = $facts['os_service_default'],
$region_name = $facts['os_service_default'],
$endpoint_type = $facts['os_service_default'],
$availability_zone = $facts['os_service_default'],
$volume_size = $facts['os_service_default'],
$volume_type = $facts['os_service_default'],
$volume_create_retry_interval = $facts['os_service_default'],
$volume_create_timeout = $facts['os_service_default'],
$volume_create_max_retries = $facts['os_service_default'],
) {
include octavia::deps
octavia_config {
'cinder/service_name': value => $service_name;
'cinder/endpoint': value => $endpoint;
'cinder/region_name': value => $region_name;
'cinder/endpoint_type': value => $endpoint_type;
'cinder/availability_zone': value => $availability_zone;
'cinder/volume_size': value => $volume_size;
'cinder/volume_type': value => $volume_type;
'cinder/volume_create_retry_interval': value => $volume_create_retry_interval;
'cinder/volume_create_timeout': value => $volume_create_timeout;
'cinder/volume_create_max_retries': value => $volume_create_max_retries;
}
}
|