Replace legacy facts and use fact hash

... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: I309dc0910bf7111cba3aaa58688b862590043973
This commit is contained in:
Takashi Kajinami 2023-03-01 15:50:35 +09:00
parent be30c71471
commit d1c198ced9
75 changed files with 911 additions and 917 deletions

View File

@ -6,7 +6,7 @@
# #
# [*service_workers*] # [*service_workers*]
# (optional) Number of cinder-api workers # (optional) Number of cinder-api workers
# Defaults to $::os_workers # Defaults to $facts['os_workers']
# #
# [*package_ensure*] # [*package_ensure*]
# (optional) The state of the package # (optional) The state of the package
@ -14,7 +14,7 @@
# #
# [*bind_host*] # [*bind_host*]
# (optional) The cinder api bind address # (optional) The cinder api bind address
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*enabled*] # [*enabled*]
# (optional) The state of the service (boolean value) # (optional) The state of the service (boolean value)
@ -26,7 +26,7 @@
# #
# [*ratelimits*] # [*ratelimits*]
# (optional) The state of the service # (optional) The state of the service
# Defaults to $::os_service_default. If undefined the default ratelimiting values are used. # Defaults to $facts['os_service_default'].
# #
# [*ratelimits_factory*] # [*ratelimits_factory*]
# (optional) Factory to use for ratelimiting # (optional) Factory to use for ratelimiting
@ -37,7 +37,7 @@
# This should contain the name of the default volume type to use. # This should contain the name of the default volume type to use.
# If not configured, it produces an error when creating a volume # If not configured, it produces an error when creating a volume
# without specifying a type. # without specifying a type.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*sync_db*] # [*sync_db*]
# (Optional) Run db sync on the node. # (Optional) Run db sync on the node.
@ -45,16 +45,16 @@
# #
# [*public_endpoint*] # [*public_endpoint*]
# (Optional) Public url to use for versions endpoint. # (Optional) Public url to use for versions endpoint.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*osapi_volume_base_url*] # [*osapi_volume_base_url*]
# (Optional) Base URL that will be presented to users in links to the OpenStack Volume API. # (Optional) Base URL that will be presented to users in links to the OpenStack Volume API.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*osapi_max_limit*] # [*osapi_max_limit*]
# (Optional) The maximum number of items that a collection resource # (Optional) The maximum number of items that a collection resource
# returns in a single response (integer value) # returns in a single response (integer value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*service_name*] # [*service_name*]
# (optional) Name of the service that will be providing the # (optional) Name of the service that will be providing the
@ -68,11 +68,11 @@
# [*enable_proxy_headers_parsing*] # [*enable_proxy_headers_parsing*]
# (optional) This determines if the HTTPProxyToWSGI # (optional) This determines if the HTTPProxyToWSGI
# middleware should parse the proxy headers or not.(boolean value) # middleware should parse the proxy headers or not.(boolean value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_request_body_size*] # [*max_request_body_size*]
# (Optional) Set max request body size # (Optional) Set max request body size
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*use_ssl*] # [*use_ssl*]
# (optional) Enable SSL on the API server # (optional) Enable SSL on the API server
@ -80,55 +80,55 @@
# #
# [*cert_file*] # [*cert_file*]
# (optional) Certificate file to use when starting API server securely # (optional) Certificate file to use when starting API server securely
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*key_file*] # [*key_file*]
# (optional) Private key file to use when starting API server securely # (optional) Private key file to use when starting API server securely
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*ca_file*] # [*ca_file*]
# (optional) CA certificate file to use to verify connecting clients # (optional) CA certificate file to use to verify connecting clients
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*auth_strategy*] # [*auth_strategy*]
# (optional) Type of authentication to be used. # (optional) Type of authentication to be used.
# Defaults to 'keystone' # Defaults to 'keystone'
# #
# [*osapi_volume_listen_port*] # [*osapi_volume_listen_port*]
# (optional) What port the API listens on. Defaults to $::os_service_default # (optional) What port the API listens on. If this value is modified
# If this value is modified the catalog URLs in the keystone::auth class # the catalog URLs in the keystone::auth class will also need to be changed
# will also need to be changed to match. # to match.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*use_forwarded_for*] # [*use_forwarded_for*]
# (optional) Treat X-Forwarded-For as the canonical remote address. Only # (optional) Treat X-Forwarded-For as the canonical remote address. Only
# enable this if you have a sanitizing proxy. # enable this if you have a sanitizing proxy.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class cinder::api ( class cinder::api (
$service_workers = $::os_workers, $service_workers = $facts['os_workers'],
$package_ensure = 'present', $package_ensure = 'present',
$bind_host = $::os_service_default, $bind_host = $facts['os_service_default'],
$enabled = true, $enabled = true,
$manage_service = true, $manage_service = true,
$ratelimits = $::os_service_default, $ratelimits = $facts['os_service_default'],
$default_volume_type = $::os_service_default, $default_volume_type = $facts['os_service_default'],
$ratelimits_factory = $ratelimits_factory =
'cinder.api.v2.limits:RateLimitingMiddleware.factory', 'cinder.api.v2.limits:RateLimitingMiddleware.factory',
$sync_db = true, $sync_db = true,
$public_endpoint = $::os_service_default, $public_endpoint = $facts['os_service_default'],
$osapi_volume_base_url = $::os_service_default, $osapi_volume_base_url = $facts['os_service_default'],
$osapi_max_limit = $::os_service_default, $osapi_max_limit = $facts['os_service_default'],
$service_name = $::cinder::params::api_service, $service_name = $::cinder::params::api_service,
$enable_proxy_headers_parsing = $::os_service_default, $enable_proxy_headers_parsing = $facts['os_service_default'],
$max_request_body_size = $::os_service_default, $max_request_body_size = $facts['os_service_default'],
$use_ssl = false, $use_ssl = false,
$cert_file = $::os_service_default, $cert_file = $facts['os_service_default'],
$key_file = $::os_service_default, $key_file = $facts['os_service_default'],
$ca_file = $::os_service_default, $ca_file = $facts['os_service_default'],
$auth_strategy = 'keystone', $auth_strategy = 'keystone',
$osapi_volume_listen_port = $::os_service_default, $osapi_volume_listen_port = $facts['os_service_default'],
$use_forwarded_for = $::os_service_default, $use_forwarded_for = $facts['os_service_default'],
) inherits cinder::params { ) inherits cinder::params {
include cinder::deps include cinder::deps
@ -224,9 +224,9 @@ running as a standalone service, or httpd for being run by a httpd server")
} }
} else { } else {
cinder_config { cinder_config {
'ssl/cert_file' : value => $::os_service_default; 'ssl/cert_file' : value => $facts['os_service_default'];
'ssl/key_file' : value => $::os_service_default; 'ssl/key_file' : value => $facts['os_service_default'];
'ssl/ca_file' : value => $::os_service_default; 'ssl/ca_file' : value => $facts['os_service_default'];
} }
} }

View File

@ -7,10 +7,10 @@
# [*use_multipath_for_image_xfer*] # [*use_multipath_for_image_xfer*]
# (Optional) Whether to use multipath during create-volume-from-image and # (Optional) Whether to use multipath during create-volume-from-image and
# copy-volume-to-image operations. # copy-volume-to-image operations.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class cinder::backend::defaults ( class cinder::backend::defaults (
$use_multipath_for_image_xfer = $::os_service_default, $use_multipath_for_image_xfer = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -29,32 +29,32 @@
# (optional) Availability zone for this volume backend. # (optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value # If not set, the storage_availability_zone option value
# is used as the default for all backends. # is used as the default for all backends.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*powerflex_allow_migration_during_rebuild*] # [*powerflex_allow_migration_during_rebuild*]
# (optional) (Boolean) Allow volume migration during rebuild. # (optional) (Boolean) Allow volume migration during rebuild.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*powerflex_allow_non_padded_volumes*] # [*powerflex_allow_non_padded_volumes*]
# (optional) (Boolean) Allow volumes to be created in Storage Pools # (optional) (Boolean) Allow volumes to be created in Storage Pools
# when zero padding is disabled. # when zero padding is disabled.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*powerflex_max_over_subscription_ratio*] # [*powerflex_max_over_subscription_ratio*]
# (optional) (Floating point) max_over_subscription_ratio setting for the driver. # (optional) (Floating point) max_over_subscription_ratio setting for the driver.
# Maximum value allowed is 10.0. # Maximum value allowed is 10.0.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*powerflex_rest_server_port*] # [*powerflex_rest_server_port*]
# (optional) (String) The TCP port to use for communication with the storage # (optional) (String) The TCP port to use for communication with the storage
# system or proxy. # system or proxy.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*powerflex_round_volume_capacity*] # [*powerflex_round_volume_capacity*]
# (optional) (Boolean) Round volume sizes up to 8GB boundaries. PowerFlex/ScaleIO # (optional) (Boolean) Round volume sizes up to 8GB boundaries. PowerFlex/ScaleIO
# requires volumes to be sized in multiples of 8GB. If set to False, # requires volumes to be sized in multiples of 8GB. If set to False,
# volume creation will fail for volumes not sized properly # volume creation will fail for volumes not sized properly
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*powerflex_server_api_version*] # [*powerflex_server_api_version*]
# (optional) (String) PowerFlex/ScaleIO API version. This value should be left as the # (optional) (String) PowerFlex/ScaleIO API version. This value should be left as the
@ -62,19 +62,19 @@
# #
# [*powerflex_unmap_volume_before_deletion*] # [*powerflex_unmap_volume_before_deletion*]
# (optional) (Boolean) Unmap volumes before deletion. # (optional) (Boolean) Unmap volumes before deletion.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*san_thin_provision*] # [*san_thin_provision*]
# (optional) (Boolean) Whether to use thin provisioning or not. # (optional) (Boolean) Whether to use thin provisioning or not.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*driver_ssl_cert_verify*] # [*driver_ssl_cert_verify*]
# (optional) Verify the server certificate # (optional) Verify the server certificate
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*driver_ssl_cert_path*] # [*driver_ssl_cert_path*]
# (optional) Server certificate path. # (optional) Server certificate path.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*manage_volume_type*] # [*manage_volume_type*]
# (optional) Whether or not manage Cinder Volume type. # (optional) Whether or not manage Cinder Volume type.
@ -103,17 +103,17 @@ define cinder::backend::dellemc_powerflex(
$san_ip, $san_ip,
$powerflex_storage_pools, $powerflex_storage_pools,
$volume_backend_name = $name, $volume_backend_name = $name,
$backend_availability_zone = $::os_service_default, $backend_availability_zone = $facts['os_service_default'],
$powerflex_allow_migration_during_rebuild = $::os_service_default, $powerflex_allow_migration_during_rebuild = $facts['os_service_default'],
$powerflex_allow_non_padded_volumes = $::os_service_default, $powerflex_allow_non_padded_volumes = $facts['os_service_default'],
$powerflex_max_over_subscription_ratio = $::os_service_default, $powerflex_max_over_subscription_ratio = $facts['os_service_default'],
$powerflex_rest_server_port = $::os_service_default, $powerflex_rest_server_port = $facts['os_service_default'],
$powerflex_round_volume_capacity = $::os_service_default, $powerflex_round_volume_capacity = $facts['os_service_default'],
$powerflex_server_api_version = $::os_service_default, $powerflex_server_api_version = $facts['os_service_default'],
$powerflex_unmap_volume_before_deletion = $::os_service_default, $powerflex_unmap_volume_before_deletion = $facts['os_service_default'],
$san_thin_provision = $::os_service_default, $san_thin_provision = $facts['os_service_default'],
$driver_ssl_cert_verify = $::os_service_default, $driver_ssl_cert_verify = $facts['os_service_default'],
$driver_ssl_cert_path = $::os_service_default, $driver_ssl_cert_path = $facts['os_service_default'],
$manage_volume_type = false, $manage_volume_type = false,
$extra_options = {}, $extra_options = {},
) { ) {

View File

@ -38,7 +38,7 @@
# (Optional) Availability zone for this volume backend. # (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value # If not set, the storage_availability_zone option value
# is used as the default for all backends. # is used as the default for all backends.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*manage_volume_type*] # [*manage_volume_type*]
# (Optional) Whether or not manage Cinder Volume type. # (Optional) Whether or not manage Cinder Volume type.
@ -61,7 +61,7 @@ define cinder::backend::dellemc_powermax (
$powermax_port_groups, $powermax_port_groups,
$powermax_storage_protocol = 'iSCSI', $powermax_storage_protocol = 'iSCSI',
$volume_backend_name = $name, $volume_backend_name = $name,
$backend_availability_zone = $::os_service_default, $backend_availability_zone = $facts['os_service_default'],
$extra_options = {}, $extra_options = {},
$manage_volume_type = false, $manage_volume_type = false,
) { ) {

View File

@ -28,7 +28,7 @@
# (Optional) Availability zone for this volume backend. # (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value # If not set, the storage_availability_zone option value
# is used as the default for all backends. # is used as the default for all backends.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*manage_volume_type*] # [*manage_volume_type*]
# (Optional) Whether or not manage Cinder Volume type. # (Optional) Whether or not manage Cinder Volume type.
@ -46,10 +46,10 @@ define cinder::backend::dellemc_powerstore (
$san_ip, $san_ip,
$san_login, $san_login,
$san_password, $san_password,
$powerstore_ports = $::os_service_default, $powerstore_ports = $facts['os_service_default'],
$storage_protocol = 'iSCSI', $storage_protocol = 'iSCSI',
$volume_backend_name = $name, $volume_backend_name = $name,
$backend_availability_zone = $::os_service_default, $backend_availability_zone = $facts['os_service_default'],
$manage_volume_type = false, $manage_volume_type = false,
$extra_options = {}, $extra_options = {},
) { ) {

View File

@ -28,11 +28,11 @@
# (Optional) Availability zone for this volume backend. # (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value # If not set, the storage_availability_zone option value
# is used as the default for all backends. # is used as the default for all backends.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*dell_sc_api_port*] # [*dell_sc_api_port*]
# (optional) The Enterprise Manager API port. # (optional) The Enterprise Manager API port.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*dell_sc_server_folder*] # [*dell_sc_server_folder*]
# (optional) Name of the server folder to use on the Storage Center. # (optional) Name of the server folder to use on the Storage Center.
@ -40,7 +40,7 @@
# #
# [*dell_sc_verify_cert*] # [*dell_sc_verify_cert*]
# (optional) Enable HTTPS SC certificate verification # (optional) Enable HTTPS SC certificate verification
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*dell_sc_volume_folder*] # [*dell_sc_volume_folder*]
# (optional) Name of the volume folder to use on the Storage Center. # (optional) Name of the volume folder to use on the Storage Center.
@ -48,28 +48,28 @@
# #
# [*target_port*] # [*target_port*]
# (optional) The ISCSI IP Port of the Storage Center. # (optional) The ISCSI IP Port of the Storage Center.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*excluded_domain_ips*] # [*excluded_domain_ips*]
# (optional)Comma separated list of domain IPs to be excluded from # (optional)Comma separated list of domain IPs to be excluded from
# iSCSI returns of Storage Center. # iSCSI returns of Storage Center.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*secondary_san_ip*] # [*secondary_san_ip*]
# (optional) IP address of secondary DSM controller. # (optional) IP address of secondary DSM controller.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*secondary_san_login*] # [*secondary_san_login*]
# (optional) Secondary DSM user name. # (optional) Secondary DSM user name.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*secondary_san_password*] # [*secondary_san_password*]
# (optional) Secondary DSM user password. # (optional) Secondary DSM user password.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*secondary_sc_api_port*] # [*secondary_sc_api_port*]
# (optional) Secondary Dell API port. # (optional) Secondary Dell API port.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*extra_options*] # [*extra_options*]
# (optional) Hash of extra options to pass to the backend stanza. # (optional) Hash of extra options to pass to the backend stanza.
@ -100,17 +100,17 @@ define cinder::backend::dellemc_sc (
$dell_sc_ssn, $dell_sc_ssn,
$target_ip_address = undef, $target_ip_address = undef,
$volume_backend_name = $name, $volume_backend_name = $name,
$backend_availability_zone = $::os_service_default, $backend_availability_zone = $facts['os_service_default'],
$dell_sc_api_port = $::os_service_default, $dell_sc_api_port = $facts['os_service_default'],
$dell_sc_server_folder = 'srv', $dell_sc_server_folder = 'srv',
$dell_sc_verify_cert = $::os_service_default, $dell_sc_verify_cert = $facts['os_service_default'],
$dell_sc_volume_folder = 'vol', $dell_sc_volume_folder = 'vol',
$target_port = $::os_service_default, $target_port = $facts['os_service_default'],
$excluded_domain_ips = $::os_service_default, $excluded_domain_ips = $facts['os_service_default'],
$secondary_san_ip = $::os_service_default, $secondary_san_ip = $facts['os_service_default'],
$secondary_san_login = $::os_service_default, $secondary_san_login = $facts['os_service_default'],
$secondary_san_password = $::os_service_default, $secondary_san_password = $facts['os_service_default'],
$secondary_sc_api_port = $::os_service_default, $secondary_sc_api_port = $facts['os_service_default'],
$manage_volume_type = false, $manage_volume_type = false,
$use_multipath_for_image_xfer = true, $use_multipath_for_image_xfer = true,
$sc_storage_protocol = 'iSCSI', $sc_storage_protocol = 'iSCSI',

View File

@ -24,16 +24,16 @@
# (Optional) Availability zone for this volume backend. # (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value # If not set, the storage_availability_zone option value
# is used as the default for all backends. # is used as the default for all backends.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*unity_io_ports*] # [*unity_io_ports*]
# (optional) A list of iSCSI or FC ports to be used. Each port can be # (optional) A list of iSCSI or FC ports to be used. Each port can be
# Unix-style glob expressions. The Unity Unisphere API port. # Unix-style glob expressions. The Unity Unisphere API port.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*unity_storage_pool_names*] # [*unity_storage_pool_names*]
# (optional) A list of storage pool names to be used. # (optional) A list of storage pool names to be used.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*extra_options*] # [*extra_options*]
# (optional) Hash of extra options to pass to the backend stanza. # (optional) Hash of extra options to pass to the backend stanza.
@ -53,9 +53,9 @@ define cinder::backend::dellemc_unity (
$san_password, $san_password,
$storage_protocol, $storage_protocol,
$volume_backend_name = $name, $volume_backend_name = $name,
$backend_availability_zone = $::os_service_default, $backend_availability_zone = $facts['os_service_default'],
$unity_io_ports = $::os_service_default, $unity_io_ports = $facts['os_service_default'],
$unity_storage_pool_names = $::os_service_default, $unity_storage_pool_names = $facts['os_service_default'],
$manage_volume_type = false, $manage_volume_type = false,
$extra_options = {}, $extra_options = {},
) { ) {

View File

@ -24,25 +24,25 @@
# (Optional) Availability zone for this volume backend. # (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value # If not set, the storage_availability_zone option value
# is used as the default for all backends. # is used as the default for all backends.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*xtremio_array_busy_retry_count*] # [*xtremio_array_busy_retry_count*]
# (optional) Number of retries in case array is busy. # (optional) Number of retries in case array is busy.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*xtremio_array_busy_retry_interval*] # [*xtremio_array_busy_retry_interval*]
# (optional) Interval between retries in case array is busy. # (optional) Interval between retries in case array is busy.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*xtremio_volumes_per_glance_cache*] # [*xtremio_volumes_per_glance_cache*]
# (optional) Number of volumes created from each cached glance image. # (optional) Number of volumes created from each cached glance image.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*xtremio_ports*] # [*xtremio_ports*]
# (optional) Allowed ports. Comma separated list of XtremIO iSCSI IPs or # (optional) Allowed ports. Comma separated list of XtremIO iSCSI IPs or
# FC WWNs (ex. 58:cc:f0:98:49:22:07:02) to be used. If is not set all ports # FC WWNs (ex. 58:cc:f0:98:49:22:07:02) to be used. If is not set all ports
# are allowed. # are allowed.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*extra_options*] # [*extra_options*]
# (optional) Hash of extra options to pass to the backend stanza. # (optional) Hash of extra options to pass to the backend stanza.
@ -68,13 +68,13 @@ define cinder::backend::dellemc_xtremio (
$san_password, $san_password,
$xtremio_cluster_name, $xtremio_cluster_name,
$volume_backend_name = $name, $volume_backend_name = $name,
$backend_availability_zone = $::os_service_default, $backend_availability_zone = $facts['os_service_default'],
$xtremio_array_busy_retry_count = $::os_service_default, $xtremio_array_busy_retry_count = $facts['os_service_default'],
$xtremio_array_busy_retry_interval = $::os_service_default, $xtremio_array_busy_retry_interval = $facts['os_service_default'],
$xtremio_volumes_per_glance_cache = $::os_service_default, $xtremio_volumes_per_glance_cache = $facts['os_service_default'],
$manage_volume_type = false, $manage_volume_type = false,
$xtremio_storage_protocol = 'iSCSI', $xtremio_storage_protocol = 'iSCSI',
$xtremio_ports = $::os_service_default, $xtremio_ports = $facts['os_service_default'],
$extra_options = {}, $extra_options = {},
) { ) {

View File

@ -14,7 +14,7 @@
# (Optional) Availability zone for this volume backend. # (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value # If not set, the storage_availability_zone option value
# is used as the default for all backends. # is used as the default for all backends.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*san_ip*] # [*san_ip*]
# (required) IP address of SAN controller. # (required) IP address of SAN controller.
@ -57,53 +57,53 @@
# #
# [*destroy_empty_storage_group*] # [*destroy_empty_storage_group*]
# (optional) Destroy storage group when the last LUN is removed from it. # (optional) Destroy storage group when the last LUN is removed from it.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*iscsi_initiators*] # [*iscsi_initiators*]
# (optional) Mapping between hostname and its iSCSI initiator IP addresses. # (optional) Mapping between hostname and its iSCSI initiator IP addresses.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*io_port_list*] # [*io_port_list*]
# (optional) List of iSCSI or FC ports to be used in Nova or Cinder. # (optional) List of iSCSI or FC ports to be used in Nova or Cinder.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*initiator_auto_registration*] # [*initiator_auto_registration*]
# (optional) Automatically register initiators. # (optional) Automatically register initiators.
# Boolean value. # Boolean value.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*initiator_auto_deregistration*] # [*initiator_auto_deregistration*]
# (optional) Automatically deregister initiators after the related storage # (optional) Automatically deregister initiators after the related storage
# group is destroyed. # group is destroyed.
# Boolean value. # Boolean value.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*force_delete_lun_in_storagegroup*] # [*force_delete_lun_in_storagegroup*]
# (optional) Delete a LUN even if it is in Storage Groups. # (optional) Delete a LUN even if it is in Storage Groups.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*ignore_pool_full_threshold*] # [*ignore_pool_full_threshold*]
# (optional) Force LUN creation even if the full threshold of pool is # (optional) Force LUN creation even if the full threshold of pool is
# reached. # reached.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*vnx_async_migrate*] # [*vnx_async_migrate*]
# (optional) Always use asynchronous migration during volume cloning and # (optional) Always use asynchronous migration during volume cloning and
# creating from snapshot. # creating from snapshot.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*storage_vnx_auth_type*] # [*storage_vnx_auth_type*]
# (optional) VNX authentication scope type. # (optional) VNX authentication scope type.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*storage_vnx_security_file_dir*] # [*storage_vnx_security_file_dir*]
# (optional) Directory path that contains the VNX security file. # (optional) Directory path that contains the VNX security file.
# Make sure the security file is generated first. # Make sure the security file is generated first.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*naviseccli_path*] # [*naviseccli_path*]
# (optional) Naviseccli Path. # (optional) Naviseccli Path.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*manage_volume_type*] # [*manage_volume_type*]
# (Optional) Whether or not manage Cinder Volume type. # (Optional) Whether or not manage Cinder Volume type.
@ -120,21 +120,21 @@ define cinder::backend::emc_vnx (
$package_ensure = 'present', $package_ensure = 'present',
$san_login = 'admin', $san_login = 'admin',
$volume_backend_name = $name, $volume_backend_name = $name,
$backend_availability_zone = $::os_service_default, $backend_availability_zone = $facts['os_service_default'],
$extra_options = {}, $extra_options = {},
$volume_driver = 'cinder.volume.drivers.dell_emc.vnx.driver.VNXDriver', $volume_driver = 'cinder.volume.drivers.dell_emc.vnx.driver.VNXDriver',
$storage_protocol = 'iscsi', $storage_protocol = 'iscsi',
$destroy_empty_storage_group = $::os_service_default, $destroy_empty_storage_group = $facts['os_service_default'],
$iscsi_initiators = $::os_service_default, $iscsi_initiators = $facts['os_service_default'],
$io_port_list = $::os_service_default, $io_port_list = $facts['os_service_default'],
$initiator_auto_registration = $::os_service_default, $initiator_auto_registration = $facts['os_service_default'],
$initiator_auto_deregistration = $::os_service_default, $initiator_auto_deregistration = $facts['os_service_default'],
$force_delete_lun_in_storagegroup = $::os_service_default, $force_delete_lun_in_storagegroup = $facts['os_service_default'],
$ignore_pool_full_threshold = $::os_service_default, $ignore_pool_full_threshold = $facts['os_service_default'],
$vnx_async_migrate = $::os_service_default, $vnx_async_migrate = $facts['os_service_default'],
$storage_vnx_auth_type = $::os_service_default, $storage_vnx_auth_type = $facts['os_service_default'],
$storage_vnx_security_file_dir = $::os_service_default, $storage_vnx_security_file_dir = $facts['os_service_default'],
$naviseccli_path = $::os_service_default, $naviseccli_path = $facts['os_service_default'],
$manage_volume_type = false, $manage_volume_type = false,
) { ) {

View File

@ -46,29 +46,29 @@
# #
# [*nas_host*] # [*nas_host*]
# (optional) IP address or Hostname of the NAS system. # (optional) IP address or Hostname of the NAS system.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*nas_login*] # [*nas_login*]
# (optional) User name to connect to NAS system. # (optional) User name to connect to NAS system.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*nas_password*] # [*nas_password*]
# (optional) Password to connect to NAS system. # (optional) Password to connect to NAS system.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*nas_private_key*] # [*nas_private_key*]
# (optional) Filename of private key to use for SSH authentication. # (optional) Filename of private key to use for SSH authentication.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*nas_ssh_port*] # [*nas_ssh_port*]
# (optional) SSH port to use to connect to NAS system. # (optional) SSH port to use to connect to NAS system.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backend_availability_zone*] # [*backend_availability_zone*]
# (Optional) Availability zone for this volume backend. # (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value # If not set, the storage_availability_zone option value
# is used as the default for all backends. # is used as the default for all backends.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*manage_volume_type*] # [*manage_volume_type*]
# (Optional) Whether or not manage Cinder Volume type. # (Optional) Whether or not manage Cinder Volume type.
@ -92,17 +92,17 @@
# #
define cinder::backend::gpfs ( define cinder::backend::gpfs (
$gpfs_mount_point_base, $gpfs_mount_point_base,
$gpfs_images_dir = $::os_service_default, $gpfs_images_dir = $facts['os_service_default'],
$gpfs_images_share_mode = $::os_service_default, $gpfs_images_share_mode = $facts['os_service_default'],
$gpfs_max_clone_depth = $::os_service_default, $gpfs_max_clone_depth = $facts['os_service_default'],
$gpfs_sparse_volumes = $::os_service_default, $gpfs_sparse_volumes = $facts['os_service_default'],
$gpfs_storage_pool = $::os_service_default, $gpfs_storage_pool = $facts['os_service_default'],
$nas_host = $::os_service_default, $nas_host = $facts['os_service_default'],
$nas_login = $::os_service_default, $nas_login = $facts['os_service_default'],
$nas_password = $::os_service_default, $nas_password = $facts['os_service_default'],
$nas_private_key = $::os_service_default, $nas_private_key = $facts['os_service_default'],
$nas_ssh_port = $::os_service_default, $nas_ssh_port = $facts['os_service_default'],
$backend_availability_zone = $::os_service_default, $backend_availability_zone = $facts['os_service_default'],
$manage_volume_type = false, $manage_volume_type = false,
$extra_options = {}, $extra_options = {},
) { ) {
@ -111,7 +111,7 @@ define cinder::backend::gpfs (
validate_legacy(Boolean, 'validate_bool', $manage_volume_type) validate_legacy(Boolean, 'validate_bool', $manage_volume_type)
if ! ($gpfs_images_share_mode in ['copy', 'copy_on_write', $::os_service_default]) { if ! ($gpfs_images_share_mode in ['copy', 'copy_on_write', $facts['os_service_default']]) {
fail('gpfs_images_share_mode only support `copy` or `copy_on_write`') fail('gpfs_images_share_mode only support `copy` or `copy_on_write`')
} }
if $gpfs_images_share_mode in ['copy', 'copy_on_write'] and is_service_default($gpfs_images_dir) { if $gpfs_images_share_mode in ['copy', 'copy_on_write'] and is_service_default($gpfs_images_dir) {

View File

@ -35,7 +35,7 @@
# (Optional) Availability zone for this volume backend. # (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value # If not set, the storage_availability_zone option value
# is used as the default for all backends. # is used as the default for all backends.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*volume_driver*] # [*volume_driver*]
# (optional) Setup cinder-volume to use HPE 3par volume driver. # (optional) Setup cinder-volume to use HPE 3par volume driver.
@ -80,7 +80,7 @@ define cinder::backend::hpe3par_iscsi(
$san_password, $san_password,
$hpe3par_iscsi_ips, $hpe3par_iscsi_ips,
$volume_backend_name = $name, $volume_backend_name = $name,
$backend_availability_zone = $::os_service_default, $backend_availability_zone = $facts['os_service_default'],
$volume_driver = 'cinder.volume.drivers.hpe.hpe_3par_iscsi.HPE3PARISCSIDriver', $volume_driver = 'cinder.volume.drivers.hpe.hpe_3par_iscsi.HPE3PARISCSIDriver',
$hpe3par_iscsi_chap_enabled = false, $hpe3par_iscsi_chap_enabled = false,
$hpe3par_cpg_snap = 'userCPG', $hpe3par_cpg_snap = 'userCPG',

View File

@ -20,7 +20,7 @@
# #
# [*storwize_svc_allow_tenant_qos*] # [*storwize_svc_allow_tenant_qos*]
# (optional) Allow tenants to specify QoS on create. # (optional) Allow tenants to specify QoS on create.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*storwize_svc_connection_protocol*] # [*storwize_svc_connection_protocol*]
# (optional) The Storage protocol, iSCSI or FC. # (optional) The Storage protocol, iSCSI or FC.
@ -30,18 +30,18 @@
# #
# [*storwize_svc_iscsi_chap_enabled*] # [*storwize_svc_iscsi_chap_enabled*]
# (optional) Configure CHAP authentication for iSCSI connections. # (optional) Configure CHAP authentication for iSCSI connections.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*storwize_svc_retain_aux_volume*] # [*storwize_svc_retain_aux_volume*]
# (optional) Defines an optional parameter to retain an auxiliary volume # (optional) Defines an optional parameter to retain an auxiliary volume
# in a mirror relationship upon deletion of the primary volume or moving # in a mirror relationship upon deletion of the primary volume or moving
# it to a non-mirror relationship. # it to a non-mirror relationship.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*storwize_portset*] # [*storwize_portset*]
# (optional) Specifies the name of the portset in which host is to be # (optional) Specifies the name of the portset in which host is to be
# created. # created.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*volume_backend_name*] # [*volume_backend_name*]
# (optional) The storage backend name. # (optional) The storage backend name.
@ -51,7 +51,7 @@
# (Optional) Availability zone for this volume backend. # (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value # If not set, the storage_availability_zone option value
# is used as the default for all backends. # is used as the default for all backends.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*manage_volume_type*] # [*manage_volume_type*]
# (Optional) Whether or not manage Cinder Volume type. # (Optional) Whether or not manage Cinder Volume type.
@ -70,13 +70,13 @@ define cinder::backend::ibm_svf (
$san_login, $san_login,
$san_password, $san_password,
$storwize_svc_volpool_name, $storwize_svc_volpool_name,
$storwize_svc_allow_tenant_qos = $::os_service_default, $storwize_svc_allow_tenant_qos = $facts['os_service_default'],
$storwize_svc_connection_protocol = 'iSCSI', $storwize_svc_connection_protocol = 'iSCSI',
$storwize_svc_iscsi_chap_enabled = $::os_service_default, $storwize_svc_iscsi_chap_enabled = $facts['os_service_default'],
$storwize_svc_retain_aux_volume = $::os_service_default, $storwize_svc_retain_aux_volume = $facts['os_service_default'],
$storwize_portset = $::os_service_default, $storwize_portset = $facts['os_service_default'],
$volume_backend_name = $name, $volume_backend_name = $name,
$backend_availability_zone = $::os_service_default, $backend_availability_zone = $facts['os_service_default'],
$extra_options = {}, $extra_options = {},
$manage_volume_type = false, $manage_volume_type = false,
) { ) {

View File

@ -15,7 +15,7 @@
# (Optional) Availability zone for this volume backend. # (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value # If not set, the storage_availability_zone option value
# is used as the default for all backends. # is used as the default for all backends.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*volume_driver*] # [*volume_driver*]
# (Optional) Driver to use for volume creation # (Optional) Driver to use for volume creation
@ -23,7 +23,7 @@
# #
# [*volume_group*] # [*volume_group*]
# (Optional) Name for the VG that will contain exported volumes # (Optional) Name for the VG that will contain exported volumes
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*volumes_dir*] # [*volumes_dir*]
# (Optional) Volume configuration file storage directory # (Optional) Volume configuration file storage directory
@ -35,7 +35,7 @@
# #
# [*target_protocol*] # [*target_protocol*]
# (Optional) Protocol to use as iSCSI driver # (Optional) Protocol to use as iSCSI driver
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*manage_volume_type*] # [*manage_volume_type*]
# (Optional) Whether or not manage Cinder Volume type. # (Optional) Whether or not manage Cinder Volume type.
@ -52,12 +52,12 @@
define cinder::backend::iscsi ( define cinder::backend::iscsi (
$target_ip_address = undef, $target_ip_address = undef,
$volume_backend_name = $name, $volume_backend_name = $name,
$backend_availability_zone = $::os_service_default, $backend_availability_zone = $facts['os_service_default'],
$volume_driver = 'cinder.volume.drivers.lvm.LVMVolumeDriver', $volume_driver = 'cinder.volume.drivers.lvm.LVMVolumeDriver',
$volume_group = $::os_service_default, $volume_group = $facts['os_service_default'],
$volumes_dir = '/var/lib/cinder/volumes', $volumes_dir = '/var/lib/cinder/volumes',
$target_helper = $::cinder::params::target_helper, $target_helper = $::cinder::params::target_helper,
$target_protocol = $::os_service_default, $target_protocol = $facts['os_service_default'],
$manage_volume_type = false, $manage_volume_type = false,
$extra_options = {}, $extra_options = {},
) { ) {
@ -69,7 +69,7 @@ define cinder::backend::iscsi (
# NOTE(mnaser): Cinder requires /usr/sbin/thin_check to create volumes which # NOTE(mnaser): Cinder requires /usr/sbin/thin_check to create volumes which
# does not get installed with Cinder (see LP#1615134). # does not get installed with Cinder (see LP#1615134).
if $::osfamily == 'Debian' { if $facts['os']['family'] == 'Debian' {
if ! defined(Package['thin-provisioning-tools']) { if ! defined(Package['thin-provisioning-tools']) {
package { 'thin-provisioning-tools': package { 'thin-provisioning-tools':
ensure => present, ensure => present,

View File

@ -25,24 +25,24 @@
# (Optional) Availability zone for this volume backend. # (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value # If not set, the storage_availability_zone option value
# is used as the default for all backends. # is used as the default for all backends.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*netapp_server_port*] # [*netapp_server_port*]
# (optional) The TCP port to use for communication with the storage # (optional) The TCP port to use for communication with the storage
# system or proxy. If not specified, Data ONTAP drivers will use 80 # system or proxy. If not specified, Data ONTAP drivers will use 80
# for HTTP and 443 for HTTPS; # for HTTP and 443 for HTTPS;
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*netapp_size_multiplier*] # [*netapp_size_multiplier*]
# (optional) The quantity to be multiplied by the requested volume size to # (optional) The quantity to be multiplied by the requested volume size to
# ensure enough space is available on the virtual storage server (Vserver) to # ensure enough space is available on the virtual storage server (Vserver) to
# fulfill the volume creation request. # fulfill the volume creation request.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*netapp_storage_family*] # [*netapp_storage_family*]
# (optional) The storage family type used on the storage system; valid value # (optional) The storage family type used on the storage system; valid value
# is ontap_cluster for using clustered Data ONTAP. # is ontap_cluster for using clustered Data ONTAP.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*netapp_storage_protocol*] # [*netapp_storage_protocol*]
# (optional) The storage protocol to be used on the data path with the storage # (optional) The storage protocol to be used on the data path with the storage
@ -52,13 +52,13 @@
# [*netapp_transport_type*] # [*netapp_transport_type*]
# (optional) The transport protocol used when communicating with the storage # (optional) The transport protocol used when communicating with the storage
# system or proxy server. Valid values are http or https. # system or proxy server. Valid values are http or https.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*netapp_vserver*] # [*netapp_vserver*]
# (optional) This option specifies the virtual storage server (Vserver) # (optional) This option specifies the virtual storage server (Vserver)
# name on the storage cluster on which provisioning of block storage volumes # name on the storage cluster on which provisioning of block storage volumes
# should occur. # should occur.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*expiry_thres_minutes*] # [*expiry_thres_minutes*]
# (optional) This parameter specifies the threshold for last access time for # (optional) This parameter specifies the threshold for last access time for
@ -66,20 +66,20 @@
# in the cache that have not been accessed in the last M minutes, where M is # in the cache that have not been accessed in the last M minutes, where M is
# the value of this parameter, will be deleted from the cache to create free # the value of this parameter, will be deleted from the cache to create free
# space on the NFS share. # space on the NFS share.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*thres_avl_size_perc_start*] # [*thres_avl_size_perc_start*]
# (optional) If the percentage of available space for an NFS share has # (optional) If the percentage of available space for an NFS share has
# dropped below the value specified by this parameter, the NFS image cache # dropped below the value specified by this parameter, the NFS image cache
# will be cleaned. # will be cleaned.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*thres_avl_size_perc_stop*] # [*thres_avl_size_perc_stop*]
# (optional) When the percentage of available space on an NFS share has # (optional) When the percentage of available space on an NFS share has
# reached the percentage specified by this parameter, the driver will stop # reached the percentage specified by this parameter, the driver will stop
# clearing files from the NFS image cache that have not been accessed in the # clearing files from the NFS image cache that have not been accessed in the
# last M minutes, where M is the value of the expiry_thres_minutes parameter. # last M minutes, where M is the value of the expiry_thres_minutes parameter.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*nfs_shares*] # [*nfs_shares*]
# (optional) Array of NFS exports in the form of host:/share; will be written into # (optional) Array of NFS exports in the form of host:/share; will be written into
@ -93,7 +93,7 @@
# [*nfs_mount_options*] # [*nfs_mount_options*]
# (optional) Mount options passed to the nfs client. See section # (optional) Mount options passed to the nfs client. See section
# of the nfs man page for details. # of the nfs man page for details.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*netapp_pool_name_search_pattern*] # [*netapp_pool_name_search_pattern*]
# (optional) This option is only utilized when the Cinder driver is # (optional) This option is only utilized when the Cinder driver is
@ -103,12 +103,12 @@
# FlexVol volumes from the storage backend which represent pools in Cinder. # FlexVol volumes from the storage backend which represent pools in Cinder.
# ^ (beginning of string) and $ (end of string) are implicitly wrapped around # ^ (beginning of string) and $ (end of string) are implicitly wrapped around
# the regular expression specified before filtering. # the regular expression specified before filtering.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*netapp_host_type*] # [*netapp_host_type*]
# (optional) This option is used to define how the controllers will work with # (optional) This option is used to define how the controllers will work with
# the particular operating system on the hosts that are connected to it. # the particular operating system on the hosts that are connected to it.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*nas_secure_file_operations*] # [*nas_secure_file_operations*]
# (Optional) Allow network-attached storage systems to operate in a secure # (Optional) Allow network-attached storage systems to operate in a secure
@ -116,7 +116,7 @@
# access is as the root user and insecure. If set to True, access is not as # access is as the root user and insecure. If set to True, access is not as
# root. If set to auto, a check is done to determine if this is a new # root. If set to auto, a check is done to determine if this is a new
# installation: True is used if so, otherwise False. Default is auto. # installation: True is used if so, otherwise False. Default is auto.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*nas_secure_file_permissions*] # [*nas_secure_file_permissions*]
# (Optional) Set more secure file permissions on network-attached storage # (Optional) Set more secure file permissions on network-attached storage
@ -125,7 +125,7 @@
# created with permissions for the cinder user and group (660). If set to # created with permissions for the cinder user and group (660). If set to
# auto, a check is done to determine if this is a new installation: True is # auto, a check is done to determine if this is a new installation: True is
# used if so, otherwise False. Default is auto. # used if so, otherwise False. Default is auto.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*manage_volume_type*] # [*manage_volume_type*]
# (Optional) Whether or not manage Cinder Volume type. # (Optional) Whether or not manage Cinder Volume type.
@ -171,25 +171,25 @@ define cinder::backend::netapp (
$netapp_password, $netapp_password,
$netapp_server_hostname, $netapp_server_hostname,
$volume_backend_name = $name, $volume_backend_name = $name,
$backend_availability_zone = $::os_service_default, $backend_availability_zone = $facts['os_service_default'],
$netapp_server_port = $::os_service_default, $netapp_server_port = $facts['os_service_default'],
$netapp_size_multiplier = $::os_service_default, $netapp_size_multiplier = $facts['os_service_default'],
$netapp_storage_family = $::os_service_default, $netapp_storage_family = $facts['os_service_default'],
$netapp_storage_protocol = 'nfs', $netapp_storage_protocol = 'nfs',
$netapp_transport_type = $::os_service_default, $netapp_transport_type = $facts['os_service_default'],
$netapp_vserver = $::os_service_default, $netapp_vserver = $facts['os_service_default'],
$expiry_thres_minutes = $::os_service_default, $expiry_thres_minutes = $facts['os_service_default'],
$thres_avl_size_perc_start = $::os_service_default, $thres_avl_size_perc_start = $facts['os_service_default'],
$thres_avl_size_perc_stop = $::os_service_default, $thres_avl_size_perc_stop = $facts['os_service_default'],
$nfs_shares = undef, $nfs_shares = undef,
$nfs_shares_config = '/etc/cinder/shares.conf', $nfs_shares_config = '/etc/cinder/shares.conf',
$nfs_mount_options = $::os_service_default, $nfs_mount_options = $facts['os_service_default'],
$netapp_host_type = $::os_service_default, $netapp_host_type = $facts['os_service_default'],
$manage_volume_type = false, $manage_volume_type = false,
$extra_options = {}, $extra_options = {},
$netapp_pool_name_search_pattern = $::os_service_default, $netapp_pool_name_search_pattern = $facts['os_service_default'],
$nas_secure_file_operations = $::os_service_default, $nas_secure_file_operations = $facts['os_service_default'],
$nas_secure_file_permissions = $::os_service_default, $nas_secure_file_permissions = $facts['os_service_default'],
# DEPRECATED PARAMETERS # DEPRECATED PARAMETERS
$netapp_copyoffload_tool_path = undef, $netapp_copyoffload_tool_path = undef,
) { ) {
@ -231,7 +231,7 @@ and will be removed in a future release.")
"${name}/thres_avl_size_perc_start": value => $thres_avl_size_perc_start; "${name}/thres_avl_size_perc_start": value => $thres_avl_size_perc_start;
"${name}/thres_avl_size_perc_stop": value => $thres_avl_size_perc_stop; "${name}/thres_avl_size_perc_stop": value => $thres_avl_size_perc_stop;
"${name}/nfs_shares_config": value => $nfs_shares_config; "${name}/nfs_shares_config": value => $nfs_shares_config;
"${name}/netapp_copyoffload_tool_path": value => pick($netapp_copyoffload_tool_path, $::os_service_default); "${name}/netapp_copyoffload_tool_path": value => pick($netapp_copyoffload_tool_path, $facts['os_service_default']);
"${name}/netapp_pool_name_search_pattern": value => $netapp_pool_name_search_pattern; "${name}/netapp_pool_name_search_pattern": value => $netapp_pool_name_search_pattern;
"${name}/netapp_host_type": value => $netapp_host_type; "${name}/netapp_host_type": value => $netapp_host_type;
"${name}/nas_secure_file_operations": value => $nas_secure_file_operations; "${name}/nas_secure_file_operations": value => $nas_secure_file_operations;

View File

@ -21,7 +21,7 @@
# (Optional) Availability zone for this volume backend. # (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value # If not set, the storage_availability_zone option value
# is used as the default for all backends. # is used as the default for all backends.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*nexenta_volume*] # [*nexenta_volume*]
# (optional) Pool on SA that will hold all volumes. # (optional) Pool on SA that will hold all volumes.
@ -68,7 +68,7 @@ define cinder::backend::nexenta (
$nexenta_password, $nexenta_password,
$nexenta_host, $nexenta_host,
$volume_backend_name = $name, $volume_backend_name = $name,
$backend_availability_zone = $::os_service_default, $backend_availability_zone = $facts['os_service_default'],
$nexenta_volume = 'cinder', $nexenta_volume = 'cinder',
$nexenta_target_prefix = 'iqn:', $nexenta_target_prefix = 'iqn:',
$nexenta_target_group_prefix = 'cinder/', $nexenta_target_group_prefix = 'cinder/',

View File

@ -10,7 +10,7 @@
# (Optional) Availability zone for this volume backend. # (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value # If not set, the storage_availability_zone option value
# is used as the default for all backends. # is used as the default for all backends.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*nfs_servers*] # [*nfs_servers*]
# (Required) Description # (Required) Description
@ -20,21 +20,21 @@
# (optional) The number of attempts to mount nfs shares before raising an # (optional) The number of attempts to mount nfs shares before raising an
# error. At least one attempt will be made to mount an nfs share, regardless # error. At least one attempt will be made to mount an nfs share, regardless
# of the value specified. # of the value specified.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*nfs_mount_options*] # [*nfs_mount_options*]
# (Optional) Mount options passed to the nfs client. # (Optional) Mount options passed to the nfs client.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*nfs_sparsed_volumes*] # [*nfs_sparsed_volumes*]
# (Optional) Create volumes as sparsed files which take no space. # (Optional) Create volumes as sparsed files which take no space.
# If set to False volume is created as regular file. # If set to False volume is created as regular file.
# In such case volume creation takes a lot of time. # In such case volume creation takes a lot of time.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*nfs_mount_point_base*] # [*nfs_mount_point_base*]
# (Optional) Base dir containing mount points for nfs shares. # (Optional) Base dir containing mount points for nfs shares.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*nfs_shares_config*] # [*nfs_shares_config*]
# (Optional) File with the list of available nfs shares. # (Optional) File with the list of available nfs shares.
@ -43,13 +43,13 @@
# [*nfs_used_ratio*] # [*nfs_used_ratio*]
# (Optional) Percent of ACTUAL usage of the underlying volume before no new # (Optional) Percent of ACTUAL usage of the underlying volume before no new
# volumes can be allocated to the volume destination. # volumes can be allocated to the volume destination.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*nfs_oversub_ratio*] # [*nfs_oversub_ratio*]
# (Optional) This will compare the allocated to available space on the volume # (Optional) This will compare the allocated to available space on the volume
# destination. If the ratio exceeds this number, the destination will no # destination. If the ratio exceeds this number, the destination will no
# longer be valid. # longer be valid.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*nas_secure_file_operations*] # [*nas_secure_file_operations*]
# (Optional) Allow network-attached storage systems to operate in a secure # (Optional) Allow network-attached storage systems to operate in a secure
@ -57,7 +57,7 @@
# access is as the root user and insecure. If set to True, access is not as # access is as the root user and insecure. If set to True, access is not as
# root. If set to auto, a check is done to determine if this is a new # root. If set to auto, a check is done to determine if this is a new
# installation: True is used if so, otherwise False. Default is auto. # installation: True is used if so, otherwise False. Default is auto.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*nas_secure_file_permissions*] # [*nas_secure_file_permissions*]
# (Optional) Set more secure file permissions on network-attached storage # (Optional) Set more secure file permissions on network-attached storage
@ -66,7 +66,7 @@
# created with permissions for the cinder user and group (660). If set to # created with permissions for the cinder user and group (660). If set to
# auto, a check is done to determine if this is a new installation: True is # auto, a check is done to determine if this is a new installation: True is
# used if so, otherwise False. Default is auto. # used if so, otherwise False. Default is auto.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*manage_volume_type*] # [*manage_volume_type*]
# (Optional) Whether or not manage Cinder Volume type. # (Optional) Whether or not manage Cinder Volume type.
@ -77,11 +77,11 @@
# [*nfs_snapshot_support*] # [*nfs_snapshot_support*]
# (Optional) Enable support for snapshots on the NFS driver. # (Optional) Enable support for snapshots on the NFS driver.
# Platforms using libvirt <1.2.7 will encounter issues with this feature. # Platforms using libvirt <1.2.7 will encounter issues with this feature.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*nfs_qcow2_volumes*] # [*nfs_qcow2_volumes*]
# (Optional) Create volumes as QCOW2 files rather than raw files. # (Optional) Create volumes as QCOW2 files rather than raw files.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*extra_options*] # [*extra_options*]
# (optional) Hash of extra options to pass to the backend stanza # (optional) Hash of extra options to pass to the backend stanza
@ -91,19 +91,19 @@
# #
define cinder::backend::nfs ( define cinder::backend::nfs (
$volume_backend_name = $name, $volume_backend_name = $name,
$backend_availability_zone = $::os_service_default, $backend_availability_zone = $facts['os_service_default'],
$nfs_servers = [], $nfs_servers = [],
$nfs_mount_attempts = $::os_service_default, $nfs_mount_attempts = $facts['os_service_default'],
$nfs_mount_options = $::os_service_default, $nfs_mount_options = $facts['os_service_default'],
$nfs_sparsed_volumes = $::os_service_default, $nfs_sparsed_volumes = $facts['os_service_default'],
$nfs_mount_point_base = $::os_service_default, $nfs_mount_point_base = $facts['os_service_default'],
$nfs_shares_config = '/etc/cinder/shares.conf', $nfs_shares_config = '/etc/cinder/shares.conf',
$nfs_used_ratio = $::os_service_default, $nfs_used_ratio = $facts['os_service_default'],
$nfs_oversub_ratio = $::os_service_default, $nfs_oversub_ratio = $facts['os_service_default'],
$nas_secure_file_operations = $::os_service_default, $nas_secure_file_operations = $facts['os_service_default'],
$nas_secure_file_permissions = $::os_service_default, $nas_secure_file_permissions = $facts['os_service_default'],
$nfs_snapshot_support = $::os_service_default, $nfs_snapshot_support = $facts['os_service_default'],
$nfs_qcow2_volumes = $::os_service_default, $nfs_qcow2_volumes = $facts['os_service_default'],
$manage_volume_type = false, $manage_volume_type = false,
$extra_options = {}, $extra_options = {},
) { ) {

View File

@ -17,7 +17,7 @@
# #
# [*target_prefix*] # [*target_prefix*]
# (Optional) Prefix for LVM volumes. # (Optional) Prefix for LVM volumes.
# Defaults to '$::os_service_default'. # Defaults to '$facts['os_service_default']'.
# #
# [*nvmet_port_id*] # [*nvmet_port_id*]
# (Optional) Port id of the NVMe target. # (Optional) Port id of the NVMe target.
@ -35,7 +35,7 @@
# (Optional) Availability zone for this volume backend. # (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value # If not set, the storage_availability_zone option value
# is used as the default for all backends. # is used as the default for all backends.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*volume_driver*] # [*volume_driver*]
# (Optional) Driver to use for volume creation # (Optional) Driver to use for volume creation
@ -43,20 +43,20 @@
# #
# [*volume_group*] # [*volume_group*]
# (Optional) Name for the VG that will contain exported volumes # (Optional) Name for the VG that will contain exported volumes
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
define cinder::backend::nvmeof ( define cinder::backend::nvmeof (
$target_ip_address, $target_ip_address,
$target_port, $target_port,
$target_helper, $target_helper,
$target_protocol, $target_protocol,
$target_prefix = $::os_service_default, $target_prefix = $facts['os_service_default'],
$nvmet_port_id = '1', $nvmet_port_id = '1',
$nvmet_ns_id = '10', $nvmet_ns_id = '10',
$volume_backend_name = $name, $volume_backend_name = $name,
$backend_availability_zone = $::os_service_default, $backend_availability_zone = $facts['os_service_default'],
$volume_driver = 'cinder.volume.drivers.lvm.LVMVolumeDriver', $volume_driver = 'cinder.volume.drivers.lvm.LVMVolumeDriver',
$volume_group = $::os_service_default, $volume_group = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -19,7 +19,7 @@
# (Optional) Availability zone for this volume backend. # (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value # If not set, the storage_availability_zone option value
# is used as the default for all backends. # is used as the default for all backends.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*pure_storage_protocol*] # [*pure_storage_protocol*]
# (optional) Must be either 'iSCSI', 'FC' or 'NVMe'. This will determine # (optional) Must be either 'iSCSI', 'FC' or 'NVMe'. This will determine
@ -49,42 +49,42 @@
# [*pure_host_personality*] # [*pure_host_personality*]
# (Optional) Determines how the Purity system tunes the protocol used between # (Optional) Determines how the Purity system tunes the protocol used between
# the array and the initiator. # the array and the initiator.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*pure_eradicate_on_delete*] # [*pure_eradicate_on_delete*]
# (Optional) Determines how the Purity system treats deleted volumes. # (Optional) Determines how the Purity system treats deleted volumes.
# Whether to immediately eradicate on delete or leave for auto-eradication # Whether to immediately eradicate on delete or leave for auto-eradication
# in 24 hours # in 24 hours
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*pure_nvme_transport*] # [*pure_nvme_transport*]
# (Optional) Identifies which NVMe transport layer to be used with # (Optional) Identifies which NVMe transport layer to be used with
# the NVMe driver. # the NVMe driver.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*pure_nvme_cidr*] # [*pure_nvme_cidr*]
# (Optional) Identifies which NVMe network CIDR should be used for # (Optional) Identifies which NVMe network CIDR should be used for
# NVMe connections to the FlashArray if the array is configured with # NVMe connections to the FlashArray if the array is configured with
# multiple NVMe VLANs. # multiple NVMe VLANs.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*pure_nvme_cidr_list*] # [*pure_nvme_cidr_list*]
# (Optional) Identifies list of CIDR of FlashArray NVMe targets hosts # (Optional) Identifies list of CIDR of FlashArray NVMe targets hosts
# are allowed to connect to. It supports IPv4 and IPv6 subnets. This # are allowed to connect to. It supports IPv4 and IPv6 subnets. This
# parameter supercedes pure_nvme_cidr. # parameter supercedes pure_nvme_cidr.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*pure_iscsi_cidr*] # [*pure_iscsi_cidr*]
# (Optional) Identifies which iSCSI network CIDR should be used for # (Optional) Identifies which iSCSI network CIDR should be used for
# iscsi connections to the FlashArray if the array is configured with # iscsi connections to the FlashArray if the array is configured with
# multiple iSCSI VLANs. # multiple iSCSI VLANs.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*pure_iscsi_cidr_list*] # [*pure_iscsi_cidr_list*]
# (Optional) Identifies list of CIDR of FlashArray iSCSI targets hosts are # (Optional) Identifies list of CIDR of FlashArray iSCSI targets hosts are
# allowed to connect to. It supports IPv4 and IPv6 subnets. This parameter # allowed to connect to. It supports IPv4 and IPv6 subnets. This parameter
# supersedes pure_iscsi_cidr. # supersedes pure_iscsi_cidr.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*extra_options*] # [*extra_options*]
# (optional) Hash of extra options to pass to the backend stanza. # (optional) Hash of extra options to pass to the backend stanza.
@ -96,19 +96,19 @@ define cinder::backend::pure(
$san_ip, $san_ip,
$pure_api_token, $pure_api_token,
$volume_backend_name = $name, $volume_backend_name = $name,
$backend_availability_zone = $::os_service_default, $backend_availability_zone = $facts['os_service_default'],
$pure_storage_protocol = 'iSCSI', $pure_storage_protocol = 'iSCSI',
$use_chap_auth = false, $use_chap_auth = false,
$use_multipath_for_image_xfer = true, $use_multipath_for_image_xfer = true,
$manage_volume_type = false, $manage_volume_type = false,
$image_volume_cache_enabled = true, $image_volume_cache_enabled = true,
$pure_host_personality = $::os_service_default, $pure_host_personality = $facts['os_service_default'],
$pure_eradicate_on_delete = $::os_service_default, $pure_eradicate_on_delete = $facts['os_service_default'],
$pure_nvme_transport = $::os_service_default, $pure_nvme_transport = $facts['os_service_default'],
$pure_nvme_cidr = $::os_service_default, $pure_nvme_cidr = $facts['os_service_default'],
$pure_nvme_cidr_list = $::os_service_default, $pure_nvme_cidr_list = $facts['os_service_default'],
$pure_iscsi_cidr = $::os_service_default, $pure_iscsi_cidr = $facts['os_service_default'],
$pure_iscsi_cidr_list = $::os_service_default, $pure_iscsi_cidr_list = $facts['os_service_default'],
$extra_options = {}, $extra_options = {},
) { ) {

View File

@ -38,7 +38,7 @@
# (Optional) Availability zone for this volume backend. # (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value # If not set, the storage_availability_zone option value
# is used as the default for all backends. # is used as the default for all backends.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*manage_volume_type*] # [*manage_volume_type*]
# (Optional) Whether or not manage Cinder Volume type. # (Optional) Whether or not manage Cinder Volume type.
@ -59,7 +59,7 @@ define cinder::backend::quobyte (
$quobyte_sparsed_volumes = undef, $quobyte_sparsed_volumes = undef,
$quobyte_mount_point_base = undef, $quobyte_mount_point_base = undef,
$volume_backend_name = $name, $volume_backend_name = $name,
$backend_availability_zone = $::os_service_default, $backend_availability_zone = $facts['os_service_default'],
$manage_volume_type = false, $manage_volume_type = false,
) { ) {

View File

@ -25,7 +25,7 @@
# (Optional) Availability zone for this volume backend. # (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value # If not set, the storage_availability_zone option value
# is used as the default for all backends. # is used as the default for all backends.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*rbd_ceph_conf*] # [*rbd_ceph_conf*]
# (optional) Path to the ceph configuration file to use # (optional) Path to the ceph configuration file to use
@ -37,40 +37,40 @@
# #
# [*rbd_secret_uuid*] # [*rbd_secret_uuid*]
# (optional) A required parameter to use cephx. # (optional) A required parameter to use cephx.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rbd_max_clone_depth*] # [*rbd_max_clone_depth*]
# (optional) Maximum number of nested clones that can be taken of a # (optional) Maximum number of nested clones that can be taken of a
# volume before enforcing a flatten prior to next clone. # volume before enforcing a flatten prior to next clone.
# A value of zero disables cloning # A value of zero disables cloning
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rados_connect_timeout*] # [*rados_connect_timeout*]
# (optional) Timeout value (in seconds) used when connecting to ceph cluster. # (optional) Timeout value (in seconds) used when connecting to ceph cluster.
# If value < 0, no timeout is set and default librados value is used. # If value < 0, no timeout is set and default librados value is used.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rados_connection_interval*] # [*rados_connection_interval*]
# (optional) Interval value (in seconds) between connection retries to ceph # (optional) Interval value (in seconds) between connection retries to ceph
# cluster. # cluster.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rados_connection_retries*] # [*rados_connection_retries*]
# (optional) Number of retries if connection to ceph cluster failed. # (optional) Number of retries if connection to ceph cluster failed.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rbd_store_chunk_size*] # [*rbd_store_chunk_size*]
# (optional) Volumes will be chunked into objects of this size (in megabytes). # (optional) Volumes will be chunked into objects of this size (in megabytes).
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*report_dynamic_total_capacity*] # [*report_dynamic_total_capacity*]
# (optional) Set to True for driver to report total capacity as a dynamic # (optional) Set to True for driver to report total capacity as a dynamic
# value # value
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rbd_exclusive_cinder_pool*] # [*rbd_exclusive_cinder_pool*]
# (optional) Set to True if the pool is used exclusively by Cinder. # (optional) Set to True if the pool is used exclusively by Cinder.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*manage_volume_type*] # [*manage_volume_type*]
# (Optional) Whether or not manage Cinder Volume type. # (Optional) Whether or not manage Cinder Volume type.
@ -89,17 +89,17 @@ define cinder::backend::rbd (
$rbd_user, $rbd_user,
$backend_host = undef, $backend_host = undef,
$volume_backend_name = $name, $volume_backend_name = $name,
$backend_availability_zone = $::os_service_default, $backend_availability_zone = $facts['os_service_default'],
$rbd_ceph_conf = '/etc/ceph/ceph.conf', $rbd_ceph_conf = '/etc/ceph/ceph.conf',
$rbd_flatten_volume_from_snapshot = $::os_service_default, $rbd_flatten_volume_from_snapshot = $facts['os_service_default'],
$rbd_secret_uuid = $::os_service_default, $rbd_secret_uuid = $facts['os_service_default'],
$rbd_max_clone_depth = $::os_service_default, $rbd_max_clone_depth = $facts['os_service_default'],
$rados_connect_timeout = $::os_service_default, $rados_connect_timeout = $facts['os_service_default'],
$rados_connection_interval = $::os_service_default, $rados_connection_interval = $facts['os_service_default'],
$rados_connection_retries = $::os_service_default, $rados_connection_retries = $facts['os_service_default'],
$rbd_store_chunk_size = $::os_service_default, $rbd_store_chunk_size = $facts['os_service_default'],
$report_dynamic_total_capacity = $::os_service_default, $report_dynamic_total_capacity = $facts['os_service_default'],
$rbd_exclusive_cinder_pool = $::os_service_default, $rbd_exclusive_cinder_pool = $facts['os_service_default'],
$manage_volume_type = false, $manage_volume_type = false,
$extra_options = {}, $extra_options = {},
) { ) {
@ -164,7 +164,7 @@ define cinder::backend::rbd (
create_resources('cinder_config', $extra_options) create_resources('cinder_config', $extra_options)
case $::osfamily { case $facts['os']['family'] {
'Debian': { 'Debian': {
$override_line = "CEPH_ARGS=\"--id ${rbd_user}\"" $override_line = "CEPH_ARGS=\"--id ${rbd_user}\""
$override_match = '^CEPH_ARGS=' $override_match = '^CEPH_ARGS='
@ -174,7 +174,7 @@ define cinder::backend::rbd (
$override_match = '^export CEPH_ARGS=' $override_match = '^export CEPH_ARGS='
} }
default: { default: {
fail("unsupported osfamily ${::osfamily}, currently Debian and Redhat are the only supported platforms") fail("unsupported osfamily ${facts['os']['family']}")
} }
} }

View File

@ -16,56 +16,56 @@
# (Optional) Availability zone for this volume backend. # (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value # If not set, the storage_availability_zone option value
# is used as the default for all backends. # is used as the default for all backends.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*san_thin_provision*] # [*san_thin_provision*]
# (optional) Use thin provisioning for SAN volumes? # (optional) Use thin provisioning for SAN volumes?
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*san_ip*] # [*san_ip*]
# (optional) IP address of SAN controller. # (optional) IP address of SAN controller.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*san_login*] # [*san_login*]
# (optional) Username for SAN controller. Defaults to 'admin'. # (optional) Username for SAN controller. Defaults to 'admin'.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*san_password*] # [*san_password*]
# (optional) Password for SAN controller. # (optional) Password for SAN controller.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*san_private_key*] # [*san_private_key*]
# (optional) Filename of private key to use for SSH authentication. # (optional) Filename of private key to use for SSH authentication.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*san_clustername*] # [*san_clustername*]
# (optional) Cluster name to use for creating volumes. # (optional) Cluster name to use for creating volumes.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*san_ssh_port*] # [*san_ssh_port*]
# (optional) SSH port to use with SAN. # (optional) SSH port to use with SAN.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*san_api_port*] # [*san_api_port*]
# (optional) Port to use to access the SAN API. # (optional) Port to use to access the SAN API.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*san_is_local*] # [*san_is_local*]
# (optional) Execute commands locally instead of over SSH # (optional) Execute commands locally instead of over SSH
# use if the volume service is running on the SAN device. # use if the volume service is running on the SAN device.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*ssh_conn_timeout*] # [*ssh_conn_timeout*]
# (optional) SSH connection timeout in seconds. # (optional) SSH connection timeout in seconds.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*ssh_min_pool_conn*] # [*ssh_min_pool_conn*]
# (optional) Minimum ssh connections in the pool. # (optional) Minimum ssh connections in the pool.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*ssh_max_pool_conn*] # [*ssh_max_pool_conn*]
# (Optional) Maximum ssh connections in the pool. # (Optional) Maximum ssh connections in the pool.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*manage_volume_type*] # [*manage_volume_type*]
# (Optional) Whether or not manage Cinder Volume type. # (Optional) Whether or not manage Cinder Volume type.
@ -82,19 +82,19 @@
define cinder::backend::san ( define cinder::backend::san (
$volume_driver, $volume_driver,
$volume_backend_name = $name, $volume_backend_name = $name,
$backend_availability_zone = $::os_service_default, $backend_availability_zone = $facts['os_service_default'],
$san_thin_provision = $::os_service_default, $san_thin_provision = $facts['os_service_default'],
$san_ip = $::os_service_default, $san_ip = $facts['os_service_default'],
$san_login = $::os_service_default, $san_login = $facts['os_service_default'],
$san_password = $::os_service_default, $san_password = $facts['os_service_default'],
$san_private_key = $::os_service_default, $san_private_key = $facts['os_service_default'],
$san_clustername = $::os_service_default, $san_clustername = $facts['os_service_default'],
$san_ssh_port = $::os_service_default, $san_ssh_port = $facts['os_service_default'],
$san_api_port = $::os_service_default, $san_api_port = $facts['os_service_default'],
$san_is_local = $::os_service_default, $san_is_local = $facts['os_service_default'],
$ssh_conn_timeout = $::os_service_default, $ssh_conn_timeout = $facts['os_service_default'],
$ssh_min_pool_conn = $::os_service_default, $ssh_min_pool_conn = $facts['os_service_default'],
$ssh_max_pool_conn = $::os_service_default, $ssh_max_pool_conn = $facts['os_service_default'],
$manage_volume_type = false, $manage_volume_type = false,
$extra_options = {}, $extra_options = {},
) { ) {

View File

@ -13,7 +13,7 @@
# (Optional) Availability zone for this volume backend. # (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value # If not set, the storage_availability_zone option value
# is used as the default for all backends. # is used as the default for all backends.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*volume_driver*] # [*volume_driver*]
# (optional) Setup cinder-volume to use SolidFire volume driver. # (optional) Setup cinder-volume to use SolidFire volume driver.
@ -30,62 +30,62 @@
# #
# [*sf_emulate_512*] # [*sf_emulate_512*]
# (optional) Use 512 byte emulation for volumes. # (optional) Use 512 byte emulation for volumes.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*sf_allow_tenant_qos*] # [*sf_allow_tenant_qos*]
# (optional) Allow tenants to specify QoS via volume metadata. # (optional) Allow tenants to specify QoS via volume metadata.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*sf_account_prefix*] # [*sf_account_prefix*]
# (optional) Prefix to use when creating tenant accounts on SolidFire Cluster. # (optional) Prefix to use when creating tenant accounts on SolidFire Cluster.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*sf_api_port*] # [*sf_api_port*]
# (optional) Port ID to use to connect to SolidFire API. # (optional) Port ID to use to connect to SolidFire API.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*sf_volume_prefix*] # [*sf_volume_prefix*]
# (optional) Create SolidFire volumes with this prefix. Volume names # (optional) Create SolidFire volumes with this prefix. Volume names
# are of the form <sf_volume_prefix><cinder-volume-id>. # are of the form <sf_volume_prefix><cinder-volume-id>.
# Defaults to $::os_service_default- # Defaults to $facts['os_service_default']-
# #
# [*sf_svip*] # [*sf_svip*]
# (optional) Overrides default cluster SVIP with the one specified. # (optional) Overrides default cluster SVIP with the one specified.
# This is required or deployments that have implemented the use of # This is required or deployments that have implemented the use of
# VLANs for iSCSI networks in their cloud. # VLANs for iSCSI networks in their cloud.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*sf_enable_vag*] # [*sf_enable_vag*]
# (optional) Utilize volume access groups on a per-tenant basis. # (optional) Utilize volume access groups on a per-tenant basis.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*sf_provisioning_calc*] # [*sf_provisioning_calc*]
# (optional) Change how SolidFire reports used space and provisioning # (optional) Change how SolidFire reports used space and provisioning
# calculations. # calculations.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*sf_cluster_pairing_timeout*] # [*sf_cluster_pairing_timeout*]
# (optional) Sets time in seconds to wait for cluster to complete paring. # (optional) Sets time in seconds to wait for cluster to complete paring.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*sf_volume_pairing_timeout*] # [*sf_volume_pairing_timeout*]
# (optional) Sets time in seconds to wait for a migrating volume to complete # (optional) Sets time in seconds to wait for a migrating volume to complete
# paring and sync. # paring and sync.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*sf_api_request_timeout*] # [*sf_api_request_timeout*]
# (optional) Sets time in seconds to wait for an api request to complete. # (optional) Sets time in seconds to wait for an api request to complete.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*sf_volume_clone_timeout*] # [*sf_volume_clone_timeout*]
# (optional) Sets time in seconds to wait for a clone of a volume or snapshot # (optional) Sets time in seconds to wait for a clone of a volume or snapshot
# to complete. # to complete.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*sf_volume_create_timeout*] # [*sf_volume_create_timeout*]
# (optional) Sets time in seconds to wait for a create volume operation to # (optional) Sets time in seconds to wait for a create volume operation to
# complete. # complete.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*manage_volume_type*] # [*manage_volume_type*]
# (Optional) Whether or not manage Cinder Volume type. # (Optional) Whether or not manage Cinder Volume type.
@ -104,21 +104,21 @@ define cinder::backend::solidfire(
$san_login, $san_login,
$san_password, $san_password,
$volume_backend_name = $name, $volume_backend_name = $name,
$backend_availability_zone = $::os_service_default, $backend_availability_zone = $facts['os_service_default'],
$volume_driver = 'cinder.volume.drivers.solidfire.SolidFireDriver', $volume_driver = 'cinder.volume.drivers.solidfire.SolidFireDriver',
$sf_emulate_512 = $::os_service_default, $sf_emulate_512 = $facts['os_service_default'],
$sf_allow_tenant_qos = $::os_service_default, $sf_allow_tenant_qos = $facts['os_service_default'],
$sf_account_prefix = $::os_service_default, $sf_account_prefix = $facts['os_service_default'],
$sf_api_port = $::os_service_default, $sf_api_port = $facts['os_service_default'],
$sf_volume_prefix = $::os_service_default, $sf_volume_prefix = $facts['os_service_default'],
$sf_svip = $::os_service_default, $sf_svip = $facts['os_service_default'],
$sf_enable_vag = $::os_service_default, $sf_enable_vag = $facts['os_service_default'],
$sf_provisioning_calc = $::os_service_default, $sf_provisioning_calc = $facts['os_service_default'],
$sf_cluster_pairing_timeout = $::os_service_default, $sf_cluster_pairing_timeout = $facts['os_service_default'],
$sf_volume_pairing_timeout = $::os_service_default, $sf_volume_pairing_timeout = $facts['os_service_default'],
$sf_api_request_timeout = $::os_service_default, $sf_api_request_timeout = $facts['os_service_default'],
$sf_volume_clone_timeout = $::os_service_default, $sf_volume_clone_timeout = $facts['os_service_default'],
$sf_volume_create_timeout = $::os_service_default, $sf_volume_create_timeout = $facts['os_service_default'],
$manage_volume_type = false, $manage_volume_type = false,
$extra_options = {}, $extra_options = {},
) { ) {

View File

@ -21,17 +21,17 @@
# (Optional) Availability zone for this volume backend. # (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value # If not set, the storage_availability_zone option value
# is used as the default for all backends. # is used as the default for all backends.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*api_retry_count*] # [*api_retry_count*]
# (optional) The number of times we retry on failures, # (optional) The number of times we retry on failures,
# e.g., socket error, etc. # e.g., socket error, etc.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*volume_folder*] # [*volume_folder*]
# (optional) The name for the folder in the VC datacenter that will contain # (optional) The name for the folder in the VC datacenter that will contain
# cinder volumes. # cinder volumes.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*max_object_retrieval*] # [*max_object_retrieval*]
# (optional) The maximum number of ObjectContent data objects that should # (optional) The maximum number of ObjectContent data objects that should
@ -40,22 +40,22 @@
# objects reaches the specified maximum. The server may still # objects reaches the specified maximum. The server may still
# limit the count to something less than the configured value. # limit the count to something less than the configured value.
# Any remaining objects may be retrieved with additional requests. # Any remaining objects may be retrieved with additional requests.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*task_poll_interval*] # [*task_poll_interval*]
# (optional) The interval in seconds used for polling of remote tasks. # (optional) The interval in seconds used for polling of remote tasks.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*image_transfer_timeout_secs*] # [*image_transfer_timeout_secs*]
# (optional) The timeout in seconds for VMDK volume transfer between Cinder # (optional) The timeout in seconds for VMDK volume transfer between Cinder
# and Glance. # and Glance.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*wsdl_location*] # [*wsdl_location*]
# (optional) VIM Service WSDL Location e.g # (optional) VIM Service WSDL Location e.g
# http://<server>/vimService.wsdl. Optional over-ride to # http://<server>/vimService.wsdl. Optional over-ride to
# default location for bug work-arounds. # default location for bug work-arounds.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*manage_volume_type*] # [*manage_volume_type*]
# (Optional) Whether or not manage Cinder Volume type. # (Optional) Whether or not manage Cinder Volume type.
@ -74,13 +74,13 @@ define cinder::backend::vmdk (
$host_username, $host_username,
$host_password, $host_password,
$volume_backend_name = $name, $volume_backend_name = $name,
$backend_availability_zone = $::os_service_default, $backend_availability_zone = $facts['os_service_default'],
$volume_folder = $::os_service_default, $volume_folder = $facts['os_service_default'],
$api_retry_count = $::os_service_default, $api_retry_count = $facts['os_service_default'],
$max_object_retrieval = $::os_service_default, $max_object_retrieval = $facts['os_service_default'],
$task_poll_interval = $::os_service_default, $task_poll_interval = $facts['os_service_default'],
$image_transfer_timeout_secs = $::os_service_default, $image_transfer_timeout_secs = $facts['os_service_default'],
$wsdl_location = $::os_service_default, $wsdl_location = $facts['os_service_default'],
$manage_volume_type = false, $manage_volume_type = false,
$extra_options = {}, $extra_options = {},
) { ) {

View File

@ -18,7 +18,7 @@
# (Optional) Availability zone for this volume backend. # (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value # If not set, the storage_availability_zone option value
# is used as the default for all backends. # is used as the default for all backends.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*shares_config_path*] # [*shares_config_path*]
# (optional) Shares config file path. # (optional) Shares config file path.
@ -26,19 +26,19 @@
# #
# [*use_sparsed_volumes*] # [*use_sparsed_volumes*]
# (optional) Whether or not to use sparsed volumes. # (optional) Whether or not to use sparsed volumes.
# Defaults to: $::os_service_default # Defaults to: $facts['os_service_default']
# #
# [*used_ratio*] # [*used_ratio*]
# (optional) Used ratio. # (optional) Used ratio.
# Defaults to: $::os_service_default # Defaults to: $facts['os_service_default']
# #
# [*mount_point_base*] # [*mount_point_base*]
# (optional) Mount point base path. # (optional) Mount point base path.
# Defaults to: $::os_service_default # Defaults to: $facts['os_service_default']
# #
# [*default_volume_format*] # [*default_volume_format*]
# (optional) Default volume format. # (optional) Default volume format.
# Defaults to: $::os_service_default # Defaults to: $facts['os_service_default']
# #
# [*manage_volume_type*] # [*manage_volume_type*]
# (Optional) Whether or not manage Cinder Volume type. # (Optional) Whether or not manage Cinder Volume type.
@ -66,12 +66,12 @@ define cinder::backend::vstorage (
$cluster_name, $cluster_name,
$cluster_password, $cluster_password,
$volume_backend_name = $name, $volume_backend_name = $name,
$backend_availability_zone = $::os_service_default, $backend_availability_zone = $facts['os_service_default'],
$shares_config_path = '/etc/cinder/vzstorage_shares', $shares_config_path = '/etc/cinder/vzstorage_shares',
$use_sparsed_volumes = $::os_service_default, $use_sparsed_volumes = $facts['os_service_default'],
$used_ratio = $::os_service_default, $used_ratio = $facts['os_service_default'],
$mount_point_base = $::os_service_default, $mount_point_base = $facts['os_service_default'],
$default_volume_format = $::os_service_default, $default_volume_format = $facts['os_service_default'],
$manage_volume_type = false, $manage_volume_type = false,
$mount_user = undef, $mount_user = undef,
$mount_group = 'root', $mount_group = 'root',

View File

@ -12,12 +12,12 @@
# #
# [*backend_host*] # [*backend_host*]
# (optional) Backend override of host value. # (optional) Backend override of host value.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# Author: Andrew Woodward <awoodward@mirantis.com> # Author: Andrew Woodward <awoodward@mirantis.com>
class cinder::backends ( class cinder::backends (
$enabled_backends = undef, $enabled_backends = undef,
$backend_host = $::os_service_default, $backend_host = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -18,24 +18,24 @@
# #
# [*backup_manager*] # [*backup_manager*]
# (optional) Full class name for the Manager for volume backup. # (optional) Full class name for the Manager for volume backup.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_api_class*] # [*backup_api_class*]
# (optional) The full class name of the volume backup API class. # (optional) The full class name of the volume backup API class.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_name_template*] # [*backup_name_template*]
# (optional) Template string to be used to generate backup names. # (optional) Template string to be used to generate backup names.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_workers*] # [*backup_workers*]
# (optional) Number of backup processes to launch. # (optional) Number of backup processes to launch.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_max_operations*] # [*backup_max_operations*]
# (optional) Maximum number of concurrent memory heavy operations: backup # (optional) Maximum number of concurrent memory heavy operations: backup
# and restore. Value of 0 means unlimited. # and restore. Value of 0 means unlimited.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# === Author(s) # === Author(s)
# #
@ -61,11 +61,11 @@ class cinder::backup (
$enabled = true, $enabled = true,
$manage_service = true, $manage_service = true,
$package_ensure = 'present', $package_ensure = 'present',
$backup_manager = $::os_service_default, $backup_manager = $facts['os_service_default'],
$backup_api_class = $::os_service_default, $backup_api_class = $facts['os_service_default'],
$backup_name_template = $::os_service_default, $backup_name_template = $facts['os_service_default'],
$backup_workers = $::os_service_default, $backup_workers = $facts['os_service_default'],
$backup_max_operations = $::os_service_default, $backup_max_operations = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -10,12 +10,12 @@
# #
# [*glusterfs_backup_mount_point*] # [*glusterfs_backup_mount_point*]
# (optional) Base dir container mount point for gluster share. # (optional) Base dir container mount point for gluster share.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*glusterfs_backup_share*] # [*glusterfs_backup_share*]
# (optional) GlusterFS share in <homename|ipv4addr|ipv6addr>:<gluster_vol_name> format. # (optional) GlusterFS share in <homename|ipv4addr|ipv6addr>:<gluster_vol_name> format.
# Eg: 1.2.3.4:backup_vol # Eg: 1.2.3.4:backup_vol
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# === Author(s) # === Author(s)
# #
@ -40,8 +40,8 @@
# #
class cinder::backup::glusterfs ( class cinder::backup::glusterfs (
$backup_driver = 'cinder.backup.drivers.glusterfs.GlusterfsBackupDriver', $backup_driver = 'cinder.backup.drivers.glusterfs.GlusterfsBackupDriver',
$glusterfs_backup_mount_point = $::os_service_default, $glusterfs_backup_mount_point = $facts['os_service_default'],
$glusterfs_backup_share = $::os_service_default, $glusterfs_backup_share = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -10,11 +10,11 @@
# #
# [*backup_gcs_bucket*] # [*backup_gcs_bucket*]
# (optional) The GCS bucket to use. # (optional) The GCS bucket to use.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_gcs_object_size*] # [*backup_gcs_object_size*]
# (optional) The size in bytes of GCS backup objects. # (optional) The size in bytes of GCS backup objects.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_gcs_block_size*] # [*backup_gcs_block_size*]
# (optional) The size in bytes that changes are tracked for # (optional) The size in bytes that changes are tracked for
@ -23,47 +23,47 @@
# #
# [*backup_gcs_reader_chunk_size*] # [*backup_gcs_reader_chunk_size*]
# (optional) GCS object will be downloaded in chunks of bytes. # (optional) GCS object will be downloaded in chunks of bytes.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_gcs_writer_chunk_size*] # [*backup_gcs_writer_chunk_size*]
# (optional) The GCS object will be uploaded in chunks of bytes. # (optional) The GCS object will be uploaded in chunks of bytes.
# Pass in a value of -1 if the file is to be uploaded as a # Pass in a value of -1 if the file is to be uploaded as a
# single chunk. # single chunk.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_gcs_num_retries*] # [*backup_gcs_num_retries*]
# (optional) Number of times to retry. # (optional) Number of times to retry.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_gcs_retry_error_codes*] # [*backup_gcs_retry_error_codes*]
# (optional) List of GCS error codes. # (optional) List of GCS error codes.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_gcs_bucket_location*] # [*backup_gcs_bucket_location*]
# (optional) Location of GCS bucket. # (optional) Location of GCS bucket.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_gcs_storage_class*] # [*backup_gcs_storage_class*]
# (optional) Storage class of GCS bucket. # (optional) Storage class of GCS bucket.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_gcs_credential_file*] # [*backup_gcs_credential_file*]
# (optional) Absolute path of GCS service account credential file. # (optional) Absolute path of GCS service account credential file.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_gcs_project_id*] # [*backup_gcs_project_id*]
# (optional) Owner project id for GCS bucket. # (optional) Owner project id for GCS bucket.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_gcs_user_agent*] # [*backup_gcs_user_agent*]
# (optional) Http user-agent string for GCS API. # (optional) Http user-agent string for GCS API.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_gcs_enable_progress_timer*] # [*backup_gcs_enable_progress_timer*]
# (optional) Enable or disable the timer to send the periodic # (optional) Enable or disable the timer to send the periodic
# progress notifications to ceilometer when backing up the # progress notifications to ceilometer when backing up the
# volume to the GCS backend storage. # volume to the GCS backend storage.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# === Author(s) # === Author(s)
# #
@ -88,19 +88,19 @@
# #
class cinder::backup::google ( class cinder::backup::google (
$backup_driver = 'cinder.backup.drivers.google.GoogleBackupDriver', $backup_driver = 'cinder.backup.drivers.google.GoogleBackupDriver',
$backup_gcs_bucket = $::os_service_default, $backup_gcs_bucket = $facts['os_service_default'],
$backup_gcs_object_size = $::os_service_default, $backup_gcs_object_size = $facts['os_service_default'],
$backup_gcs_block_size = $::os_service_default, $backup_gcs_block_size = $facts['os_service_default'],
$backup_gcs_reader_chunk_size = $::os_service_default, $backup_gcs_reader_chunk_size = $facts['os_service_default'],
$backup_gcs_writer_chunk_size = $::os_service_default, $backup_gcs_writer_chunk_size = $facts['os_service_default'],
$backup_gcs_num_retries = $::os_service_default, $backup_gcs_num_retries = $facts['os_service_default'],
$backup_gcs_retry_error_codes = $::os_service_default, $backup_gcs_retry_error_codes = $facts['os_service_default'],
$backup_gcs_bucket_location = $::os_service_default, $backup_gcs_bucket_location = $facts['os_service_default'],
$backup_gcs_storage_class = $::os_service_default, $backup_gcs_storage_class = $facts['os_service_default'],
$backup_gcs_credential_file = $::os_service_default, $backup_gcs_credential_file = $facts['os_service_default'],
$backup_gcs_project_id = $::os_service_default, $backup_gcs_project_id = $facts['os_service_default'],
$backup_gcs_user_agent = $::os_service_default, $backup_gcs_user_agent = $facts['os_service_default'],
$backup_gcs_enable_progress_timer = $::os_service_default, $backup_gcs_enable_progress_timer = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -17,35 +17,35 @@
# backups. If the volume being backed up exceeds this size, then # backups. If the volume being backed up exceeds this size, then
# it will be backed up into multiple files. This must be a multiple # it will be backed up into multiple files. This must be a multiple
# of the backup_sha_block_size_bytes parameter. # of the backup_sha_block_size_bytes parameter.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_sha_block_size_bytes*] # [*backup_sha_block_size_bytes*]
# (optional) The size in bytes that changes are tracked for # (optional) The size in bytes that changes are tracked for
# incremental backups. # incremental backups.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_enable_progress_timer*] # [*backup_enable_progress_timer*]
# (optional) Enable or Disable the timer to send the periodic # (optional) Enable or Disable the timer to send the periodic
# progress notifications to Ceilometer when backing up the volume # progress notifications to Ceilometer when backing up the volume
# to the backend storage. # to the backend storage.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_mount_point_base*] # [*backup_mount_point_base*]
# (optional) The base directory containing the mount point for the # (optional) The base directory containing the mount point for the
# NFS share. # NFS share.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_mount_options*] # [*backup_mount_options*]
# (optional) The mount options that are passed to the NFS client. # (optional) The mount options that are passed to the NFS client.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_container*] # [*backup_container*]
# (optional) Custom container to use for backups. # (optional) Custom container to use for backups.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_compression_algorithm*] # [*backup_compression_algorithm*]
# (optional) Compression algorithm to use when writing backup data. # (optional) Compression algorithm to use when writing backup data.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# === Author(s) # === Author(s)
# #
@ -71,13 +71,13 @@
class cinder::backup::nfs ( class cinder::backup::nfs (
$backup_share, $backup_share,
$backup_driver = 'cinder.backup.drivers.nfs.NFSBackupDriver', $backup_driver = 'cinder.backup.drivers.nfs.NFSBackupDriver',
$backup_file_size = $::os_service_default, $backup_file_size = $facts['os_service_default'],
$backup_sha_block_size_bytes = $::os_service_default, $backup_sha_block_size_bytes = $facts['os_service_default'],
$backup_enable_progress_timer = $::os_service_default, $backup_enable_progress_timer = $facts['os_service_default'],
$backup_mount_point_base = $::os_service_default, $backup_mount_point_base = $facts['os_service_default'],
$backup_mount_options = $::os_service_default, $backup_mount_options = $facts['os_service_default'],
$backup_container = $::os_service_default, $backup_container = $facts['os_service_default'],
$backup_compression_algorithm = $::os_service_default, $backup_compression_algorithm = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -13,26 +13,26 @@
# If the volume being backed up exceeds this size, then it will be backed # If the volume being backed up exceeds this size, then it will be backed
# up into multiple files. backup_file_size must be a multiple of # up into multiple files. backup_file_size must be a multiple of
# backup_sha_block_size_bytes. # backup_sha_block_size_bytes.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_sha_block_size_bytes*] # [*backup_sha_block_size_bytes*]
# (optional) The size in bytes that changes are tracked for incremental # (optional) The size in bytes that changes are tracked for incremental
# backups. backup_file_size has to be a multiple of backup_sha_block_size_bytes. # backups. backup_file_size has to be a multiple of backup_sha_block_size_bytes.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_enable_progress_timer*] # [*backup_enable_progress_timer*]
# (optional) Enable or Disable the timer to send the periodic progress # (optional) Enable or Disable the timer to send the periodic progress
# notifications to Ceilometer when backing up the volume to the backend # notifications to Ceilometer when backing up the volume to the backend
# storage. # storage.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_posix_path*] # [*backup_posix_path*]
# (optional) Path specifying where to store backups. # (optional) Path specifying where to store backups.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_container*] # [*backup_container*]
# (optional) Custom directory to use for backups. # (optional) Custom directory to use for backups.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# === Author(s) # === Author(s)
# #
@ -57,11 +57,11 @@
# #
class cinder::backup::posix ( class cinder::backup::posix (
$backup_driver = 'cinder.backup.drivers.posix.PosixBackupDriver', $backup_driver = 'cinder.backup.drivers.posix.PosixBackupDriver',
$backup_file_size = $::os_service_default, $backup_file_size = $facts['os_service_default'],
$backup_sha_block_size_bytes = $::os_service_default, $backup_sha_block_size_bytes = $facts['os_service_default'],
$backup_enable_progress_timer = $::os_service_default, $backup_enable_progress_timer = $facts['os_service_default'],
$backup_posix_path = $::os_service_default, $backup_posix_path = $facts['os_service_default'],
$backup_container = $::os_service_default, $backup_container = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -20,72 +20,72 @@
# [*backup_compression_algorithm*] # [*backup_compression_algorithm*]
# (optional) Compression algorithm to use for volume backups. # (optional) Compression algorithm to use for volume backups.
# Supported options are: None (to disable), zlib, bz2 and zstd. # Supported options are: None (to disable), zlib, bz2 and zstd.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_s3_store_bucket*] # [*backup_s3_store_bucket*]
# (optional) The S3 bucket to be used to store the Cinder backup data. # (optional) The S3 bucket to be used to store the Cinder backup data.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_s3_object_size*] # [*backup_s3_object_size*]
# (optional) The size in bytes of S3 backup objects. # (optional) The size in bytes of S3 backup objects.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_s3_block_size*] # [*backup_s3_block_size*]
# (optional) The size in bytes that changes are tracked for incremental # (optional) The size in bytes that changes are tracked for incremental
# backups. backup_s3_object_size has to be multiple of backup_s3_block_size. # backups. backup_s3_object_size has to be multiple of backup_s3_block_size.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_s3_enable_progress_timer*] # [*backup_s3_enable_progress_timer*]
# (optional) Enable or Disable the timer to send the periodic progress # (optional) Enable or Disable the timer to send the periodic progress
# notifications to Ceilometer when backing up the volume to the S3 # notifications to Ceilometer when backing up the volume to the S3
# backend storage. # backend storage.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_s3_http_proxy*] # [*backup_s3_http_proxy*]
# (optional) Address or host for the http proxy server. # (optional) Address or host for the http proxy server.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_s3_https_proxy*] # [*backup_s3_https_proxy*]
# (optional) Address or host for the https proxy server. # (optional) Address or host for the https proxy server.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_s3_timeout*] # [*backup_s3_timeout*]
# (optional) The time in seconds till a timeout exception is thrown. # (optional) The time in seconds till a timeout exception is thrown.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_s3_max_pool_connections*] # [*backup_s3_max_pool_connections*]
# (optional) The maximum number of connections to keep in a connection pool. # (optional) The maximum number of connections to keep in a connection pool.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_s3_retry_max_attempts*] # [*backup_s3_retry_max_attempts*]
# (optional) An integer representing the maximum number of # (optional) An integer representing the maximum number of
# retry attempts that will be made on a single request. # retry attempts that will be made on a single request.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_s3_retry_mode*] # [*backup_s3_retry_mode*]
# (optional) A string representing the type of retry mode. # (optional) A string representing the type of retry mode.
# e.g: legacy, standard, adaptive. # e.g: legacy, standard, adaptive.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_s3_verify_ssl*] # [*backup_s3_verify_ssl*]
# (optional) Enable or Disable ssl verify. # (optional) Enable or Disable ssl verify.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_s3_ca_cert_file*] # [*backup_s3_ca_cert_file*]
# (optional) A filename of the CA cert bundle to use. # (optional) A filename of the CA cert bundle to use.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_s3_md5_validation*] # [*backup_s3_md5_validation*]
# (optional) Enable or Disable md5 validation in the s3 backend. # (optional) Enable or Disable md5 validation in the s3 backend.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_s3_sse_customer_key*] # [*backup_s3_sse_customer_key*]
# (optional) The SSECustomerKey. # (optional) The SSECustomerKey.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_s3_sse_customer_algorithm*] # [*backup_s3_sse_customer_algorithm*]
# (optional) The SSECustomerAlgorithm. # (optional) The SSECustomerAlgorithm.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# === Author(s) # === Author(s)
# #
@ -113,22 +113,22 @@ class cinder::backup::s3 (
$backup_s3_store_access_key, $backup_s3_store_access_key,
$backup_s3_store_secret_key, $backup_s3_store_secret_key,
$backup_driver = 'cinder.backup.drivers.s3.S3BackupDriver', $backup_driver = 'cinder.backup.drivers.s3.S3BackupDriver',
$backup_compression_algorithm = $::os_service_default, $backup_compression_algorithm = $facts['os_service_default'],
$backup_s3_store_bucket = $::os_service_default, $backup_s3_store_bucket = $facts['os_service_default'],
$backup_s3_object_size = $::os_service_default, $backup_s3_object_size = $facts['os_service_default'],
$backup_s3_block_size = $::os_service_default, $backup_s3_block_size = $facts['os_service_default'],
$backup_s3_enable_progress_timer = $::os_service_default, $backup_s3_enable_progress_timer = $facts['os_service_default'],
$backup_s3_http_proxy = $::os_service_default, $backup_s3_http_proxy = $facts['os_service_default'],
$backup_s3_https_proxy = $::os_service_default, $backup_s3_https_proxy = $facts['os_service_default'],
$backup_s3_timeout = $::os_service_default, $backup_s3_timeout = $facts['os_service_default'],
$backup_s3_max_pool_connections = $::os_service_default, $backup_s3_max_pool_connections = $facts['os_service_default'],
$backup_s3_retry_max_attempts = $::os_service_default, $backup_s3_retry_max_attempts = $facts['os_service_default'],
$backup_s3_retry_mode = $::os_service_default, $backup_s3_retry_mode = $facts['os_service_default'],
$backup_s3_verify_ssl = $::os_service_default, $backup_s3_verify_ssl = $facts['os_service_default'],
$backup_s3_ca_cert_file = $::os_service_default, $backup_s3_ca_cert_file = $facts['os_service_default'],
$backup_s3_md5_validation = $::os_service_default, $backup_s3_md5_validation = $facts['os_service_default'],
$backup_s3_sse_customer_key = $::os_service_default, $backup_s3_sse_customer_key = $facts['os_service_default'],
$backup_s3_sse_customer_algorithm = $::os_service_default, $backup_s3_sse_customer_algorithm = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -11,15 +11,15 @@
# [*backup_swift_url*] # [*backup_swift_url*]
# (optional) The URL of the Swift endpoint. # (optional) The URL of the Swift endpoint.
# Should be a valid Swift URL # Should be a valid Swift URL
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_swift_auth_url*] # [*backup_swift_auth_url*]
# (optional) The URL of the Keystone endpoint for authentication. # (optional) The URL of the Keystone endpoint for authentication.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*swift_catalog_info*] # [*swift_catalog_info*]
# (optional) Info to match when looking for swift in the service catalog # (optional) Info to match when looking for swift in the service catalog
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_swift_container*] # [*backup_swift_container*]
# (optional) The default Swift container to use. # (optional) The default Swift container to use.
@ -27,43 +27,43 @@
# #
# [*backup_swift_create_storage_policy*] # [*backup_swift_create_storage_policy*]
# (optional) The storage policy to use when creating the Swift container. # (optional) The storage policy to use when creating the Swift container.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_swift_object_size*] # [*backup_swift_object_size*]
# (optional) The size in bytes of Swift backup objects. # (optional) The size in bytes of Swift backup objects.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_swift_retry_attempts*] # [*backup_swift_retry_attempts*]
# (optional) The number of retries to make for Swift operations. # (optional) The number of retries to make for Swift operations.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_swift_retry_backoff*] # [*backup_swift_retry_backoff*]
# (optional) The backoff time in seconds between Swift retries. # (optional) The backoff time in seconds between Swift retries.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_swift_user_domain*] # [*backup_swift_user_domain*]
# (optional) Swift user domain name. Required when connecting to an # (optional) Swift user domain name. Required when connecting to an
# auth 3.0 system. # auth 3.0 system.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_swift_project_domain*] # [*backup_swift_project_domain*]
# (optional) Swift project domain name. Required when connecting to an # (optional) Swift project domain name. Required when connecting to an
# auth 3.0 system. # auth 3.0 system.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_swift_project*] # [*backup_swift_project*]
# (optional) Swift project/account name. Required when connection to an # (optional) Swift project/account name. Required when connection to an
# auth 3.0 system. # auth 3.0 system.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backup_compression_algorithm*] # [*backup_compression_algorithm*]
# (optional) The compression algorithm for the chunks sent to swift # (optional) The compression algorithm for the chunks sent to swift
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# set to None to disable compression # set to None to disable compression
# #
# [*backup_swift_service_auth*] # [*backup_swift_service_auth*]
# (optional) Send a X-Service-Token header with service auth credentials. # (optional) Send a X-Service-Token header with service auth credentials.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# === Author(s) # === Author(s)
# #
@ -88,19 +88,19 @@
# #
class cinder::backup::swift ( class cinder::backup::swift (
$backup_driver = 'cinder.backup.drivers.swift.SwiftBackupDriver', $backup_driver = 'cinder.backup.drivers.swift.SwiftBackupDriver',
$backup_swift_url = $::os_service_default, $backup_swift_url = $facts['os_service_default'],
$backup_swift_auth_url = $::os_service_default, $backup_swift_auth_url = $facts['os_service_default'],
$swift_catalog_info = $::os_service_default, $swift_catalog_info = $facts['os_service_default'],
$backup_swift_container = 'volumebackups', $backup_swift_container = 'volumebackups',
$backup_swift_create_storage_policy = $::os_service_default, $backup_swift_create_storage_policy = $facts['os_service_default'],
$backup_swift_object_size = $::os_service_default, $backup_swift_object_size = $facts['os_service_default'],
$backup_swift_retry_attempts = $::os_service_default, $backup_swift_retry_attempts = $facts['os_service_default'],
$backup_swift_retry_backoff = $::os_service_default, $backup_swift_retry_backoff = $facts['os_service_default'],
$backup_swift_user_domain = $::os_service_default, $backup_swift_user_domain = $facts['os_service_default'],
$backup_swift_project_domain = $::os_service_default, $backup_swift_project_domain = $facts['os_service_default'],
$backup_swift_project = $::os_service_default, $backup_swift_project = $facts['os_service_default'],
$backup_compression_algorithm = $::os_service_default, $backup_compression_algorithm = $facts['os_service_default'],
$backup_swift_service_auth = $::os_service_default, $backup_swift_service_auth = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -6,10 +6,10 @@
# #
# [*backend_url*] # [*backend_url*]
# (Optional) Coordination backend URL. # (Optional) Coordination backend URL.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class cinder::coordination ( class cinder::coordination (
$backend_url = $::os_service_default, $backend_url = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -8,41 +8,41 @@
# (Optional) Indicate whether this resource may be shared with the domain # (Optional) Indicate whether this resource may be shared with the domain
# received in the requests "origin" header. # received in the requests "origin" header.
# (string value) # (string value)
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*allow_credentials*] # [*allow_credentials*]
# (Optional) Indicate that the actual request can include user credentials. # (Optional) Indicate that the actual request can include user credentials.
# (boolean value) # (boolean value)
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*expose_headers*] # [*expose_headers*]
# (Optional) Indicate which headers are safe to expose to the API. # (Optional) Indicate which headers are safe to expose to the API.
# (list value) # (list value)
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*max_age*] # [*max_age*]
# (Optional) Maximum cache age of CORS preflight requests. # (Optional) Maximum cache age of CORS preflight requests.
# (integer value) # (integer value)
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*allow_methods*] # [*allow_methods*]
# (Optional) Indicate which methods can be used during the actual request. # (Optional) Indicate which methods can be used during the actual request.
# (list value) # (list value)
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*allow_headers*] # [*allow_headers*]
# (Optional) Indicate which header field names may be used during the actual # (Optional) Indicate which header field names may be used during the actual
# request. # request.
# (list value) # (list value)
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
class cinder::cors ( class cinder::cors (
$allowed_origin = $::os_service_default, $allowed_origin = $facts['os_service_default'],
$allow_credentials = $::os_service_default, $allow_credentials = $facts['os_service_default'],
$expose_headers = $::os_service_default, $expose_headers = $facts['os_service_default'],
$max_age = $::os_service_default, $max_age = $facts['os_service_default'],
$allow_methods = $::os_service_default, $allow_methods = $facts['os_service_default'],
$allow_headers = $::os_service_default, $allow_headers = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -7,7 +7,7 @@
# [*database_db_max_retries*] # [*database_db_max_retries*]
# (optional) Maximum retries in case of connection error or deadlock error # (optional) Maximum retries in case of connection error or deadlock error
# before error is raised. Set to -1 to specify an infinite retry count. # before error is raised. Set to -1 to specify an infinite retry count.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*database_connection*] # [*database_connection*]
# Url used to connect to database. # Url used to connect to database.
@ -15,44 +15,44 @@
# #
# [*database_connection_recycle_time*] # [*database_connection_recycle_time*]
# Timeout when db connections should be reaped. # Timeout when db connections should be reaped.
# (Optional) Defaults to $::os_service_default # (Optional) Defaults to $facts['os_service_default']
# #
# [*database_max_pool_size*] # [*database_max_pool_size*]
# Maximum number of SQL connections to keep open in a pool. # Maximum number of SQL connections to keep open in a pool.
# (Optional) Defaults to $::os_service_default # (Optional) Defaults to $facts['os_service_default']
# #
# [*database_max_retries*] # [*database_max_retries*]
# Maximum db connection retries during startup. # Maximum db connection retries during startup.
# Setting -1 implies an infinite retry count. # Setting -1 implies an infinite retry count.
# (Optional) Defaults to $::os_service_default # (Optional) Defaults to $facts['os_service_default']
# #
# [*database_retry_interval*] # [*database_retry_interval*]
# Interval between retries of opening a sql connection. # Interval between retries of opening a sql connection.
# (Optional) Defaults to $::os_service_default # (Optional) Defaults to $facts['os_service_default']
# #
# [*database_max_overflow*] # [*database_max_overflow*]
# If set, use this value for max_overflow with sqlalchemy. # If set, use this value for max_overflow with sqlalchemy.
# (Optional) Defaults to $::os_service_default # (Optional) Defaults to $facts['os_service_default']
# #
# [*database_pool_timeout*] # [*database_pool_timeout*]
# (Optional) If set, use this value for pool_timeout with SQLAlchemy. # (Optional) If set, use this value for pool_timeout with SQLAlchemy.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*mysql_enable_ndb*] # [*mysql_enable_ndb*]
# (Optional) If True, transparently enables support for handling MySQL # (Optional) If True, transparently enables support for handling MySQL
# Cluster (NDB). # Cluster (NDB).
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class cinder::db ( class cinder::db (
$database_db_max_retries = $::os_service_default, $database_db_max_retries = $facts['os_service_default'],
$database_connection = 'sqlite:////var/lib/cinder/cinder.sqlite', $database_connection = 'sqlite:////var/lib/cinder/cinder.sqlite',
$database_connection_recycle_time = $::os_service_default, $database_connection_recycle_time = $facts['os_service_default'],
$database_max_pool_size = $::os_service_default, $database_max_pool_size = $facts['os_service_default'],
$database_max_retries = $::os_service_default, $database_max_retries = $facts['os_service_default'],
$database_retry_interval = $::os_service_default, $database_retry_interval = $facts['os_service_default'],
$database_max_overflow = $::os_service_default, $database_max_overflow = $facts['os_service_default'],
$database_pool_timeout = $::os_service_default, $database_pool_timeout = $facts['os_service_default'],
$mysql_enable_ndb = $::os_service_default, $mysql_enable_ndb = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -7,15 +7,15 @@
# [*glance_api_servers*] # [*glance_api_servers*]
# (optional) A list of the glance api servers available to cinder. # (optional) A list of the glance api servers available to cinder.
# Should be an array with [hostname|ip]:port # Should be an array with [hostname|ip]:port
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*glance_num_retries*] # [*glance_num_retries*]
# (optional) Number retries when downloading an image from glance. # (optional) Number retries when downloading an image from glance.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*glance_api_insecure*] # [*glance_api_insecure*]
# (optional) Allow to perform insecure SSL (https) requests to glance. # (optional) Allow to perform insecure SSL (https) requests to glance.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*glance_api_ssl_compression*] # [*glance_api_ssl_compression*]
# (optional) Whether to attempt to negotiate SSL layer compression when # (optional) Whether to attempt to negotiate SSL layer compression when
@ -23,29 +23,29 @@
# layer compression. In some cases disabling this may improve # layer compression. In some cases disabling this may improve
# data throughput, eg when high network bandwidth is available # data throughput, eg when high network bandwidth is available
# and you are using already compressed image formats such as qcow2. # and you are using already compressed image formats such as qcow2.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*glance_request_timeout*] # [*glance_request_timeout*]
# (optional) http/https timeout value for glance operations. # (optional) http/https timeout value for glance operations.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*allowed_direct_url_schemes*] # [*allowed_direct_url_schemes*]
# (optional) A list of url schemes that can be downloaded directly via # (optional) A list of url schemes that can be downloaded directly via
# direct_url. # direct_url.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*verify_glance_signatures*] # [*verify_glance_signatures*]
# (optional) Enable image signature verification. # (optional) Enable image signature verification.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*glance_catalog_info*] # [*glance_catalog_info*]
# (optional) Info to match when looking for glance in the service catalog. # (optional) Info to match when looking for glance in the service catalog.
# Only used if glance_api_servers are not provided. # Only used if glance_api_servers are not provided.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*glance_core_properties*] # [*glance_core_properties*]
# (optional) Default core properties of image # (optional) Default core properties of image
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# === Author(s) # === Author(s)
# #
@ -68,15 +68,15 @@
# under the License. # under the License.
# #
class cinder::glance ( class cinder::glance (
$glance_api_servers = $::os_service_default, $glance_api_servers = $facts['os_service_default'],
$glance_num_retries = $::os_service_default, $glance_num_retries = $facts['os_service_default'],
$glance_api_insecure = $::os_service_default, $glance_api_insecure = $facts['os_service_default'],
$glance_api_ssl_compression = $::os_service_default, $glance_api_ssl_compression = $facts['os_service_default'],
$glance_request_timeout = $::os_service_default, $glance_request_timeout = $facts['os_service_default'],
$allowed_direct_url_schemes = $::os_service_default, $allowed_direct_url_schemes = $facts['os_service_default'],
$verify_glance_signatures = $::os_service_default, $verify_glance_signatures = $facts['os_service_default'],
$glance_catalog_info = $::os_service_default, $glance_catalog_info = $facts['os_service_default'],
$glance_core_properties = $::os_service_default, $glance_core_properties = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -6,28 +6,28 @@
# #
# [*detailed*] # [*detailed*]
# (Optional) Show more detailed information as part of the response. # (Optional) Show more detailed information as part of the response.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backends*] # [*backends*]
# (Optional) Additional backends that can perform health checks and report # (Optional) Additional backends that can perform health checks and report
# that information back as part of a request. # that information back as part of a request.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*disable_by_file_path*] # [*disable_by_file_path*]
# (Optional) Check the presence of a file to determine if an application # (Optional) Check the presence of a file to determine if an application
# is running on a port. # is running on a port.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*disable_by_file_paths*] # [*disable_by_file_paths*]
# (Optional) Check the presence of a file to determine if an application # (Optional) Check the presence of a file to determine if an application
# is running on a port. Expects a "port:path" list of strings. # is running on a port. Expects a "port:path" list of strings.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class cinder::healthcheck ( class cinder::healthcheck (
$detailed = $::os_service_default, $detailed = $facts['os_service_default'],
$backends = $::os_service_default, $backends = $facts['os_service_default'],
$disable_by_file_path = $::os_service_default, $disable_by_file_path = $facts['os_service_default'],
$disable_by_file_paths = $::os_service_default, $disable_by_file_paths = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -12,33 +12,33 @@
# (optional) A URL representing the messaging driver to use and its full # (optional) A URL representing the messaging driver to use and its full
# configuration. Transport URLs take the form: # configuration. Transport URLs take the form:
# transport://user:pass@host1:port[,hostN:portN]/virtual_host # transport://user:pass@host1:port[,hostN:portN]/virtual_host
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rpc_response_timeout*] # [*rpc_response_timeout*]
# (optional) Seconds to wait for a response from a call # (optional) Seconds to wait for a response from a call
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*control_exchange*] # [*control_exchange*]
# (Optional) # (Optional)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*notification_transport_url*] # [*notification_transport_url*]
# (Optional) A URL representing the messaging driver to use for notifications # (Optional) A URL representing the messaging driver to use for notifications
# and its full configuration. Transport URLs take the form: # and its full configuration. Transport URLs take the form:
# transport://user:pass@host1:port[,hostN:portN]/virtual_host # transport://user:pass@host1:port[,hostN:portN]/virtual_host
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*notification_driver*] # [*notification_driver*]
# (Option) Driver or drivers to handle sending notifications. # (Option) Driver or drivers to handle sending notifications.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*notification_topics*] # [*notification_topics*]
# (Optional) AMQP topic used for OpenStack notifications # (Optional) AMQP topic used for OpenStack notifications
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rabbit_ha_queues*] # [*rabbit_ha_queues*]
# (optional) Use HA queues in RabbitMQ (x-ha-policy: all). # (optional) Use HA queues in RabbitMQ (x-ha-policy: all).
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rabbit_heartbeat_timeout_threshold*] # [*rabbit_heartbeat_timeout_threshold*]
# (optional) Number of seconds after which the RabbitMQ broker is considered # (optional) Number of seconds after which the RabbitMQ broker is considered
@ -46,14 +46,14 @@
# Heartbeating helps to ensure the TCP connection to RabbitMQ isn't silently # Heartbeating helps to ensure the TCP connection to RabbitMQ isn't silently
# closed, resulting in missed or lost messages from the queue. # closed, resulting in missed or lost messages from the queue.
# (Requires kombu >= 3.0.7 and amqp >= 1.4.0) # (Requires kombu >= 3.0.7 and amqp >= 1.4.0)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rabbit_heartbeat_rate*] # [*rabbit_heartbeat_rate*]
# (optional) How often during the rabbit_heartbeat_timeout_threshold period to # (optional) How often during the rabbit_heartbeat_timeout_threshold period to
# check the heartbeat on RabbitMQ connection. (i.e. rabbit_heartbeat_rate=2 # check the heartbeat on RabbitMQ connection. (i.e. rabbit_heartbeat_rate=2
# when rabbit_heartbeat_timeout_threshold=60, the heartbeat will be checked # when rabbit_heartbeat_timeout_threshold=60, the heartbeat will be checked
# every 30 seconds. # every 30 seconds.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rabbit_heartbeat_in_pthread*] # [*rabbit_heartbeat_in_pthread*]
# (Optional) EXPERIMENTAL: Run the health check heartbeat thread # (Optional) EXPERIMENTAL: Run the health check heartbeat thread
@ -63,120 +63,120 @@
# example if the parent process have monkey patched the # example if the parent process have monkey patched the
# stdlib by using eventlet/greenlet then the heartbeat # stdlib by using eventlet/greenlet then the heartbeat
# will be run through a green thread. # will be run through a green thread.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rabbit_use_ssl*] # [*rabbit_use_ssl*]
# (optional) Connect over SSL for RabbitMQ # (optional) Connect over SSL for RabbitMQ
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*report_interval*] # [*report_interval*]
# (optional) Interval, in seconds, between nodes reporting state to # (optional) Interval, in seconds, between nodes reporting state to
# datastore (integer value). # datastore (integer value).
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*service_down_time*] # [*service_down_time*]
# (optional) Maximum time since last check-in for a service to be # (optional) Maximum time since last check-in for a service to be
# considered up (integer value). # considered up (integer value).
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*kombu_ssl_ca_certs*] # [*kombu_ssl_ca_certs*]
# (optional) SSL certification authority file (valid only if SSL enabled). # (optional) SSL certification authority file (valid only if SSL enabled).
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*kombu_ssl_certfile*] # [*kombu_ssl_certfile*]
# (optional) SSL cert file (valid only if SSL enabled). # (optional) SSL cert file (valid only if SSL enabled).
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*kombu_ssl_keyfile*] # [*kombu_ssl_keyfile*]
# (optional) SSL key file (valid only if SSL enabled). # (optional) SSL key file (valid only if SSL enabled).
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*kombu_ssl_version*] # [*kombu_ssl_version*]
# (optional) SSL version to use (valid only if SSL enabled). # (optional) SSL version to use (valid only if SSL enabled).
# Valid values are TLSv1, SSLv23 and SSLv3. SSLv2 may be # Valid values are TLSv1, SSLv23 and SSLv3. SSLv2 may be
# available on some distributions. # available on some distributions.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*kombu_reconnect_delay*] # [*kombu_reconnect_delay*]
# (optional) How long to wait before reconnecting in response to an AMQP # (optional) How long to wait before reconnecting in response to an AMQP
# consumer cancel notification. # consumer cancel notification.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*kombu_failover_strategy*] # [*kombu_failover_strategy*]
# (Optional) Determines how the next RabbitMQ node is chosen in case the one # (Optional) Determines how the next RabbitMQ node is chosen in case the one
# we are currently connected to becomes unavailable. Takes effect only if # we are currently connected to becomes unavailable. Takes effect only if
# more than one RabbitMQ node is provided in config. (string value) # more than one RabbitMQ node is provided in config. (string value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*kombu_compression*] # [*kombu_compression*]
# (optional) Possible values are: gzip, bz2. If not set compression will not # (optional) Possible values are: gzip, bz2. If not set compression will not
# be used. This option may not be available in future versions. EXPERIMENTAL. # be used. This option may not be available in future versions. EXPERIMENTAL.
# (string value) # (string value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*amqp_durable_queues*] # [*amqp_durable_queues*]
# Use durable queues in amqp. # Use durable queues in amqp.
# (Optional) Defaults to $::os_service_default # (Optional) Defaults to $facts['os_service_default']
# #
# [*amqp_server_request_prefix*] # [*amqp_server_request_prefix*]
# (Optional) Address prefix used when sending to a specific server # (Optional) Address prefix used when sending to a specific server
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_broadcast_prefix*] # [*amqp_broadcast_prefix*]
# (Optional) address prefix used when broadcasting to all servers # (Optional) address prefix used when broadcasting to all servers
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_group_request_prefix*] # [*amqp_group_request_prefix*]
# (Optional) address prefix when sending to any server in group # (Optional) address prefix when sending to any server in group
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_container_name*] # [*amqp_container_name*]
# (Optional) Name for the AMQP container # (Optional) Name for the AMQP container
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_idle_timeout*] # [*amqp_idle_timeout*]
# (Optional) Timeout for inactive connections # (Optional) Timeout for inactive connections
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_trace*] # [*amqp_trace*]
# (Optional) Debug: dump AMQP frames to stdout # (Optional) Debug: dump AMQP frames to stdout
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_ssl_ca_file*] # [*amqp_ssl_ca_file*]
# (Optional) CA certificate PEM file to verify server certificate # (Optional) CA certificate PEM file to verify server certificate
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_ssl_cert_file*] # [*amqp_ssl_cert_file*]
# (Optional) Identifying certificate PEM file to present to clients # (Optional) Identifying certificate PEM file to present to clients
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_ssl_key_file*] # [*amqp_ssl_key_file*]
# (Optional) Private key PEM file used to sign cert_file certificate # (Optional) Private key PEM file used to sign cert_file certificate
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_ssl_key_password*] # [*amqp_ssl_key_password*]
# (Optional) Password for decrypting ssl_key_file (if encrypted) # (Optional) Password for decrypting ssl_key_file (if encrypted)
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_sasl_mechanisms*] # [*amqp_sasl_mechanisms*]
# (Optional) Space separated list of acceptable SASL mechanisms # (Optional) Space separated list of acceptable SASL mechanisms
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_sasl_config_dir*] # [*amqp_sasl_config_dir*]
# (Optional) Path to directory that contains the SASL configuration # (Optional) Path to directory that contains the SASL configuration
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_sasl_config_name*] # [*amqp_sasl_config_name*]
# (Optional) Name of configuration file (without .conf suffix) # (Optional) Name of configuration file (without .conf suffix)
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_username*] # [*amqp_username*]
# (Optional) User name for message broker authentication # (Optional) User name for message broker authentication
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_password*] # [*amqp_password*]
# (Optional) Password for message broker authentication # (Optional) Password for message broker authentication
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*storage_availability_zone*] # [*storage_availability_zone*]
# (optional) Availability zone of the node. # (optional) Availability zone of the node.
@ -190,7 +190,7 @@
# #
# [*allow_availability_zone_fallback*] # [*allow_availability_zone_fallback*]
# (optional) Allow availability zone fallback if preferred availability zone cannot be deployed to. # (optional) Allow availability zone fallback if preferred availability zone cannot be deployed to.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*api_paste_config*] # [*api_paste_config*]
# (Optional) # (Optional)
@ -205,33 +205,33 @@
# (optional) Location to store temporary image files if the volume # (optional) Location to store temporary image files if the volume
# driver does not write them directly to the volume and the volume conversion # driver does not write them directly to the volume and the volume conversion
# needs to be performed. # needs to be performed.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*image_compress_on_upload*] # [*image_compress_on_upload*]
# (optional) When possible, compress images uploaded to the image service. # (optional) When possible, compress images uploaded to the image service.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*image_conversion_cpu_limit*] # [*image_conversion_cpu_limit*]
# (optional) CPU time limit in seconds to convert the image. # (optional) CPU time limit in seconds to convert the image.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*image_conversion_address_space_limit*] # [*image_conversion_address_space_limit*]
# (optional) Address space limit in gigabytes to convert the image. # (optional) Address space limit in gigabytes to convert the image.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*image_conversion_disable*] # [*image_conversion_disable*]
# (optional) Disallow image conversion when creating a volume from an image # (optional) Disallow image conversion when creating a volume from an image
# and when uploading a volume as an image. # and when uploading a volume as an image.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*host*] # [*host*]
# (optional) Name of this node. This can be an opaque identifier. It is # (optional) Name of this node. This can be an opaque identifier. It is
# not necessarily a host name, FQDN, or IP address. # not necessarily a host name, FQDN, or IP address.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*enable_new_services*] # [*enable_new_services*]
# (optional) Services to be added to the available pool on create. # (optional) Services to be added to the available pool on create.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*purge_config*] # [*purge_config*]
# (optional) Whether to set only the specified config options # (optional) Whether to set only the specified config options
@ -242,72 +242,72 @@
# (optional) Enables the Force option on upload_to_image. This # (optional) Enables the Force option on upload_to_image. This
# enables running upload_volume on in-use volumes for backends that # enables running upload_volume on in-use volumes for backends that
# support it. # support it.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*cinder_internal_tenant_project_id*] # [*cinder_internal_tenant_project_id*]
# (optional) ID of the project which will be used as the Cinder internal # (optional) ID of the project which will be used as the Cinder internal
# tenant. # tenant.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*cinder_internal_tenant_user_id*] # [*cinder_internal_tenant_user_id*]
# (optional) ID of the user to be used in volume operations as the Cinder # (optional) ID of the user to be used in volume operations as the Cinder
# internal tenant. # internal tenant.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
class cinder ( class cinder (
$default_transport_url = $::os_service_default, $default_transport_url = $facts['os_service_default'],
$rpc_response_timeout = $::os_service_default, $rpc_response_timeout = $facts['os_service_default'],
$control_exchange = $::os_service_default, $control_exchange = $facts['os_service_default'],
$notification_transport_url = $::os_service_default, $notification_transport_url = $facts['os_service_default'],
$notification_driver = $::os_service_default, $notification_driver = $facts['os_service_default'],
$notification_topics = $::os_service_default, $notification_topics = $facts['os_service_default'],
$rabbit_ha_queues = $::os_service_default, $rabbit_ha_queues = $facts['os_service_default'],
$rabbit_heartbeat_timeout_threshold = $::os_service_default, $rabbit_heartbeat_timeout_threshold = $facts['os_service_default'],
$rabbit_heartbeat_rate = $::os_service_default, $rabbit_heartbeat_rate = $facts['os_service_default'],
$rabbit_heartbeat_in_pthread = $::os_service_default, $rabbit_heartbeat_in_pthread = $facts['os_service_default'],
$rabbit_use_ssl = $::os_service_default, $rabbit_use_ssl = $facts['os_service_default'],
$service_down_time = $::os_service_default, $service_down_time = $facts['os_service_default'],
$report_interval = $::os_service_default, $report_interval = $facts['os_service_default'],
$kombu_ssl_ca_certs = $::os_service_default, $kombu_ssl_ca_certs = $facts['os_service_default'],
$kombu_ssl_certfile = $::os_service_default, $kombu_ssl_certfile = $facts['os_service_default'],
$kombu_ssl_keyfile = $::os_service_default, $kombu_ssl_keyfile = $facts['os_service_default'],
$kombu_ssl_version = $::os_service_default, $kombu_ssl_version = $facts['os_service_default'],
$kombu_reconnect_delay = $::os_service_default, $kombu_reconnect_delay = $facts['os_service_default'],
$kombu_failover_strategy = $::os_service_default, $kombu_failover_strategy = $facts['os_service_default'],
$kombu_compression = $::os_service_default, $kombu_compression = $facts['os_service_default'],
$amqp_durable_queues = $::os_service_default, $amqp_durable_queues = $facts['os_service_default'],
$amqp_server_request_prefix = $::os_service_default, $amqp_server_request_prefix = $facts['os_service_default'],
$amqp_broadcast_prefix = $::os_service_default, $amqp_broadcast_prefix = $facts['os_service_default'],
$amqp_group_request_prefix = $::os_service_default, $amqp_group_request_prefix = $facts['os_service_default'],
$amqp_container_name = $::os_service_default, $amqp_container_name = $facts['os_service_default'],
$amqp_idle_timeout = $::os_service_default, $amqp_idle_timeout = $facts['os_service_default'],
$amqp_trace = $::os_service_default, $amqp_trace = $facts['os_service_default'],
$amqp_ssl_ca_file = $::os_service_default, $amqp_ssl_ca_file = $facts['os_service_default'],
$amqp_ssl_cert_file = $::os_service_default, $amqp_ssl_cert_file = $facts['os_service_default'],
$amqp_ssl_key_file = $::os_service_default, $amqp_ssl_key_file = $facts['os_service_default'],
$amqp_ssl_key_password = $::os_service_default, $amqp_ssl_key_password = $facts['os_service_default'],
$amqp_sasl_mechanisms = $::os_service_default, $amqp_sasl_mechanisms = $facts['os_service_default'],
$amqp_sasl_config_dir = $::os_service_default, $amqp_sasl_config_dir = $facts['os_service_default'],
$amqp_sasl_config_name = $::os_service_default, $amqp_sasl_config_name = $facts['os_service_default'],
$amqp_username = $::os_service_default, $amqp_username = $facts['os_service_default'],
$amqp_password = $::os_service_default, $amqp_password = $facts['os_service_default'],
$package_ensure = 'present', $package_ensure = 'present',
$api_paste_config = '/etc/cinder/api-paste.ini', $api_paste_config = '/etc/cinder/api-paste.ini',
$storage_availability_zone = 'nova', $storage_availability_zone = 'nova',
$default_availability_zone = false, $default_availability_zone = false,
$allow_availability_zone_fallback = $::os_service_default, $allow_availability_zone_fallback = $facts['os_service_default'],
$lock_path = $::cinder::params::lock_path, $lock_path = $::cinder::params::lock_path,
$image_conversion_dir = $::os_service_default, $image_conversion_dir = $facts['os_service_default'],
$image_compress_on_upload = $::os_service_default, $image_compress_on_upload = $facts['os_service_default'],
$image_conversion_cpu_limit = $::os_service_default, $image_conversion_cpu_limit = $facts['os_service_default'],
$image_conversion_address_space_limit = $::os_service_default, $image_conversion_address_space_limit = $facts['os_service_default'],
$image_conversion_disable = $::os_service_default, $image_conversion_disable = $facts['os_service_default'],
$host = $::os_service_default, $host = $facts['os_service_default'],
$enable_new_services = $::os_service_default, $enable_new_services = $facts['os_service_default'],
$purge_config = false, $purge_config = false,
$enable_force_upload = $::os_service_default, $enable_force_upload = $facts['os_service_default'],
$cinder_internal_tenant_project_id = $::os_service_default, $cinder_internal_tenant_project_id = $facts['os_service_default'],
$cinder_internal_tenant_user_id = $::os_service_default, $cinder_internal_tenant_user_id = $facts['os_service_default'],
) inherits cinder::params { ) inherits cinder::params {
include cinder::deps include cinder::deps

View File

@ -6,10 +6,10 @@
# #
# [*backend*] # [*backend*]
# (Optional) Specify the key manager implementation. # (Optional) Specify the key manager implementation.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class cinder::key_manager ( class cinder::key_manager (
$backend = $::os_service_default, $backend = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -6,46 +6,46 @@
# #
# [*barbican_endpoint*] # [*barbican_endpoint*]
# (Optional) Use this endpoint to connect to Barbican. # (Optional) Use this endpoint to connect to Barbican.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*barbican_api_version*] # [*barbican_api_version*]
# (Optional) Version of the Barbican API. # (Optional) Version of the Barbican API.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*auth_endpoint*] # [*auth_endpoint*]
# (Optional) Use this endpoint to connect to Keystone. # (Optional) Use this endpoint to connect to Keystone.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*retry_delay*] # [*retry_delay*]
# (Optional) Number of seconds to wait before retrying poll for key creation # (Optional) Number of seconds to wait before retrying poll for key creation
# completion. # completion.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*number_of_retries*] # [*number_of_retries*]
# (Optional) Number of times to retry poll fo key creation completion. # (Optional) Number of times to retry poll fo key creation completion.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*barbican_endpoint_type*] # [*barbican_endpoint_type*]
# (Optional) Specifies the type of endpoint. # (Optional) Specifies the type of endpoint.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*barbican_region_name*] # [*barbican_region_name*]
# (Optional) Specifies the region of the chosen endpoint. # (Optional) Specifies the region of the chosen endpoint.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*send_service_user_token*] # [*send_service_user_token*]
# (Optional) The service uses service token feature when this is set as true. # (Optional) The service uses service token feature when this is set as true.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class cinder::key_manager::barbican ( class cinder::key_manager::barbican (
$barbican_endpoint = $::os_service_default, $barbican_endpoint = $facts['os_service_default'],
$barbican_api_version = $::os_service_default, $barbican_api_version = $facts['os_service_default'],
$auth_endpoint = $::os_service_default, $auth_endpoint = $facts['os_service_default'],
$retry_delay = $::os_service_default, $retry_delay = $facts['os_service_default'],
$number_of_retries = $::os_service_default, $number_of_retries = $facts['os_service_default'],
$barbican_endpoint_type = $::os_service_default, $barbican_endpoint_type = $facts['os_service_default'],
$barbican_region_name = $::os_service_default, $barbican_region_name = $facts['os_service_default'],
$send_service_user_token = $::os_service_default, $send_service_user_token = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -29,13 +29,13 @@
# #
# [*system_scope*] # [*system_scope*]
# (Optional) Scope for system operations. # (Optional) Scope for system operations.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*insecure*] # [*insecure*]
# (Optional) If true, explicitly allow TLS without checking server cert # (Optional) If true, explicitly allow TLS without checking server cert
# against any certificate authorities. WARNING: not recommended. Use with # against any certificate authorities. WARNING: not recommended. Use with
# caution. # caution.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*auth_type*] # [*auth_type*]
# (Optional) Authentication type to load # (Optional) Authentication type to load
@ -43,24 +43,24 @@
# #
# [*auth_version*] # [*auth_version*]
# (Optional) API version of the admin Identity API endpoint. # (Optional) API version of the admin Identity API endpoint.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*cafile*] # [*cafile*]
# (Optional) A PEM encoded Certificate Authority to use when verifying HTTPs # (Optional) A PEM encoded Certificate Authority to use when verifying HTTPs
# connections. # connections.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*certfile*] # [*certfile*]
# (Optional) Required if identity server requires client certificate # (Optional) Required if identity server requires client certificate
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*keyfile*] # [*keyfile*]
# (Optional) Required if identity server requires client certificate # (Optional) Required if identity server requires client certificate
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*region_name*] # [*region_name*]
# (Optional) The region in which the identity server can be found. # (Optional) The region in which the identity server can be found.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
class cinder::key_manager::barbican::service_user( class cinder::key_manager::barbican::service_user(
$password, $password,
@ -69,14 +69,14 @@ class cinder::key_manager::barbican::service_user(
$project_name = 'services', $project_name = 'services',
$user_domain_name = 'Default', $user_domain_name = 'Default',
$project_domain_name = 'Default', $project_domain_name = 'Default',
$system_scope = $::os_service_default, $system_scope = $facts['os_service_default'],
$insecure = $::os_service_default, $insecure = $facts['os_service_default'],
$auth_type = 'password', $auth_type = 'password',
$auth_version = $::os_service_default, $auth_version = $facts['os_service_default'],
$cafile = $::os_service_default, $cafile = $facts['os_service_default'],
$certfile = $::os_service_default, $certfile = $facts['os_service_default'],
$keyfile = $::os_service_default, $keyfile = $facts['os_service_default'],
$region_name = $::os_service_default, $region_name = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -10,7 +10,7 @@
# #
# [*password*] # [*password*]
# (Optional) Password to create for the service user # (Optional) Password to create for the service user
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*auth_url*] # [*auth_url*]
# (Optional) The URL to use for authentication. # (Optional) The URL to use for authentication.
@ -30,17 +30,17 @@
# #
# [*system_scope*] # [*system_scope*]
# (Optional) Scope for system operations # (Optional) Scope for system operations
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*insecure*] # [*insecure*]
# (Optional) If true, explicitly allow TLS without checking server cert # (Optional) If true, explicitly allow TLS without checking server cert
# against any certificate authorities. WARNING: not recommended. Use with # against any certificate authorities. WARNING: not recommended. Use with
# caution. # caution.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*auth_section*] # [*auth_section*]
# (Optional) Config Section from which to load plugin specific options # (Optional) Config Section from which to load plugin specific options
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*auth_type*] # [*auth_type*]
# (Optional) Authentication type to load # (Optional) Authentication type to load
@ -52,26 +52,26 @@
# #
# [*auth_version*] # [*auth_version*]
# (Optional) API version of the admin Identity API endpoint. # (Optional) API version of the admin Identity API endpoint.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*cache*] # [*cache*]
# (Optional) Env key for the swift cache. # (Optional) Env key for the swift cache.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*cafile*] # [*cafile*]
# (Optional) A PEM encoded Certificate Authority to use when verifying HTTPs # (Optional) A PEM encoded Certificate Authority to use when verifying HTTPs
# connections. # connections.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*certfile*] # [*certfile*]
# (Optional) Required if identity server requires client certificate # (Optional) Required if identity server requires client certificate
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*delay_auth_decision*] # [*delay_auth_decision*]
# (Optional) Do not handle authorization requests within the middleware, but # (Optional) Do not handle authorization requests within the middleware, but
# delegate the authorization decision to downstream WSGI components. Boolean # delegate the authorization decision to downstream WSGI components. Boolean
# value # value
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*enforce_token_bind*] # [*enforce_token_bind*]
# (Optional) Used to control the use and type of token binding. Can be set # (Optional) Used to control the use and type of token binding. Can be set
@ -81,60 +81,60 @@
# type is unknown the token will be rejected. "required" any form of token # type is unknown the token will be rejected. "required" any form of token
# binding is needed to be allowed. Finally the name of a binding method that # binding is needed to be allowed. Finally the name of a binding method that
# must be present in tokens. String value. # must be present in tokens. String value.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*http_connect_timeout*] # [*http_connect_timeout*]
# (Optional) Request timeout value for communicating with Identity API # (Optional) Request timeout value for communicating with Identity API
# server. # server.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*http_request_max_retries*] # [*http_request_max_retries*]
# (Optional) How many times are we trying to reconnect when communicating # (Optional) How many times are we trying to reconnect when communicating
# with Identity API Server. Integer value # with Identity API Server. Integer value
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*include_service_catalog*] # [*include_service_catalog*]
# (Optional) Indicate whether to set the X-Service-Catalog header. If False, # (Optional) Indicate whether to set the X-Service-Catalog header. If False,
# middleware will not ask for service catalog on token validation and will # middleware will not ask for service catalog on token validation and will
# not # not
# set the X-Service-Catalog header. Boolean value. # set the X-Service-Catalog header. Boolean value.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*keyfile*] # [*keyfile*]
# (Optional) Required if identity server requires client certificate # (Optional) Required if identity server requires client certificate
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*memcache_pool_conn_get_timeout*] # [*memcache_pool_conn_get_timeout*]
# (Optional) Number of seconds that an operation will wait to get a memcached # (Optional) Number of seconds that an operation will wait to get a memcached
# client connection from the pool. Integer value # client connection from the pool. Integer value
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*memcache_pool_dead_retry*] # [*memcache_pool_dead_retry*]
# (Optional) Number of seconds memcached server is considered dead before it # (Optional) Number of seconds memcached server is considered dead before it
# is tried again. Integer value # is tried again. Integer value
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*memcache_pool_maxsize*] # [*memcache_pool_maxsize*]
# (Optional) Maximum total number of open connections to every memcached # (Optional) Maximum total number of open connections to every memcached
# server. Integer value # server. Integer value
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*memcache_pool_socket_timeout*] # [*memcache_pool_socket_timeout*]
# (Optional) Number of seconds a connection to memcached is held unused in # (Optional) Number of seconds a connection to memcached is held unused in
# the # the
# pool before it is closed. Integer value # pool before it is closed. Integer value
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*memcache_pool_unused_timeout*] # [*memcache_pool_unused_timeout*]
# (Optional) Number of seconds a connection to memcached is held unused in # (Optional) Number of seconds a connection to memcached is held unused in
# the # the
# pool before it is closed. Integer value # pool before it is closed. Integer value
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*memcache_secret_key*] # [*memcache_secret_key*]
# (Optional, mandatory if memcache_security_strategy is defined) This string # (Optional, mandatory if memcache_security_strategy is defined) This string
# is used for key derivation. # is used for key derivation.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*memcache_security_strategy*] # [*memcache_security_strategy*]
# (Optional) If defined, indicate whether token data should be authenticated # (Optional) If defined, indicate whether token data should be authenticated
@ -144,17 +144,17 @@
# in the cache. If ENCRYPT, token data is encrypted and authenticated in the # in the cache. If ENCRYPT, token data is encrypted and authenticated in the
# cache. If the value is not one of these options or empty, auth_token will # cache. If the value is not one of these options or empty, auth_token will
# raise an exception on initialization. # raise an exception on initialization.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*memcache_use_advanced_pool*] # [*memcache_use_advanced_pool*]
# (Optional) Use the advanced (eventlet safe) memcached client pool. The # (Optional) Use the advanced (eventlet safe) memcached client pool. The
# advanced pool will only work under python 2.x Boolean value # advanced pool will only work under python 2.x Boolean value
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*memcached_servers*] # [*memcached_servers*]
# (Optional) Optionally specify a list of memcached server(s) to use for # (Optional) Optionally specify a list of memcached server(s) to use for
# caching. If left undefined, tokens will instead be cached in-process. # caching. If left undefined, tokens will instead be cached in-process.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*manage_memcache_package*] # [*manage_memcache_package*]
# (Optional) Whether to install the python-memcache package. # (Optional) Whether to install the python-memcache package.
@ -162,13 +162,13 @@
# #
# [*region_name*] # [*region_name*]
# (Optional) The region in which the identity server can be found. # (Optional) The region in which the identity server can be found.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*token_cache_time*] # [*token_cache_time*]
# (Optional) In order to prevent excessive effort spent validating tokens, # (Optional) In order to prevent excessive effort spent validating tokens,
# the middleware caches previously-seen tokens for a configurable duration # the middleware caches previously-seen tokens for a configurable duration
# (in seconds). Set to -1 to disable caching completely. Integer value # (in seconds). Set to -1 to disable caching completely. Integer value
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*service_token_roles*] # [*service_token_roles*]
# (Optional) A choice of roles that must be present in a service token. # (Optional) A choice of roles that must be present in a service token.
@ -178,23 +178,23 @@
# here are applied as an ANY check so any role in this list # here are applied as an ANY check so any role in this list
# must be present. For backwards compatibility reasons this # must be present. For backwards compatibility reasons this
# currently only affects the allow_expired check. (list value) # currently only affects the allow_expired check. (list value)
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*service_token_roles_required*] # [*service_token_roles_required*]
# (optional) backwards compatibility to ensure that the service tokens are # (optional) backwards compatibility to ensure that the service tokens are
# compared against a list of possible roles for validity # compared against a list of possible roles for validity
# true/false # true/false
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*service_type*] # [*service_type*]
# (Optional) The name or type of the service as it appears in the service # (Optional) The name or type of the service as it appears in the service
# catalog. This is used to validate tokens that have restricted access rules. # catalog. This is used to validate tokens that have restricted access rules.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*interface*] # [*interface*]
# (Optional) Interface to use for the Identity API endpoint. Valid values are # (Optional) Interface to use for the Identity API endpoint. Valid values are
# "public", "internal" or "admin". # "public", "internal" or "admin".
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*params*] # [*params*]
# (Optional) Hash of additional parameters to pass through to the keystone # (Optional) Hash of additional parameters to pass through to the keystone
@ -202,42 +202,42 @@
# #
class cinder::keystone::authtoken( class cinder::keystone::authtoken(
$username = 'cinder', $username = 'cinder',
$password = $::os_service_default, $password = $facts['os_service_default'],
$auth_url = 'http://localhost:5000', $auth_url = 'http://localhost:5000',
$project_name = 'services', $project_name = 'services',
$user_domain_name = 'Default', $user_domain_name = 'Default',
$project_domain_name = 'Default', $project_domain_name = 'Default',
$system_scope = $::os_service_default, $system_scope = $facts['os_service_default'],
$insecure = $::os_service_default, $insecure = $facts['os_service_default'],
$auth_section = $::os_service_default, $auth_section = $facts['os_service_default'],
$auth_type = 'password', $auth_type = 'password',
$www_authenticate_uri = 'http://localhost:5000', $www_authenticate_uri = 'http://localhost:5000',
$auth_version = $::os_service_default, $auth_version = $facts['os_service_default'],
$cache = $::os_service_default, $cache = $facts['os_service_default'],
$cafile = $::os_service_default, $cafile = $facts['os_service_default'],
$certfile = $::os_service_default, $certfile = $facts['os_service_default'],
$delay_auth_decision = $::os_service_default, $delay_auth_decision = $facts['os_service_default'],
$enforce_token_bind = $::os_service_default, $enforce_token_bind = $facts['os_service_default'],
$http_connect_timeout = $::os_service_default, $http_connect_timeout = $facts['os_service_default'],
$http_request_max_retries = $::os_service_default, $http_request_max_retries = $facts['os_service_default'],
$include_service_catalog = $::os_service_default, $include_service_catalog = $facts['os_service_default'],
$keyfile = $::os_service_default, $keyfile = $facts['os_service_default'],
$memcache_pool_conn_get_timeout = $::os_service_default, $memcache_pool_conn_get_timeout = $facts['os_service_default'],
$memcache_pool_dead_retry = $::os_service_default, $memcache_pool_dead_retry = $facts['os_service_default'],
$memcache_pool_maxsize = $::os_service_default, $memcache_pool_maxsize = $facts['os_service_default'],
$memcache_pool_socket_timeout = $::os_service_default, $memcache_pool_socket_timeout = $facts['os_service_default'],
$memcache_pool_unused_timeout = $::os_service_default, $memcache_pool_unused_timeout = $facts['os_service_default'],
$memcache_secret_key = $::os_service_default, $memcache_secret_key = $facts['os_service_default'],
$memcache_security_strategy = $::os_service_default, $memcache_security_strategy = $facts['os_service_default'],
$memcache_use_advanced_pool = $::os_service_default, $memcache_use_advanced_pool = $facts['os_service_default'],
$memcached_servers = $::os_service_default, $memcached_servers = $facts['os_service_default'],
$manage_memcache_package = false, $manage_memcache_package = false,
$region_name = $::os_service_default, $region_name = $facts['os_service_default'],
$token_cache_time = $::os_service_default, $token_cache_time = $facts['os_service_default'],
$service_token_roles = $::os_service_default, $service_token_roles = $facts['os_service_default'],
$service_token_roles_required = $::os_service_default, $service_token_roles_required = $facts['os_service_default'],
$service_type = $::os_service_default, $service_type = $facts['os_service_default'],
$interface = $::os_service_default, $interface = $facts['os_service_default'],
$params = {}, $params = {},
) { ) {

View File

@ -10,7 +10,7 @@
# #
# [*password*] # [*password*]
# (Optional) Password to create for the service user # (Optional) Password to create for the service user
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*auth_url*] # [*auth_url*]
# (Optional) The URL to use for authentication. # (Optional) The URL to use for authentication.
@ -30,7 +30,7 @@
# #
# [*system_scope*] # [*system_scope*]
# (Optional) Scope for system operations # (Optional) Scope for system operations
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*send_service_user_token*] # [*send_service_user_token*]
# (Optional) The service uses service token feature when this is set as true # (Optional) The service uses service token feature when this is set as true
@ -40,7 +40,7 @@
# (Optional) If true, explicitly allow TLS without checking server cert # (Optional) If true, explicitly allow TLS without checking server cert
# against any certificate authorities. WARNING: not recommended. Use with # against any certificate authorities. WARNING: not recommended. Use with
# caution. # caution.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*auth_type*] # [*auth_type*]
# (Optional) Authentication type to load # (Optional) Authentication type to load
@ -48,41 +48,41 @@
# #
# [*auth_version*] # [*auth_version*]
# (Optional) API version of the admin Identity API endpoint. # (Optional) API version of the admin Identity API endpoint.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*cafile*] # [*cafile*]
# (Optional) A PEM encoded Certificate Authority to use when verifying HTTPs # (Optional) A PEM encoded Certificate Authority to use when verifying HTTPs
# connections. # connections.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*certfile*] # [*certfile*]
# (Optional) Required if identity server requires client certificate # (Optional) Required if identity server requires client certificate
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*keyfile*] # [*keyfile*]
# (Optional) Required if identity server requires client certificate # (Optional) Required if identity server requires client certificate
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*region_name*] # [*region_name*]
# (Optional) The region in which the identity server can be found. # (Optional) The region in which the identity server can be found.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
class cinder::keystone::service_user( class cinder::keystone::service_user(
$username = 'cinder', $username = 'cinder',
$password = $::os_service_default, $password = $facts['os_service_default'],
$auth_url = 'http://localhost:5000', $auth_url = 'http://localhost:5000',
$project_name = 'services', $project_name = 'services',
$user_domain_name = 'Default', $user_domain_name = 'Default',
$project_domain_name = 'Default', $project_domain_name = 'Default',
$system_scope = $::os_service_default, $system_scope = $facts['os_service_default'],
$send_service_user_token = false, $send_service_user_token = false,
$insecure = $::os_service_default, $insecure = $facts['os_service_default'],
$auth_type = 'password', $auth_type = 'password',
$auth_version = $::os_service_default, $auth_version = $facts['os_service_default'],
$cafile = $::os_service_default, $cafile = $facts['os_service_default'],
$certfile = $::os_service_default, $certfile = $facts['os_service_default'],
$keyfile = $::os_service_default, $keyfile = $facts['os_service_default'],
$region_name = $::os_service_default, $region_name = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -5,72 +5,72 @@
# === Parameters # === Parameters
# [*debug*] # [*debug*]
# (Optional) Should the daemons log debug messages # (Optional) Should the daemons log debug messages
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*use_syslog*] # [*use_syslog*]
# (Optional) Use syslog for logging. # (Optional) Use syslog for logging.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*use_json*] # [*use_json*]
# (Optional) Use json for logging. # (Optional) Use json for logging.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*use_journal*] # [*use_journal*]
# (Optional) Use journal for logging. # (Optional) Use journal for logging.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*use_stderr*] # [*use_stderr*]
# (Optional) Use stderr for logging # (Optional) Use stderr for logging
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*log_facility*] # [*log_facility*]
# (Optional) Syslog facility to receive log lines. # (Optional) Syslog facility to receive log lines.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*log_dir*] # [*log_dir*]
# (Optional) Directory where logs should be stored. # (Optional) Directory where logs should be stored.
# If set to boolean false or $::os_service_default, it will not log to any # If set to boolean false or $facts['os_service_default'], it will not log to any
# directory. # directory.
# Defaults to '/var/log/cinder' # Defaults to '/var/log/cinder'
# #
# [*log_file*] # [*log_file*]
# (Optional) File where logs should be stored. # (Optional) File where logs should be stored.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*watch_log_file*] # [*watch_log_file*]
# (Optional) Uses logging handler designed to watch file system (boolean value). # (Optional) Uses logging handler designed to watch file system (boolean value).
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*logging_context_format_string*] # [*logging_context_format_string*]
# (Optional) Format string to use for log messages with context. # (Optional) Format string to use for log messages with context.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# Example: '%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s\ # Example: '%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s\
# [%(request_id)s %(user_identity)s] %(instance)s%(message)s' # [%(request_id)s %(user_identity)s] %(instance)s%(message)s'
# #
# [*logging_default_format_string*] # [*logging_default_format_string*]
# (Optional) Format string to use for log messages without context. # (Optional) Format string to use for log messages without context.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# Example: '%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s\ # Example: '%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s\
# [-] %(instance)s%(message)s' # [-] %(instance)s%(message)s'
# #
# [*logging_debug_format_suffix*] # [*logging_debug_format_suffix*]
# (Optional) Formatted data to append to log format when level is DEBUG. # (Optional) Formatted data to append to log format when level is DEBUG.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# Example: '%(funcName)s %(pathname)s:%(lineno)d' # Example: '%(funcName)s %(pathname)s:%(lineno)d'
# #
# [*logging_exception_prefix*] # [*logging_exception_prefix*]
# (Optional) Prefix each line of exception output with this format. # (Optional) Prefix each line of exception output with this format.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# Example: '%(asctime)s.%(msecs)03d %(process)d TRACE %(name)s %(instance)s' # Example: '%(asctime)s.%(msecs)03d %(process)d TRACE %(name)s %(instance)s'
# #
# [*log_config_append*] # [*log_config_append*]
# (Optional) The name of an additional logging configuration file. # (Optional) The name of an additional logging configuration file.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# See https://docs.python.org/2/howto/logging.html # See https://docs.python.org/2/howto/logging.html
# #
# [*default_log_levels*] # [*default_log_levels*]
# (Optional) Hash of logger (keys) and level (values) pairs. # (Optional) Hash of logger (keys) and level (values) pairs.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# Example: # Example:
# { 'amqp' => 'WARN', 'amqplib' => 'WARN', 'boto' => 'WARN', # { 'amqp' => 'WARN', 'amqplib' => 'WARN', 'boto' => 'WARN',
# 'sqlalchemy' => 'WARN', 'suds' => 'INFO', 'iso8601' => 'WARN', # 'sqlalchemy' => 'WARN', 'suds' => 'INFO', 'iso8601' => 'WARN',
@ -78,50 +78,50 @@
# #
# [*publish_errors*] # [*publish_errors*]
# (Optional) Publish error events (boolean value). # (Optional) Publish error events (boolean value).
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*fatal_deprecations*] # [*fatal_deprecations*]
# (Optional) Make deprecations fatal (boolean value) # (Optional) Make deprecations fatal (boolean value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*instance_format*] # [*instance_format*]
# (Optional) If an instance is passed with the log message, format it # (Optional) If an instance is passed with the log message, format it
# like this (string value). # like this (string value).
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# Example: '[instance: %(uuid)s] ' # Example: '[instance: %(uuid)s] '
# #
# [*instance_uuid_format*] # [*instance_uuid_format*]
# (Optional) If an instance UUID is passed with the log message, format # (Optional) If an instance UUID is passed with the log message, format
# it like this (string value). # it like this (string value).
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# Example: instance_uuid_format='[instance: %(uuid)s] ' # Example: instance_uuid_format='[instance: %(uuid)s] '
# #
# [*log_date_format*] # [*log_date_format*]
# (Optional) Format string for %%(asctime)s in log records. # (Optional) Format string for %%(asctime)s in log records.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# Example: 'Y-%m-%d %H:%M:%S' # Example: 'Y-%m-%d %H:%M:%S'
# #
class cinder::logging( class cinder::logging(
$use_syslog = $::os_service_default, $use_syslog = $facts['os_service_default'],
$use_json = $::os_service_default, $use_json = $facts['os_service_default'],
$use_journal = $::os_service_default, $use_journal = $facts['os_service_default'],
$use_stderr = $::os_service_default, $use_stderr = $facts['os_service_default'],
$log_facility = $::os_service_default, $log_facility = $facts['os_service_default'],
$log_dir = '/var/log/cinder', $log_dir = '/var/log/cinder',
$log_file = $::os_service_default, $log_file = $facts['os_service_default'],
$watch_log_file = $::os_service_default, $watch_log_file = $facts['os_service_default'],
$debug = $::os_service_default, $debug = $facts['os_service_default'],
$logging_context_format_string = $::os_service_default, $logging_context_format_string = $facts['os_service_default'],
$logging_default_format_string = $::os_service_default, $logging_default_format_string = $facts['os_service_default'],
$logging_debug_format_suffix = $::os_service_default, $logging_debug_format_suffix = $facts['os_service_default'],
$logging_exception_prefix = $::os_service_default, $logging_exception_prefix = $facts['os_service_default'],
$log_config_append = $::os_service_default, $log_config_append = $facts['os_service_default'],
$default_log_levels = $::os_service_default, $default_log_levels = $facts['os_service_default'],
$publish_errors = $::os_service_default, $publish_errors = $facts['os_service_default'],
$fatal_deprecations = $::os_service_default, $fatal_deprecations = $facts['os_service_default'],
$instance_format = $::os_service_default, $instance_format = $facts['os_service_default'],
$instance_uuid_format = $::os_service_default, $instance_uuid_format = $facts['os_service_default'],
$log_date_format = $::os_service_default, $log_date_format = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -6,58 +6,58 @@
# #
# [*region_name*] # [*region_name*]
# (Optional) Name of nova region to use. # (Optional) Name of nova region to use.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*interface*] # [*interface*]
# (Optional) Type of the nova endpoint to use. # (Optional) Type of the nova endpoint to use.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*token_auth_url*] # [*token_auth_url*]
# (Optional) The authentication URL for the nova # (Optional) The authentication URL for the nova
# connection when using the current users token. # connection when using the current users token.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*cafile*] # [*cafile*]
# (Optional) PEM encoded Certificate Authority to use # (Optional) PEM encoded Certificate Authority to use
# when verifying HTTPs connections. # when verifying HTTPs connections.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*certfile*] # [*certfile*]
# (Optional) PEM encoded client certificate cert file. # (Optional) PEM encoded client certificate cert file.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*keyfile*] # [*keyfile*]
# (Optional) PEM encoded client certificate key file. # (Optional) PEM encoded client certificate key file.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*insecure*] # [*insecure*]
# (Optional) Verify HTTPS connections. # (Optional) Verify HTTPS connections.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*timeout*] # [*timeout*]
# (Optional) Timeout value for http requests. # (Optional) Timeout value for http requests.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*collect_timing*] # [*collect_timing*]
# (Optional) Collect per-API call timing information. # (Optional) Collect per-API call timing information.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*split_loggers*] # [*split_loggers*]
# (Optional) Log requests to multiple loggers. # (Optional) Log requests to multiple loggers.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*auth_type*] # [*auth_type*]
# (Optional) Authentication type to load. # (Optional) Authentication type to load.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*auth_section*] # [*auth_section*]
# (Optional) Config Section from which to load plugin # (Optional) Config Section from which to load plugin
# specific options. # specific options.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*auth_url*] # [*auth_url*]
# (Optional) Identity service url. # (Optional) Identity service url.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*username*] # [*username*]
# (Optional) Nova admin username. # (Optional) Nova admin username.
@ -69,7 +69,7 @@
# #
# [*password*] # [*password*]
# (Optional) Nova admin password. # (Optional) Nova admin password.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*project_name*] # [*project_name*]
# (Optional) Nova admin project name. # (Optional) Nova admin project name.
@ -81,28 +81,28 @@
# #
# [*system_scope*] # [*system_scope*]
# (Optional) Scope for system operations # (Optional) Scope for system operations
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class cinder::nova ( class cinder::nova (
$region_name = $::os_service_default, $region_name = $facts['os_service_default'],
$interface = $::os_service_default, $interface = $facts['os_service_default'],
$token_auth_url = $::os_service_default, $token_auth_url = $facts['os_service_default'],
$cafile = $::os_service_default, $cafile = $facts['os_service_default'],
$certfile = $::os_service_default, $certfile = $facts['os_service_default'],
$keyfile = $::os_service_default, $keyfile = $facts['os_service_default'],
$insecure = $::os_service_default, $insecure = $facts['os_service_default'],
$timeout = $::os_service_default, $timeout = $facts['os_service_default'],
$collect_timing = $::os_service_default, $collect_timing = $facts['os_service_default'],
$split_loggers = $::os_service_default, $split_loggers = $facts['os_service_default'],
$auth_type = $::os_service_default, $auth_type = $facts['os_service_default'],
$auth_section = $::os_service_default, $auth_section = $facts['os_service_default'],
$auth_url = $::os_service_default, $auth_url = $facts['os_service_default'],
$username = 'nova', $username = 'nova',
$user_domain_name = 'Default', $user_domain_name = 'Default',
$password = $::os_service_default, $password = $facts['os_service_default'],
$project_name = 'services', $project_name = 'services',
$project_domain_name = 'Default', $project_domain_name = 'Default',
$system_scope = $::os_service_default, $system_scope = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps
@ -111,8 +111,8 @@ class cinder::nova (
$project_name_real = $project_name $project_name_real = $project_name
$project_domain_name_real = $project_domain_name $project_domain_name_real = $project_domain_name
} else { } else {
$project_name_real = $::os_service_default $project_name_real = $facts['os_service_default']
$project_domain_name_real = $::os_service_default $project_domain_name_real = $facts['os_service_default']
} }
cinder_config { cinder_config {

View File

@ -6,10 +6,10 @@
# #
# [*lock_path*] # [*lock_path*]
# (Optional) Directory to use for os-brick lock files. # (Optional) Directory to use for os-brick lock files.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class cinder::os_brick( class cinder::os_brick(
$lock_path = $::os_service_default, $lock_path = $facts['os_service_default'],
) { ) {
oslo::os_brick { 'cinder_config': oslo::os_brick { 'cinder_config':

View File

@ -10,50 +10,51 @@ class cinder::params {
$group = 'cinder' $group = 'cinder'
$cinder_wsgi_script_source = '/usr/bin/cinder-wsgi' $cinder_wsgi_script_source = '/usr/bin/cinder-wsgi'
if $::osfamily == 'Debian' { case $facts['os']['family'] {
$package_name = 'cinder-common' 'Debian': {
$api_package = 'cinder-api' $package_name = 'cinder-common'
$api_service = 'cinder-api' $api_package = 'cinder-api'
$backup_package = 'cinder-backup' $api_service = 'cinder-api'
$backup_service = 'cinder-backup' $backup_package = 'cinder-backup'
$scheduler_package = 'cinder-scheduler' $backup_service = 'cinder-backup'
$scheduler_service = 'cinder-scheduler' $scheduler_package = 'cinder-scheduler'
$volume_package = 'cinder-volume' $scheduler_service = 'cinder-scheduler'
$volume_service = 'cinder-volume' $volume_package = 'cinder-volume'
$db_sync_command = 'cinder-manage db sync' $volume_service = 'cinder-volume'
$tgt_package_name = 'tgt' $db_sync_command = 'cinder-manage db sync'
$tgt_service_name = 'tgt' $tgt_package_name = 'tgt'
$ceph_init_override = '/etc/default/cinder-volume' $tgt_service_name = 'tgt'
$ceph_common_package_name = 'ceph-common' $ceph_init_override = '/etc/default/cinder-volume'
$target_helper = 'tgtadm' $ceph_common_package_name = 'ceph-common'
$lio_package_name = 'targetcli' $target_helper = 'tgtadm'
$lock_path = '/var/lock/cinder' $lio_package_name = 'targetcli'
$cinder_wsgi_script_path = '/usr/lib/cgi-bin/cinder' $lock_path = '/var/lock/cinder'
$pywbem_package_name = 'python-pywbem' $cinder_wsgi_script_path = '/usr/lib/cgi-bin/cinder'
$pywbem_package_name = 'python-pywbem'
} elsif($::osfamily == 'RedHat') { }
'RedHat': {
$package_name = 'openstack-cinder' $package_name = 'openstack-cinder'
$api_package = false $api_package = false
$api_service = 'openstack-cinder-api' $api_service = 'openstack-cinder-api'
$backup_package = false $backup_package = false
$backup_service = 'openstack-cinder-backup' $backup_service = 'openstack-cinder-backup'
$scheduler_package = false $scheduler_package = false
$scheduler_service = 'openstack-cinder-scheduler' $scheduler_service = 'openstack-cinder-scheduler'
$volume_package = false $volume_package = false
$volume_service = 'openstack-cinder-volume' $volume_service = 'openstack-cinder-volume'
$db_sync_command = 'cinder-manage db sync' $db_sync_command = 'cinder-manage db sync'
$tgt_package_name = 'scsi-target-utils' $tgt_package_name = 'scsi-target-utils'
$tgt_service_name = 'tgtd' $tgt_service_name = 'tgtd'
$ceph_init_override = '/etc/sysconfig/openstack-cinder-volume' $ceph_init_override = '/etc/sysconfig/openstack-cinder-volume'
$ceph_common_package_name = 'ceph-common' $ceph_common_package_name = 'ceph-common'
$target_helper = 'lioadm' $target_helper = 'lioadm'
$lio_package_name = 'targetcli' $lio_package_name = 'targetcli'
$lock_path = '/var/lib/cinder/tmp' $lock_path = '/var/lib/cinder/tmp'
$cinder_wsgi_script_path = '/var/www/cgi-bin/cinder' $cinder_wsgi_script_path = '/var/www/cgi-bin/cinder'
$pywbem_package_name = 'pywbem' $pywbem_package_name = 'pywbem'
}
} else { default: {
fail("unsupported osfamily ${::osfamily}, currently Debian and Redhat are the only supported platforms") fail("Unsupported osfamily: ${facts['os']['family']}")
}
} }
} }

View File

@ -6,12 +6,12 @@
# #
# [*enforce_scope*] # [*enforce_scope*]
# (Optional) Whether or not to enforce scope when evaluating policies. # (Optional) Whether or not to enforce scope when evaluating policies.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*enforce_new_defaults*] # [*enforce_new_defaults*]
# (Optional) Whether or not to use old deprecated defaults when evaluating # (Optional) Whether or not to use old deprecated defaults when evaluating
# policies. # policies.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*policies*] # [*policies*]
# (Optional) Set of policies to configure for cinder # (Optional) Set of policies to configure for cinder
@ -34,11 +34,11 @@
# #
# [*policy_default_rule*] # [*policy_default_rule*]
# (Optional) Default rule. Enforced when a requested rule is not found. # (Optional) Default rule. Enforced when a requested rule is not found.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*policy_dirs*] # [*policy_dirs*]
# (Optional) Path to the cinder policy folder # (Optional) Path to the cinder policy folder
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*purge_config*] # [*purge_config*]
# (optional) Whether to set only the specified policy rules in the policy # (optional) Whether to set only the specified policy rules in the policy
@ -46,12 +46,12 @@
# Defaults to false. # Defaults to false.
# #
class cinder::policy ( class cinder::policy (
$enforce_scope = $::os_service_default, $enforce_scope = $facts['os_service_default'],
$enforce_new_defaults = $::os_service_default, $enforce_new_defaults = $facts['os_service_default'],
$policies = {}, $policies = {},
$policy_path = '/etc/cinder/policy.yaml', $policy_path = '/etc/cinder/policy.yaml',
$policy_default_rule = $::os_service_default, $policy_default_rule = $facts['os_service_default'],
$policy_dirs = $::os_service_default, $policy_dirs = $facts['os_service_default'],
$purge_config = false, $purge_config = false,
) { ) {

View File

@ -6,41 +6,41 @@
# #
# [*quota_volumes*] # [*quota_volumes*]
# (Optional) Number of volumes allowed per project. # (Optional) Number of volumes allowed per project.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*quota_snapshots*] # [*quota_snapshots*]
# (Optional) Number of volume snapshots allowed per project. # (Optional) Number of volume snapshots allowed per project.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*quota_gigabytes*] # [*quota_gigabytes*]
# (Optional) Number of volume gigabytes (snapshots are also included) # (Optional) Number of volume gigabytes (snapshots are also included)
# allowed per project. # allowed per project.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*quota_backups*] # [*quota_backups*]
# (Optional) Number of volume backups allowed per project. # (Optional) Number of volume backups allowed per project.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*quota_backup_gigabytes*] # [*quota_backup_gigabytes*]
# (Optional) Number of backup gigabytes allowed per project. # (Optional) Number of backup gigabytes allowed per project.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*quota_driver*] # [*quota_driver*]
# (Optional) Default driver to use for quota checks. # (Optional) Default driver to use for quota checks.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*per_volume_size_limit*] # [*per_volume_size_limit*]
# (Optional) Max size allowed per volume, in gigabytes # (Optional) Max size allowed per volume, in gigabytes
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
class cinder::quota ( class cinder::quota (
$quota_volumes = $::os_service_default, $quota_volumes = $facts['os_service_default'],
$quota_snapshots = $::os_service_default, $quota_snapshots = $facts['os_service_default'],
$quota_gigabytes = $::os_service_default, $quota_gigabytes = $facts['os_service_default'],
$quota_backups = $::os_service_default, $quota_backups = $facts['os_service_default'],
$quota_backup_gigabytes = $::os_service_default, $quota_backup_gigabytes = $facts['os_service_default'],
$quota_driver = $::os_service_default, $quota_driver = $facts['os_service_default'],
$per_volume_size_limit = $::os_service_default, $per_volume_size_limit = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -6,7 +6,7 @@
# #
# [*scheduler_driver*] # [*scheduler_driver*]
# (Optional) Default scheduler driver to use # (Optional) Default scheduler driver to use
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*package_ensure*] # [*package_ensure*]
# (Optional) The state of the package. # (Optional) The state of the package.
@ -22,7 +22,7 @@
# #
# #
class cinder::scheduler ( class cinder::scheduler (
$scheduler_driver = $::os_service_default, $scheduler_driver = $facts['os_service_default'],
$package_ensure = 'present', $package_ensure = 'present',
$enabled = true, $enabled = true,
$manage_service = true $manage_service = true

View File

@ -6,25 +6,25 @@
# #
# [*scheduler_default_filters*] # [*scheduler_default_filters*]
# (Optional) A comma separated list of filters to be used by default # (Optional) A comma separated list of filters to be used by default
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*capacity_weight_multiplier*] # [*capacity_weight_multiplier*]
# (Optional) Multiplier used for weighing free capacity. # (Optional) Multiplier used for weighing free capacity.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*allocated_capacity_weight_multiplier*] # [*allocated_capacity_weight_multiplier*]
# (Optional) Multiplier used for weighing allocated capacity. # (Optional) Multiplier used for weighing allocated capacity.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*volume_number_multiplier*] # [*volume_number_multiplier*]
# (Optional) Multiplier used for weighing volume number.. # (Optional) Multiplier used for weighing volume number..
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class cinder::scheduler::filter ( class cinder::scheduler::filter (
$scheduler_default_filters = $::os_service_default, $scheduler_default_filters = $facts['os_service_default'],
$capacity_weight_multiplier = $::os_service_default, $capacity_weight_multiplier = $facts['os_service_default'],
$allocated_capacity_weight_multiplier = $::os_service_default, $allocated_capacity_weight_multiplier = $facts['os_service_default'],
$volume_number_multiplier = $::os_service_default, $volume_number_multiplier = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -16,60 +16,60 @@
# #
# [*cluster*] # [*cluster*]
# (Optional) Cluster name when running in active/active mode. # (Optional) Cluster name when running in active/active mode.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*volume_clear*] # [*volume_clear*]
# (Optional) Method used to wipe old volumes. # (Optional) Method used to wipe old volumes.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*volume_clear_size*] # [*volume_clear_size*]
# (Optional) Size in MiB to wipe at start of old volumes. # (Optional) Size in MiB to wipe at start of old volumes.
# Set to '0' means all. # Set to '0' means all.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*volume_clear_ionice*] # [*volume_clear_ionice*]
# (Optional) The flag to pass to ionice to alter the i/o priority # (Optional) The flag to pass to ionice to alter the i/o priority
# of the process used to zero a volume after deletion, # of the process used to zero a volume after deletion,
# for example "-c3" for idle only priority. # for example "-c3" for idle only priority.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*migration_create_volume_timeout_secs*] # [*migration_create_volume_timeout_secs*]
# (Optional) Timeout for creating the volume to migrate to when performing # (Optional) Timeout for creating the volume to migrate to when performing
# volume migration (seconds). # volume migration (seconds).
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*volume_service_inithost_offload*] # [*volume_service_inithost_offload*]
# (Optional) Offload pending volume delete during volume service startup. # (Optional) Offload pending volume delete during volume service startup.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*reinit_driver_count*] # [*reinit_driver_count*]
# (Optional) Maximum times to reinitialize the driver if volume # (Optional) Maximum times to reinitialize the driver if volume
# initialization fails. # initialization fails.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*init_host_max_objects_retrieval*] # [*init_host_max_objects_retrieval*]
# (Optional) Max number of volumes and snapshots to be retrieved per batch # (Optional) Max number of volumes and snapshots to be retrieved per batch
# during volume manager host initialization. # during volume manager host initialization.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*backend_stats_polling_interval*] # [*backend_stats_polling_interval*]
# (Optional) Time in seconds between requests for usage statistics from # (Optional) Time in seconds between requests for usage statistics from
# the backend. # the backend.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
class cinder::volume ( class cinder::volume (
$package_ensure = 'present', $package_ensure = 'present',
$enabled = true, $enabled = true,
$manage_service = true, $manage_service = true,
$cluster = $::os_service_default, $cluster = $facts['os_service_default'],
$volume_clear = $::os_service_default, $volume_clear = $facts['os_service_default'],
$volume_clear_size = $::os_service_default, $volume_clear_size = $facts['os_service_default'],
$volume_clear_ionice = $::os_service_default, $volume_clear_ionice = $facts['os_service_default'],
$migration_create_volume_timeout_secs = $::os_service_default, $migration_create_volume_timeout_secs = $facts['os_service_default'],
$volume_service_inithost_offload = $::os_service_default, $volume_service_inithost_offload = $facts['os_service_default'],
$reinit_driver_count = $::os_service_default, $reinit_driver_count = $facts['os_service_default'],
$init_host_max_objects_retrieval = $::os_service_default, $init_host_max_objects_retrieval = $facts['os_service_default'],
$backend_stats_polling_interval = $::os_service_default, $backend_stats_polling_interval = $facts['os_service_default'],
) { ) {
include cinder::deps include cinder::deps

View File

@ -22,7 +22,7 @@
# #
# [*servername*] # [*servername*]
# (Optional) The servername for the virtualhost. # (Optional) The servername for the virtualhost.
# Defaults to $::fqdn # Defaults to $facts['networking']['fqdn']
# #
# [*port*] # [*port*]
# (Optional) The port. # (Optional) The port.
@ -42,7 +42,7 @@
# #
# [*workers*] # [*workers*]
# (Optional) Number of WSGI workers to spawn. # (Optional) Number of WSGI workers to spawn.
# Defaults to $::os_workers # Defaults to $facts['os_workers']
# #
# [*priority*] # [*priority*]
# (Optional) The priority for the vhost. # (Optional) The priority for the vhost.
@ -128,12 +128,12 @@
# class { 'cinder::wsgi::apache': } # class { 'cinder::wsgi::apache': }
# #
class cinder::wsgi::apache ( class cinder::wsgi::apache (
$servername = $::fqdn, $servername = $facts['networking']['fqdn'],
$port = 8776, $port = 8776,
$bind_host = undef, $bind_host = undef,
$path = '/', $path = '/',
$ssl = false, $ssl = false,
$workers = $::os_workers, $workers = $facts['os_workers'],
$ssl_cert = undef, $ssl_cert = undef,
$ssl_key = undef, $ssl_key = undef,
$ssl_chain = undef, $ssl_chain = undef,

View File

@ -11,7 +11,7 @@
# #
# [*processes*] # [*processes*]
# (Optional) Number of processes. # (Optional) Number of processes.
# Defaults to $::os_workers. # Defaults to $facts['os_workers'].
# #
# [*threads*] # [*threads*]
# (Optional) Number of threads. # (Optional) Number of threads.
@ -22,14 +22,14 @@
# Defaults to 100 # Defaults to 100
# #
class cinder::wsgi::uwsgi ( class cinder::wsgi::uwsgi (
$processes = $::os_workers, $processes = $facts['os_workers'],
$threads = 32, $threads = 32,
$listen_queue_size = 100, $listen_queue_size = 100,
){ ){
include cinder::deps include cinder::deps
if $::operatingsystem != 'Debian'{ if $facts['os']['name'] != 'Debian'{
warning('This class is only valid for Debian, as other operating systems are not using uwsgi by default.') warning('This class is only valid for Debian, as other operating systems are not using uwsgi by default.')
} }

View File

@ -226,9 +226,7 @@ describe 'cinder::api' do
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge(OSDefaults.get_facts({ facts.merge(OSDefaults.get_facts({
:os_workers => 8, :os_workers => 8,
:fqdn => 'some.host.tld',
:concat_basedir => '/var/lib/puppet/concat',
})) }))
end end

View File

@ -21,7 +21,7 @@ describe 'cinder::backend::defaults' do
}).each do |os,facts| }).each do |os,facts|
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge!(OSDefaults.get_facts) facts.merge!(OSDefaults.get_facts())
end end
it_behaves_like 'cinder backend defaults' it_behaves_like 'cinder backend defaults'

View File

@ -75,7 +75,7 @@ describe 'cinder::backends' do
}).each do |os,facts| }).each do |os,facts|
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge!(OSDefaults.get_facts) facts.merge!(OSDefaults.get_facts())
end end
it_behaves_like 'cinder backends' it_behaves_like 'cinder backends'

View File

@ -73,7 +73,7 @@ describe 'cinder::backup::ceph' do
}).each do |os,facts| }).each do |os,facts|
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge(OSDefaults.get_facts({})) facts.merge(OSDefaults.get_facts())
end end
it_behaves_like 'cinder backup with ceph' it_behaves_like 'cinder backup with ceph'

View File

@ -59,7 +59,7 @@ describe 'cinder::backup::glusterfs' do
}).each do |os,facts| }).each do |os,facts|
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge(OSDefaults.get_facts({:os_workers => 8})) facts.merge(OSDefaults.get_facts())
end end
it_behaves_like 'cinder backup with glusterfs' it_behaves_like 'cinder backup with glusterfs'

View File

@ -103,7 +103,7 @@ describe 'cinder::backup::google' do
}).each do |os,facts| }).each do |os,facts|
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge(OSDefaults.get_facts({:os_workers => 8})) facts.merge(OSDefaults.get_facts())
end end
it_behaves_like 'cinder backup with google cloud storage' it_behaves_like 'cinder backup with google cloud storage'

View File

@ -70,7 +70,7 @@ describe 'cinder::backup::nfs' do
}).each do |os,facts| }).each do |os,facts|
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge(OSDefaults.get_facts({:os_workers => 8})) facts.merge(OSDefaults.get_facts())
end end
it_behaves_like 'cinder backup with nfs' it_behaves_like 'cinder backup with nfs'

View File

@ -74,7 +74,7 @@ describe 'cinder::backup::posix' do
}).each do |os,facts| }).each do |os,facts|
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge(OSDefaults.get_facts({:os_workers => 8})) facts.merge(OSDefaults.get_facts())
end end
it_behaves_like 'cinder backup with posix' it_behaves_like 'cinder backup with posix'

View File

@ -108,7 +108,7 @@ describe 'cinder::backup::s3' do
}).each do |os,facts| }).each do |os,facts|
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge(OSDefaults.get_facts({:os_workers => 8})) facts.merge(OSDefaults.get_facts())
end end
it_behaves_like 'cinder::backup::s3' it_behaves_like 'cinder::backup::s3'

View File

@ -103,11 +103,11 @@ describe 'cinder::backup' do
}).each do |os,facts| }).each do |os,facts|
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge(OSDefaults.get_facts({:os_workers => 8})) facts.merge(OSDefaults.get_facts())
end end
let :platform_params do let :platform_params do
if facts[:osfamily] == 'Debian' if facts[:os]['family'] == 'Debian'
{ :backup_package => 'cinder-backup', { :backup_package => 'cinder-backup',
:backup_service => 'cinder-backup' } :backup_service => 'cinder-backup' }
else else

View File

@ -98,7 +98,7 @@ describe 'cinder::backup::swift' do
}).each do |os,facts| }).each do |os,facts|
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge(OSDefaults.get_facts({:os_workers => 8})) facts.merge(OSDefaults.get_facts())
end end
it_behaves_like 'cinder backup with swift' it_behaves_like 'cinder backup with swift'

View File

@ -35,11 +35,11 @@ describe 'cinder::client' do
}).each do |os,facts| }).each do |os,facts|
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge(OSDefaults.get_facts({:os_workers => 8})) facts.merge(OSDefaults.get_facts())
end end
let(:platform_params) do let(:platform_params) do
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
{ :client_package_name => 'python3-cinderclient' } { :client_package_name => 'python3-cinderclient' }
when 'RedHat' when 'RedHat'

View File

@ -56,10 +56,7 @@ describe 'cinder::db::sync' do
}).each do |os,facts| }).each do |os,facts|
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge(OSDefaults.get_facts({ facts.merge(OSDefaults.get_facts())
:os_workers => 8,
:concat_basedir => '/var/lib/puppet/concat'
}))
end end
it_behaves_like 'cinder-dbsync' it_behaves_like 'cinder-dbsync'

View File

@ -125,7 +125,7 @@ describe 'cinder::logging' do
}).each do |os,facts| }).each do |os,facts|
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge(OSDefaults.get_facts({:os_workers => 8})) facts.merge(OSDefaults.get_facts())
end end
it_behaves_like 'cinder-logging' it_behaves_like 'cinder-logging'

View File

@ -49,7 +49,7 @@ describe 'cinder::quota' do
}).each do |os,facts| }).each do |os,facts|
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge(OSDefaults.get_facts({:os_workers => 8})) facts.merge(OSDefaults.get_facts())
end end
it_behaves_like 'cinder quota' it_behaves_like 'cinder quota'

View File

@ -74,7 +74,7 @@ describe 'cinder::scheduler::filter' do
}).each do |os,facts| }).each do |os,facts|
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge(OSDefaults.get_facts({:os_workers => 8})) facts.merge(OSDefaults.get_facts())
end end
it_behaves_like 'cinder scheduler filter' it_behaves_like 'cinder scheduler filter'

View File

@ -74,7 +74,7 @@ describe 'cinder::scheduler' do
facts.merge!(OSDefaults.get_facts()) facts.merge!(OSDefaults.get_facts())
end end
it_behaves_like "cinder::scheduler on #{facts[:osfamily]}" it_behaves_like "cinder::scheduler on #{facts[:os]['family']}"
end end
end end
end end

View File

@ -78,7 +78,7 @@ describe 'cinder::volume' do
it_behaves_like 'cinder::volume' it_behaves_like 'cinder::volume'
if facts[:osfamily] == 'Debian' if facts[:os]['family'] == 'Debian'
it_behaves_like 'cinder::volume on Debian' it_behaves_like 'cinder::volume on Debian'
end end
end end

View File

@ -9,7 +9,7 @@ describe 'cinder::wsgi::apache' do
:group => 'cinder', :group => 'cinder',
:path => '/', :path => '/',
:priority => 10, :priority => 10,
:servername => facts[:fqdn], :servername => 'foo.example.com',
:ssl => false, :ssl => false,
:threads => 1, :threads => 1,
:user => 'cinder', :user => 'cinder',
@ -146,14 +146,12 @@ describe 'cinder::wsgi::apache' do
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge!(OSDefaults.get_facts({ facts.merge!(OSDefaults.get_facts({
:os_workers => 42, :os_workers => 42,
:concat_basedir => '/var/lib/puppet/concat',
:fqdn => 'some.host.tld',
})) }))
end end
let(:platform_params) do let(:platform_params) do
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
{ {
:wsgi_script_path => '/usr/lib/cgi-bin/cinder', :wsgi_script_path => '/usr/lib/cgi-bin/cinder',

View File

@ -44,7 +44,7 @@ describe 'cinder::backend::quobyte' do
}).each do |os,facts| }).each do |os,facts|
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge(OSDefaults.get_facts( :os_workers => 8 )) facts.merge(OSDefaults.get_facts())
end end
it_behaves_like 'cinder::backend::quobyte' it_behaves_like 'cinder::backend::quobyte'

View File

@ -161,7 +161,7 @@ describe 'cinder::backend::rbd' do
end end
it_behaves_like 'cinder::backend::rbd' it_behaves_like 'cinder::backend::rbd'
it_behaves_like "cinder::backend::rbd on #{facts[:osfamily]}" it_behaves_like "cinder::backend::rbd on #{facts[:os]['family']}"
end end
end end
end end