
This change introduces the independent classes to manage parameters in the <service>_client sections. These classes provides support for endpoint_type and region_name. Change-Id: If0e06e6c1364f45cfa3a42428cd8e043a5a1b369
37 lines
990 B
Puppet
37 lines
990 B
Puppet
# == Class: watcher::cinder_client
|
|
#
|
|
# Configure the cinder_client options
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*api_version*]
|
|
# (Optional) Version of Cinder API to use in cinderclient.
|
|
# Defaults to $::os_service_default
|
|
#
|
|
# [*endpoint_type*]
|
|
# (Optional) Type of endpoint to use in cinderclient.
|
|
# Defaults to $::os_service_default
|
|
#
|
|
# [*region_name*]
|
|
# (Optional) Region in Identify service catalog to use for communication
|
|
# with the OpenStack service.
|
|
# Defaults to $::os_service_default.
|
|
#
|
|
class watcher::cinder_client (
|
|
$api_version = $::os_service_default,
|
|
$endpoint_type = $::os_service_default,
|
|
$region_name = $::os_service_default,
|
|
) {
|
|
|
|
include watcher::deps
|
|
include watcher::params
|
|
|
|
$api_version_real = pick($::watcher::cinder_client_api_version, $api_version)
|
|
|
|
watcher_config {
|
|
'cinder_client/api_version': value => $api_version_real;
|
|
'cinder_client/endpoint_type': value => $endpoint_type;
|
|
'cinder_client/region_name': value => $region_name;
|
|
}
|
|
}
|