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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -24,25 +24,25 @@
# (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value
# is used as the default for all backends.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*xtremio_array_busy_retry_count*]
# (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*]
# (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*]
# (optional) Number of volumes created from each cached glance image.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*xtremio_ports*]
# (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
# are allowed.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*extra_options*]
# (optional) Hash of extra options to pass to the backend stanza.
@ -68,13 +68,13 @@ define cinder::backend::dellemc_xtremio (
$san_password,
$xtremio_cluster_name,
$volume_backend_name = $name,
$backend_availability_zone = $::os_service_default,
$xtremio_array_busy_retry_count = $::os_service_default,
$xtremio_array_busy_retry_interval = $::os_service_default,
$xtremio_volumes_per_glance_cache = $::os_service_default,
$backend_availability_zone = $facts['os_service_default'],
$xtremio_array_busy_retry_count = $facts['os_service_default'],
$xtremio_array_busy_retry_interval = $facts['os_service_default'],
$xtremio_volumes_per_glance_cache = $facts['os_service_default'],
$manage_volume_type = false,
$xtremio_storage_protocol = 'iSCSI',
$xtremio_ports = $::os_service_default,
$xtremio_ports = $facts['os_service_default'],
$extra_options = {},
) {

View File

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

View File

@ -46,29 +46,29 @@
#
# [*nas_host*]
# (optional) IP address or Hostname of the NAS system.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*nas_login*]
# (optional) User name to connect to NAS system.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*nas_password*]
# (optional) Password to connect to NAS system.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*nas_private_key*]
# (optional) Filename of private key to use for SSH authentication.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*nas_ssh_port*]
# (optional) SSH port to use to connect to NAS system.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*backend_availability_zone*]
# (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value
# is used as the default for all backends.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*manage_volume_type*]
# (Optional) Whether or not manage Cinder Volume type.
@ -92,17 +92,17 @@
#
define cinder::backend::gpfs (
$gpfs_mount_point_base,
$gpfs_images_dir = $::os_service_default,
$gpfs_images_share_mode = $::os_service_default,
$gpfs_max_clone_depth = $::os_service_default,
$gpfs_sparse_volumes = $::os_service_default,
$gpfs_storage_pool = $::os_service_default,
$nas_host = $::os_service_default,
$nas_login = $::os_service_default,
$nas_password = $::os_service_default,
$nas_private_key = $::os_service_default,
$nas_ssh_port = $::os_service_default,
$backend_availability_zone = $::os_service_default,
$gpfs_images_dir = $facts['os_service_default'],
$gpfs_images_share_mode = $facts['os_service_default'],
$gpfs_max_clone_depth = $facts['os_service_default'],
$gpfs_sparse_volumes = $facts['os_service_default'],
$gpfs_storage_pool = $facts['os_service_default'],
$nas_host = $facts['os_service_default'],
$nas_login = $facts['os_service_default'],
$nas_password = $facts['os_service_default'],
$nas_private_key = $facts['os_service_default'],
$nas_ssh_port = $facts['os_service_default'],
$backend_availability_zone = $facts['os_service_default'],
$manage_volume_type = false,
$extra_options = {},
) {
@ -111,7 +111,7 @@ define cinder::backend::gpfs (
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`')
}
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.
# If not set, the storage_availability_zone option value
# is used as the default for all backends.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*volume_driver*]
# (optional) Setup cinder-volume to use HPE 3par volume driver.
@ -80,7 +80,7 @@ define cinder::backend::hpe3par_iscsi(
$san_password,
$hpe3par_iscsi_ips,
$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',
$hpe3par_iscsi_chap_enabled = false,
$hpe3par_cpg_snap = 'userCPG',

View File

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

View File

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

View File

@ -25,24 +25,24 @@
# (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value
# is used as the default for all backends.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*netapp_server_port*]
# (optional) The TCP port to use for communication with the storage
# system or proxy. If not specified, Data ONTAP drivers will use 80
# for HTTP and 443 for HTTPS;
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*netapp_size_multiplier*]
# (optional) The quantity to be multiplied by the requested volume size to
# ensure enough space is available on the virtual storage server (Vserver) to
# fulfill the volume creation request.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*netapp_storage_family*]
# (optional) The storage family type used on the storage system; valid value
# is ontap_cluster for using clustered Data ONTAP.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*netapp_storage_protocol*]
# (optional) The storage protocol to be used on the data path with the storage
@ -52,13 +52,13 @@
# [*netapp_transport_type*]
# (optional) The transport protocol used when communicating with the storage
# system or proxy server. Valid values are http or https.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*netapp_vserver*]
# (optional) This option specifies the virtual storage server (Vserver)
# name on the storage cluster on which provisioning of block storage volumes
# should occur.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*expiry_thres_minutes*]
# (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
# the value of this parameter, will be deleted from the cache to create free
# space on the NFS share.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*thres_avl_size_perc_start*]
# (optional) If the percentage of available space for an NFS share has
# dropped below the value specified by this parameter, the NFS image cache
# will be cleaned.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*thres_avl_size_perc_stop*]
# (optional) When the percentage of available space on an NFS share has
# 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
# 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*]
# (optional) Array of NFS exports in the form of host:/share; will be written into
@ -93,7 +93,7 @@
# [*nfs_mount_options*]
# (optional) Mount options passed to the nfs client. See section
# of the nfs man page for details.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*netapp_pool_name_search_pattern*]
# (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.
# ^ (beginning of string) and $ (end of string) are implicitly wrapped around
# the regular expression specified before filtering.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*netapp_host_type*]
# (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.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*nas_secure_file_operations*]
# (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
# 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.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*nas_secure_file_permissions*]
# (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
# auto, a check is done to determine if this is a new installation: True is
# used if so, otherwise False. Default is auto.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*manage_volume_type*]
# (Optional) Whether or not manage Cinder Volume type.
@ -171,25 +171,25 @@ define cinder::backend::netapp (
$netapp_password,
$netapp_server_hostname,
$volume_backend_name = $name,
$backend_availability_zone = $::os_service_default,
$netapp_server_port = $::os_service_default,
$netapp_size_multiplier = $::os_service_default,
$netapp_storage_family = $::os_service_default,
$backend_availability_zone = $facts['os_service_default'],
$netapp_server_port = $facts['os_service_default'],
$netapp_size_multiplier = $facts['os_service_default'],
$netapp_storage_family = $facts['os_service_default'],
$netapp_storage_protocol = 'nfs',
$netapp_transport_type = $::os_service_default,
$netapp_vserver = $::os_service_default,
$expiry_thres_minutes = $::os_service_default,
$thres_avl_size_perc_start = $::os_service_default,
$thres_avl_size_perc_stop = $::os_service_default,
$netapp_transport_type = $facts['os_service_default'],
$netapp_vserver = $facts['os_service_default'],
$expiry_thres_minutes = $facts['os_service_default'],
$thres_avl_size_perc_start = $facts['os_service_default'],
$thres_avl_size_perc_stop = $facts['os_service_default'],
$nfs_shares = undef,
$nfs_shares_config = '/etc/cinder/shares.conf',
$nfs_mount_options = $::os_service_default,
$netapp_host_type = $::os_service_default,
$nfs_mount_options = $facts['os_service_default'],
$netapp_host_type = $facts['os_service_default'],
$manage_volume_type = false,
$extra_options = {},
$netapp_pool_name_search_pattern = $::os_service_default,
$nas_secure_file_operations = $::os_service_default,
$nas_secure_file_permissions = $::os_service_default,
$netapp_pool_name_search_pattern = $facts['os_service_default'],
$nas_secure_file_operations = $facts['os_service_default'],
$nas_secure_file_permissions = $facts['os_service_default'],
# DEPRECATED PARAMETERS
$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_stop": value => $thres_avl_size_perc_stop;
"${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_host_type": value => $netapp_host_type;
"${name}/nas_secure_file_operations": value => $nas_secure_file_operations;

View File

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

View File

@ -10,7 +10,7 @@
# (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value
# is used as the default for all backends.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*nfs_servers*]
# (Required) Description
@ -20,21 +20,21 @@
# (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
# of the value specified.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*nfs_mount_options*]
# (Optional) Mount options passed to the nfs client.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*nfs_sparsed_volumes*]
# (Optional) Create volumes as sparsed files which take no space.
# If set to False volume is created as regular file.
# 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*]
# (Optional) Base dir containing mount points for nfs shares.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*nfs_shares_config*]
# (Optional) File with the list of available nfs shares.
@ -43,13 +43,13 @@
# [*nfs_used_ratio*]
# (Optional) Percent of ACTUAL usage of the underlying volume before no new
# volumes can be allocated to the volume destination.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*nfs_oversub_ratio*]
# (Optional) This will compare the allocated to available space on the volume
# destination. If the ratio exceeds this number, the destination will no
# longer be valid.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*nas_secure_file_operations*]
# (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
# 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.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*nas_secure_file_permissions*]
# (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
# auto, a check is done to determine if this is a new installation: True is
# used if so, otherwise False. Default is auto.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*manage_volume_type*]
# (Optional) Whether or not manage Cinder Volume type.
@ -77,11 +77,11 @@
# [*nfs_snapshot_support*]
# (Optional) Enable support for snapshots on the NFS driver.
# 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*]
# (Optional) Create volumes as QCOW2 files rather than raw files.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*extra_options*]
# (optional) Hash of extra options to pass to the backend stanza
@ -91,19 +91,19 @@
#
define cinder::backend::nfs (
$volume_backend_name = $name,
$backend_availability_zone = $::os_service_default,
$backend_availability_zone = $facts['os_service_default'],
$nfs_servers = [],
$nfs_mount_attempts = $::os_service_default,
$nfs_mount_options = $::os_service_default,
$nfs_sparsed_volumes = $::os_service_default,
$nfs_mount_point_base = $::os_service_default,
$nfs_mount_attempts = $facts['os_service_default'],
$nfs_mount_options = $facts['os_service_default'],
$nfs_sparsed_volumes = $facts['os_service_default'],
$nfs_mount_point_base = $facts['os_service_default'],
$nfs_shares_config = '/etc/cinder/shares.conf',
$nfs_used_ratio = $::os_service_default,
$nfs_oversub_ratio = $::os_service_default,
$nas_secure_file_operations = $::os_service_default,
$nas_secure_file_permissions = $::os_service_default,
$nfs_snapshot_support = $::os_service_default,
$nfs_qcow2_volumes = $::os_service_default,
$nfs_used_ratio = $facts['os_service_default'],
$nfs_oversub_ratio = $facts['os_service_default'],
$nas_secure_file_operations = $facts['os_service_default'],
$nas_secure_file_permissions = $facts['os_service_default'],
$nfs_snapshot_support = $facts['os_service_default'],
$nfs_qcow2_volumes = $facts['os_service_default'],
$manage_volume_type = false,
$extra_options = {},
) {

View File

@ -17,7 +17,7 @@
#
# [*target_prefix*]
# (Optional) Prefix for LVM volumes.
# Defaults to '$::os_service_default'.
# Defaults to '$facts['os_service_default']'.
#
# [*nvmet_port_id*]
# (Optional) Port id of the NVMe target.
@ -35,7 +35,7 @@
# (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value
# is used as the default for all backends.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*volume_driver*]
# (Optional) Driver to use for volume creation
@ -43,20 +43,20 @@
#
# [*volume_group*]
# (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 (
$target_ip_address,
$target_port,
$target_helper,
$target_protocol,
$target_prefix = $::os_service_default,
$target_prefix = $facts['os_service_default'],
$nvmet_port_id = '1',
$nvmet_ns_id = '10',
$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_group = $::os_service_default,
$volume_group = $facts['os_service_default'],
) {
include cinder::deps

View File

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

View File

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

View File

@ -25,7 +25,7 @@
# (Optional) Availability zone for this volume backend.
# If not set, the storage_availability_zone option value
# is used as the default for all backends.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*rbd_ceph_conf*]
# (optional) Path to the ceph configuration file to use
@ -37,40 +37,40 @@
#
# [*rbd_secret_uuid*]
# (optional) A required parameter to use cephx.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*rbd_max_clone_depth*]
# (optional) Maximum number of nested clones that can be taken of a
# volume before enforcing a flatten prior to next clone.
# A value of zero disables cloning
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*rados_connect_timeout*]
# (optional) Timeout value (in seconds) used when connecting to ceph cluster.
# 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*]
# (optional) Interval value (in seconds) between connection retries to ceph
# cluster.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*rados_connection_retries*]
# (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*]
# (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*]
# (optional) Set to True for driver to report total capacity as a dynamic
# value
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*rbd_exclusive_cinder_pool*]
# (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*]
# (Optional) Whether or not manage Cinder Volume type.
@ -89,17 +89,17 @@ define cinder::backend::rbd (
$rbd_user,
$backend_host = undef,
$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_flatten_volume_from_snapshot = $::os_service_default,
$rbd_secret_uuid = $::os_service_default,
$rbd_max_clone_depth = $::os_service_default,
$rados_connect_timeout = $::os_service_default,
$rados_connection_interval = $::os_service_default,
$rados_connection_retries = $::os_service_default,
$rbd_store_chunk_size = $::os_service_default,
$report_dynamic_total_capacity = $::os_service_default,
$rbd_exclusive_cinder_pool = $::os_service_default,
$rbd_flatten_volume_from_snapshot = $facts['os_service_default'],
$rbd_secret_uuid = $facts['os_service_default'],
$rbd_max_clone_depth = $facts['os_service_default'],
$rados_connect_timeout = $facts['os_service_default'],
$rados_connection_interval = $facts['os_service_default'],
$rados_connection_retries = $facts['os_service_default'],
$rbd_store_chunk_size = $facts['os_service_default'],
$report_dynamic_total_capacity = $facts['os_service_default'],
$rbd_exclusive_cinder_pool = $facts['os_service_default'],
$manage_volume_type = false,
$extra_options = {},
) {
@ -164,7 +164,7 @@ define cinder::backend::rbd (
create_resources('cinder_config', $extra_options)
case $::osfamily {
case $facts['os']['family'] {
'Debian': {
$override_line = "CEPH_ARGS=\"--id ${rbd_user}\""
$override_match = '^CEPH_ARGS='
@ -174,7 +174,7 @@ define cinder::backend::rbd (
$override_match = '^export CEPH_ARGS='
}
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.
# If not set, the storage_availability_zone option value
# is used as the default for all backends.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*san_thin_provision*]
# (optional) Use thin provisioning for SAN volumes?
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*san_ip*]
# (optional) IP address of SAN controller.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*san_login*]
# (optional) Username for SAN controller. Defaults to 'admin'.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*san_password*]
# (optional) Password for SAN controller.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*san_private_key*]
# (optional) Filename of private key to use for SSH authentication.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*san_clustername*]
# (optional) Cluster name to use for creating volumes.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*san_ssh_port*]
# (optional) SSH port to use with SAN.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*san_api_port*]
# (optional) Port to use to access the SAN API.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*san_is_local*]
# (optional) Execute commands locally instead of over SSH
# 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*]
# (optional) SSH connection timeout in seconds.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*ssh_min_pool_conn*]
# (optional) Minimum ssh connections in the pool.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*ssh_max_pool_conn*]
# (Optional) Maximum ssh connections in the pool.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*manage_volume_type*]
# (Optional) Whether or not manage Cinder Volume type.
@ -82,19 +82,19 @@
define cinder::backend::san (
$volume_driver,
$volume_backend_name = $name,
$backend_availability_zone = $::os_service_default,
$san_thin_provision = $::os_service_default,
$san_ip = $::os_service_default,
$san_login = $::os_service_default,
$san_password = $::os_service_default,
$san_private_key = $::os_service_default,
$san_clustername = $::os_service_default,
$san_ssh_port = $::os_service_default,
$san_api_port = $::os_service_default,
$san_is_local = $::os_service_default,
$ssh_conn_timeout = $::os_service_default,
$ssh_min_pool_conn = $::os_service_default,
$ssh_max_pool_conn = $::os_service_default,
$backend_availability_zone = $facts['os_service_default'],
$san_thin_provision = $facts['os_service_default'],
$san_ip = $facts['os_service_default'],
$san_login = $facts['os_service_default'],
$san_password = $facts['os_service_default'],
$san_private_key = $facts['os_service_default'],
$san_clustername = $facts['os_service_default'],
$san_ssh_port = $facts['os_service_default'],
$san_api_port = $facts['os_service_default'],
$san_is_local = $facts['os_service_default'],
$ssh_conn_timeout = $facts['os_service_default'],
$ssh_min_pool_conn = $facts['os_service_default'],
$ssh_max_pool_conn = $facts['os_service_default'],
$manage_volume_type = false,
$extra_options = {},
) {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -10,11 +10,11 @@
#
# [*backup_gcs_bucket*]
# (optional) The GCS bucket to use.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*backup_gcs_object_size*]
# (optional) The size in bytes of GCS backup objects.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*backup_gcs_block_size*]
# (optional) The size in bytes that changes are tracked for
@ -23,47 +23,47 @@
#
# [*backup_gcs_reader_chunk_size*]
# (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*]
# (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
# single chunk.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*backup_gcs_num_retries*]
# (optional) Number of times to retry.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*backup_gcs_retry_error_codes*]
# (optional) List of GCS error codes.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*backup_gcs_bucket_location*]
# (optional) Location of GCS bucket.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*backup_gcs_storage_class*]
# (optional) Storage class of GCS bucket.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*backup_gcs_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*]
# (optional) Owner project id for GCS bucket.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*backup_gcs_user_agent*]
# (optional) Http user-agent string for GCS API.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*backup_gcs_enable_progress_timer*]
# (optional) Enable or disable the timer to send the periodic
# progress notifications to ceilometer when backing up the
# volume to the GCS backend storage.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# === Author(s)
#
@ -88,19 +88,19 @@
#
class cinder::backup::google (
$backup_driver = 'cinder.backup.drivers.google.GoogleBackupDriver',
$backup_gcs_bucket = $::os_service_default,
$backup_gcs_object_size = $::os_service_default,
$backup_gcs_block_size = $::os_service_default,
$backup_gcs_reader_chunk_size = $::os_service_default,
$backup_gcs_writer_chunk_size = $::os_service_default,
$backup_gcs_num_retries = $::os_service_default,
$backup_gcs_retry_error_codes = $::os_service_default,
$backup_gcs_bucket_location = $::os_service_default,
$backup_gcs_storage_class = $::os_service_default,
$backup_gcs_credential_file = $::os_service_default,
$backup_gcs_project_id = $::os_service_default,
$backup_gcs_user_agent = $::os_service_default,
$backup_gcs_enable_progress_timer = $::os_service_default,
$backup_gcs_bucket = $facts['os_service_default'],
$backup_gcs_object_size = $facts['os_service_default'],
$backup_gcs_block_size = $facts['os_service_default'],
$backup_gcs_reader_chunk_size = $facts['os_service_default'],
$backup_gcs_writer_chunk_size = $facts['os_service_default'],
$backup_gcs_num_retries = $facts['os_service_default'],
$backup_gcs_retry_error_codes = $facts['os_service_default'],
$backup_gcs_bucket_location = $facts['os_service_default'],
$backup_gcs_storage_class = $facts['os_service_default'],
$backup_gcs_credential_file = $facts['os_service_default'],
$backup_gcs_project_id = $facts['os_service_default'],
$backup_gcs_user_agent = $facts['os_service_default'],
$backup_gcs_enable_progress_timer = $facts['os_service_default'],
) {
include cinder::deps

View File

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

View File

@ -13,26 +13,26 @@
# 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
# backup_sha_block_size_bytes.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*backup_sha_block_size_bytes*]
# (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.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*backup_enable_progress_timer*]
# (optional) Enable or Disable the timer to send the periodic progress
# notifications to Ceilometer when backing up the volume to the backend
# storage.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*backup_posix_path*]
# (optional) Path specifying where to store backups.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*backup_container*]
# (optional) Custom directory to use for backups.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# === Author(s)
#
@ -57,11 +57,11 @@
#
class cinder::backup::posix (
$backup_driver = 'cinder.backup.drivers.posix.PosixBackupDriver',
$backup_file_size = $::os_service_default,
$backup_sha_block_size_bytes = $::os_service_default,
$backup_enable_progress_timer = $::os_service_default,
$backup_posix_path = $::os_service_default,
$backup_container = $::os_service_default,
$backup_file_size = $facts['os_service_default'],
$backup_sha_block_size_bytes = $facts['os_service_default'],
$backup_enable_progress_timer = $facts['os_service_default'],
$backup_posix_path = $facts['os_service_default'],
$backup_container = $facts['os_service_default'],
) {
include cinder::deps

View File

@ -20,72 +20,72 @@
# [*backup_compression_algorithm*]
# (optional) Compression algorithm to use for volume backups.
# 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*]
# (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*]
# (optional) The size in bytes of S3 backup objects.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*backup_s3_block_size*]
# (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.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*backup_s3_enable_progress_timer*]
# (optional) Enable or Disable the timer to send the periodic progress
# notifications to Ceilometer when backing up the volume to the S3
# backend storage.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*backup_s3_http_proxy*]
# (optional) Address or host for the http proxy server.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*backup_s3_https_proxy*]
# (optional) Address or host for the https proxy server.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*backup_s3_timeout*]
# (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*]
# (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*]
# (optional) An integer representing the maximum number of
# 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*]
# (optional) A string representing the type of retry mode.
# e.g: legacy, standard, adaptive.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*backup_s3_verify_ssl*]
# (optional) Enable or Disable ssl verify.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*backup_s3_ca_cert_file*]
# (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*]
# (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*]
# (optional) The SSECustomerKey.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*backup_s3_sse_customer_algorithm*]
# (optional) The SSECustomerAlgorithm.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# === Author(s)
#
@ -113,22 +113,22 @@ class cinder::backup::s3 (
$backup_s3_store_access_key,
$backup_s3_store_secret_key,
$backup_driver = 'cinder.backup.drivers.s3.S3BackupDriver',
$backup_compression_algorithm = $::os_service_default,
$backup_s3_store_bucket = $::os_service_default,
$backup_s3_object_size = $::os_service_default,
$backup_s3_block_size = $::os_service_default,
$backup_s3_enable_progress_timer = $::os_service_default,
$backup_s3_http_proxy = $::os_service_default,
$backup_s3_https_proxy = $::os_service_default,
$backup_s3_timeout = $::os_service_default,
$backup_s3_max_pool_connections = $::os_service_default,
$backup_s3_retry_max_attempts = $::os_service_default,
$backup_s3_retry_mode = $::os_service_default,
$backup_s3_verify_ssl = $::os_service_default,
$backup_s3_ca_cert_file = $::os_service_default,
$backup_s3_md5_validation = $::os_service_default,
$backup_s3_sse_customer_key = $::os_service_default,
$backup_s3_sse_customer_algorithm = $::os_service_default,
$backup_compression_algorithm = $facts['os_service_default'],
$backup_s3_store_bucket = $facts['os_service_default'],
$backup_s3_object_size = $facts['os_service_default'],
$backup_s3_block_size = $facts['os_service_default'],
$backup_s3_enable_progress_timer = $facts['os_service_default'],
$backup_s3_http_proxy = $facts['os_service_default'],
$backup_s3_https_proxy = $facts['os_service_default'],
$backup_s3_timeout = $facts['os_service_default'],
$backup_s3_max_pool_connections = $facts['os_service_default'],
$backup_s3_retry_max_attempts = $facts['os_service_default'],
$backup_s3_retry_mode = $facts['os_service_default'],
$backup_s3_verify_ssl = $facts['os_service_default'],
$backup_s3_ca_cert_file = $facts['os_service_default'],
$backup_s3_md5_validation = $facts['os_service_default'],
$backup_s3_sse_customer_key = $facts['os_service_default'],
$backup_s3_sse_customer_algorithm = $facts['os_service_default'],
) {
include cinder::deps

View File

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

View File

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

View File

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

View File

@ -7,7 +7,7 @@
# [*database_db_max_retries*]
# (optional) Maximum retries in case of connection error or deadlock error
# 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*]
# Url used to connect to database.
@ -15,44 +15,44 @@
#
# [*database_connection_recycle_time*]
# Timeout when db connections should be reaped.
# (Optional) Defaults to $::os_service_default
# (Optional) Defaults to $facts['os_service_default']
#
# [*database_max_pool_size*]
# 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*]
# Maximum db connection retries during startup.
# Setting -1 implies an infinite retry count.
# (Optional) Defaults to $::os_service_default
# (Optional) Defaults to $facts['os_service_default']
#
# [*database_retry_interval*]
# Interval between retries of opening a sql connection.
# (Optional) Defaults to $::os_service_default
# (Optional) Defaults to $facts['os_service_default']
#
# [*database_max_overflow*]
# 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*]
# (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*]
# (Optional) If True, transparently enables support for handling MySQL
# Cluster (NDB).
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
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_recycle_time = $::os_service_default,
$database_max_pool_size = $::os_service_default,
$database_max_retries = $::os_service_default,
$database_retry_interval = $::os_service_default,
$database_max_overflow = $::os_service_default,
$database_pool_timeout = $::os_service_default,
$mysql_enable_ndb = $::os_service_default,
$database_connection_recycle_time = $facts['os_service_default'],
$database_max_pool_size = $facts['os_service_default'],
$database_max_retries = $facts['os_service_default'],
$database_retry_interval = $facts['os_service_default'],
$database_max_overflow = $facts['os_service_default'],
$database_pool_timeout = $facts['os_service_default'],
$mysql_enable_ndb = $facts['os_service_default'],
) {
include cinder::deps

View File

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

View File

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

View File

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

View File

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

View File

@ -6,46 +6,46 @@
#
# [*barbican_endpoint*]
# (Optional) Use this endpoint to connect to Barbican.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*barbican_api_version*]
# (Optional) Version of the Barbican API.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*auth_endpoint*]
# (Optional) Use this endpoint to connect to Keystone.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*retry_delay*]
# (Optional) Number of seconds to wait before retrying poll for key creation
# completion.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*number_of_retries*]
# (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*]
# (Optional) Specifies the type of endpoint.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*barbican_region_name*]
# (Optional) Specifies the region of the chosen endpoint.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*send_service_user_token*]
# (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 (
$barbican_endpoint = $::os_service_default,
$barbican_api_version = $::os_service_default,
$auth_endpoint = $::os_service_default,
$retry_delay = $::os_service_default,
$number_of_retries = $::os_service_default,
$barbican_endpoint_type = $::os_service_default,
$barbican_region_name = $::os_service_default,
$send_service_user_token = $::os_service_default,
$barbican_endpoint = $facts['os_service_default'],
$barbican_api_version = $facts['os_service_default'],
$auth_endpoint = $facts['os_service_default'],
$retry_delay = $facts['os_service_default'],
$number_of_retries = $facts['os_service_default'],
$barbican_endpoint_type = $facts['os_service_default'],
$barbican_region_name = $facts['os_service_default'],
$send_service_user_token = $facts['os_service_default'],
) {
include cinder::deps

View File

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

View File

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

View File

@ -10,7 +10,7 @@
#
# [*password*]
# (Optional) Password to create for the service user
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*auth_url*]
# (Optional) The URL to use for authentication.
@ -30,7 +30,7 @@
#
# [*system_scope*]
# (Optional) Scope for system operations
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*send_service_user_token*]
# (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
# against any certificate authorities. WARNING: not recommended. Use with
# caution.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*auth_type*]
# (Optional) Authentication type to load
@ -48,41 +48,41 @@
#
# [*auth_version*]
# (Optional) API version of the admin Identity API endpoint.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*cafile*]
# (Optional) A PEM encoded Certificate Authority to use when verifying HTTPs
# connections.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*certfile*]
# (Optional) Required if identity server requires client certificate
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*keyfile*]
# (Optional) Required if identity server requires client certificate
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
#
# [*region_name*]
# (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(
$username = 'cinder',
$password = $::os_service_default,
$password = $facts['os_service_default'],
$auth_url = 'http://localhost:5000',
$project_name = 'services',
$user_domain_name = 'Default',
$project_domain_name = 'Default',
$system_scope = $::os_service_default,
$system_scope = $facts['os_service_default'],
$send_service_user_token = false,
$insecure = $::os_service_default,
$insecure = $facts['os_service_default'],
$auth_type = 'password',
$auth_version = $::os_service_default,
$cafile = $::os_service_default,
$certfile = $::os_service_default,
$keyfile = $::os_service_default,
$region_name = $::os_service_default,
$auth_version = $facts['os_service_default'],
$cafile = $facts['os_service_default'],
$certfile = $facts['os_service_default'],
$keyfile = $facts['os_service_default'],
$region_name = $facts['os_service_default'],
) {
include cinder::deps

View File

@ -5,72 +5,72 @@
# === Parameters
# [*debug*]
# (Optional) Should the daemons log debug messages
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*use_syslog*]
# (Optional) Use syslog for logging.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*use_json*]
# (Optional) Use json for logging.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*use_journal*]
# (Optional) Use journal for logging.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*use_stderr*]
# (Optional) Use stderr for logging
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*log_facility*]
# (Optional) Syslog facility to receive log lines.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*log_dir*]
# (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.
# Defaults to '/var/log/cinder'
#
# [*log_file*]
# (Optional) File where logs should be stored.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*watch_log_file*]
# (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*]
# (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\
# [%(request_id)s %(user_identity)s] %(instance)s%(message)s'
#
# [*logging_default_format_string*]
# (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\
# [-] %(instance)s%(message)s'
#
# [*logging_debug_format_suffix*]
# (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'
#
# [*logging_exception_prefix*]
# (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'
#
# [*log_config_append*]
# (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
#
# [*default_log_levels*]
# (Optional) Hash of logger (keys) and level (values) pairs.
# Defaults to $::os_service_default.
# Defaults to $facts['os_service_default'].
# Example:
# { 'amqp' => 'WARN', 'amqplib' => 'WARN', 'boto' => 'WARN',
# 'sqlalchemy' => 'WARN', 'suds' => 'INFO', 'iso8601' => 'WARN',
@ -78,50 +78,50 @@
#
# [*publish_errors*]
# (Optional) Publish error events (boolean value).
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*fatal_deprecations*]
# (Optional) Make deprecations fatal (boolean value)
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*instance_format*]
# (Optional) If an instance is passed with the log message, format it
# like this (string value).
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
# Example: '[instance: %(uuid)s] '
#
# [*instance_uuid_format*]
# (Optional) If an instance UUID is passed with the log message, format
# it like this (string value).
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
# Example: instance_uuid_format='[instance: %(uuid)s] '
#
# [*log_date_format*]
# (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'
#
class cinder::logging(
$use_syslog = $::os_service_default,
$use_json = $::os_service_default,
$use_journal = $::os_service_default,
$use_stderr = $::os_service_default,
$log_facility = $::os_service_default,
$use_syslog = $facts['os_service_default'],
$use_json = $facts['os_service_default'],
$use_journal = $facts['os_service_default'],
$use_stderr = $facts['os_service_default'],
$log_facility = $facts['os_service_default'],
$log_dir = '/var/log/cinder',
$log_file = $::os_service_default,
$watch_log_file = $::os_service_default,
$debug = $::os_service_default,
$logging_context_format_string = $::os_service_default,
$logging_default_format_string = $::os_service_default,
$logging_debug_format_suffix = $::os_service_default,
$logging_exception_prefix = $::os_service_default,
$log_config_append = $::os_service_default,
$default_log_levels = $::os_service_default,
$publish_errors = $::os_service_default,
$fatal_deprecations = $::os_service_default,
$instance_format = $::os_service_default,
$instance_uuid_format = $::os_service_default,
$log_date_format = $::os_service_default,
$log_file = $facts['os_service_default'],
$watch_log_file = $facts['os_service_default'],
$debug = $facts['os_service_default'],
$logging_context_format_string = $facts['os_service_default'],
$logging_default_format_string = $facts['os_service_default'],
$logging_debug_format_suffix = $facts['os_service_default'],
$logging_exception_prefix = $facts['os_service_default'],
$log_config_append = $facts['os_service_default'],
$default_log_levels = $facts['os_service_default'],
$publish_errors = $facts['os_service_default'],
$fatal_deprecations = $facts['os_service_default'],
$instance_format = $facts['os_service_default'],
$instance_uuid_format = $facts['os_service_default'],
$log_date_format = $facts['os_service_default'],
) {
include cinder::deps

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -6,25 +6,25 @@
#
# [*scheduler_default_filters*]
# (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*]
# (Optional) Multiplier used for weighing free capacity.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*allocated_capacity_weight_multiplier*]
# (Optional) Multiplier used for weighing allocated capacity.
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
# [*volume_number_multiplier*]
# (Optional) Multiplier used for weighing volume number..
# Defaults to $::os_service_default
# Defaults to $facts['os_service_default']
#
class cinder::scheduler::filter (
$scheduler_default_filters = $::os_service_default,
$capacity_weight_multiplier = $::os_service_default,
$allocated_capacity_weight_multiplier = $::os_service_default,
$volume_number_multiplier = $::os_service_default,
$scheduler_default_filters = $facts['os_service_default'],
$capacity_weight_multiplier = $facts['os_service_default'],
$allocated_capacity_weight_multiplier = $facts['os_service_default'],
$volume_number_multiplier = $facts['os_service_default'],
) {
include cinder::deps

View File

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

View File

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

View File

@ -11,7 +11,7 @@
#
# [*processes*]
# (Optional) Number of processes.
# Defaults to $::os_workers.
# Defaults to $facts['os_workers'].
#
# [*threads*]
# (Optional) Number of threads.
@ -22,14 +22,14 @@
# Defaults to 100
#
class cinder::wsgi::uwsgi (
$processes = $::os_workers,
$processes = $facts['os_workers'],
$threads = 32,
$listen_queue_size = 100,
){
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.')
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -161,7 +161,7 @@ describe 'cinder::backend::rbd' do
end
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