Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and top scope fact. Change-Id: Iebdb33dd18a8f8d18840ff3e5f4608f021a78bfa
This commit is contained in:
parent
cad31f4a21
commit
43735fb127
162
manifests/api.pp
162
manifests/api.pp
|
@ -11,23 +11,23 @@
|
||||||
#
|
#
|
||||||
# [*bind_host*]
|
# [*bind_host*]
|
||||||
# (optional) The address of the host to bind to.
|
# (optional) The address of the host to bind to.
|
||||||
# Default: $::os_service_default.
|
# Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*bind_port*]
|
# [*bind_port*]
|
||||||
# (optional) The port the server should bind to.
|
# (optional) The port the server should bind to.
|
||||||
# Default: $::os_service_default.
|
# Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*backlog*]
|
# [*backlog*]
|
||||||
# (optional) Backlog requests when creating socket
|
# (optional) Backlog requests when creating socket
|
||||||
# Default: $::os_service_default.
|
# Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*workers*]
|
# [*workers*]
|
||||||
# (optional) Number of Glance API worker processes to start
|
# (optional) Number of Glance API worker processes to start
|
||||||
# Default: $::os_workers.
|
# Default: $facts['os_workers'].
|
||||||
#
|
#
|
||||||
# [*delayed_delete*]
|
# [*delayed_delete*]
|
||||||
# (optional) Turn on/off delayed delete.
|
# (optional) Turn on/off delayed delete.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*auth_strategy*]
|
# [*auth_strategy*]
|
||||||
# (optional) Type is authorization being used.
|
# (optional) Type is authorization being used.
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
#
|
#
|
||||||
# [*paste_deploy_config_file*]
|
# [*paste_deploy_config_file*]
|
||||||
# (optional) Name of the paste configuration file.
|
# (optional) Name of the paste configuration file.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*manage_service*]
|
# [*manage_service*]
|
||||||
# (optional) If Puppet should manage service startup / shutdown.
|
# (optional) If Puppet should manage service startup / shutdown.
|
||||||
|
@ -60,44 +60,44 @@
|
||||||
#
|
#
|
||||||
# [*container_formats*]
|
# [*container_formats*]
|
||||||
# (optional) List of allowed values for an image container_format attributes
|
# (optional) List of allowed values for an image container_format attributes
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*disk_formats*]
|
# [*disk_formats*]
|
||||||
# (optional) List of allowed values for an image disk_format attribute.
|
# (optional) List of allowed values for an image disk_format attribute.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*image_cache_max_size*]
|
# [*image_cache_max_size*]
|
||||||
# (optional) The upper limit (the maximum size of accumulated cache in bytes) beyond which pruner,
|
# (optional) The upper limit (the maximum size of accumulated cache in bytes) beyond which pruner,
|
||||||
# if running, starts cleaning the images cache.
|
# if running, starts cleaning the images cache.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*image_cache_stall_time*]
|
# [*image_cache_stall_time*]
|
||||||
# (optional) The amount of time to let an image remain in the cache without being accessed.
|
# (optional) The amount of time to let an image remain in the cache without being accessed.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*image_import_plugins*]
|
# [*image_import_plugins*]
|
||||||
# (optional) (Array) List of enabled Image Import Plugins.
|
# (optional) (Array) List of enabled Image Import Plugins.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*image_conversion_output_format*]
|
# [*image_conversion_output_format*]
|
||||||
# (optional) Desired output format for image conversion plugin.
|
# (optional) Desired output format for image conversion plugin.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*inject_metadata_properties*]
|
# [*inject_metadata_properties*]
|
||||||
# (optional) Dictionary contains metadata properties to be injected in image.
|
# (optional) Dictionary contains metadata properties to be injected in image.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*ignore_user_roles*]
|
# [*ignore_user_roles*]
|
||||||
# (optional) List containing user roles. For example: [admin,member]
|
# (optional) List containing user roles. For example: [admin,member]
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*show_image_direct_url*]
|
# [*show_image_direct_url*]
|
||||||
# (optional) Expose image location to trusted clients.
|
# (optional) Expose image location to trusted clients.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*location_strategy*]
|
# [*location_strategy*]
|
||||||
# (optional) Strategy used to determine the image location order.
|
# (optional) Strategy used to determine the image location order.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*purge_config*]
|
# [*purge_config*]
|
||||||
# (optional) Whether to set only the specified config options
|
# (optional) Whether to set only the specified config options
|
||||||
|
@ -106,12 +106,12 @@
|
||||||
#
|
#
|
||||||
# [*enforce_secure_rbac*]
|
# [*enforce_secure_rbac*]
|
||||||
# (optional) Enabled enforcing authorization based on common RBAC personas.
|
# (optional) Enabled enforcing authorization based on common RBAC personas.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*use_keystone_limits*]
|
# [*use_keystone_limits*]
|
||||||
# (optional) Allow Glance to retrieve limits set in keystone for resource
|
# (optional) Allow Glance to retrieve limits set in keystone for resource
|
||||||
# consumption and enforce them against API users
|
# consumption and enforce them against API users
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*enabled_backends*]
|
# [*enabled_backends*]
|
||||||
# (optional) List of Key:Value pairs of store identifier and store type.
|
# (optional) List of Key:Value pairs of store identifier and store type.
|
||||||
|
@ -130,78 +130,78 @@
|
||||||
#
|
#
|
||||||
# [*enabled_import_methods*]
|
# [*enabled_import_methods*]
|
||||||
# (optional) The list of enabled Image Import Methods.
|
# (optional) The list of enabled Image Import Methods.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*node_staging_uri*]
|
# [*node_staging_uri*]
|
||||||
# (optional) The URL provides location where the temporary data will be
|
# (optional) The URL provides location where the temporary data will be
|
||||||
# stored when image import method is set to 'glance-direct'
|
# stored when image import method is set to 'glance-direct'
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*worker_self_reference_url*]
|
# [*worker_self_reference_url*]
|
||||||
# (optional) The self-reference URL by which other workers will get to know
|
# (optional) The self-reference URL by which other workers will get to know
|
||||||
# how to contact the worker which has staged the image.
|
# how to contact the worker which has staged the image.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*image_member_quota*]
|
# [*image_member_quota*]
|
||||||
# (optional) The maximum number of image members allowed per image.
|
# (optional) The maximum number of image members allowed per image.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*image_property_quota*]
|
# [*image_property_quota*]
|
||||||
# (optional) The maximum number of image properties allowed on an image.
|
# (optional) The maximum number of image properties allowed on an image.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*image_tag_quota*]
|
# [*image_tag_quota*]
|
||||||
# (optional) The maximum number of tags allowed on an image.
|
# (optional) The maximum number of tags allowed on an image.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*image_location_quota*]
|
# [*image_location_quota*]
|
||||||
# (optional) The maximum number of locations allowed on an image.
|
# (optional) The maximum number of locations allowed on an image.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*image_size_cap*]
|
# [*image_size_cap*]
|
||||||
# (optional) The maximum size of image a user can upload in bytes
|
# (optional) The maximum size of image a user can upload in bytes
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*user_storage_quota*]
|
# [*user_storage_quota*]
|
||||||
# (optional) The maximum amount of image storage per tenant.
|
# (optional) The maximum amount of image storage per tenant.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*task_time_to_live*]
|
# [*task_time_to_live*]
|
||||||
# (optional) Time in hours for which a task lives after.
|
# (optional) Time in hours for which a task lives after.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*task_executor*]
|
# [*task_executor*]
|
||||||
# (optional) Task executor to be used to run task scripts.
|
# (optional) Task executor to be used to run task scripts.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*task_work_dir*]
|
# [*task_work_dir*]
|
||||||
# (optional) Absolute path to the work directory to use for asynchronous
|
# (optional) Absolute path to the work directory to use for asynchronous
|
||||||
# task operations.
|
# task operations.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*taskflow_engine_mode*]
|
# [*taskflow_engine_mode*]
|
||||||
# (optional) Set the taskflow engine mode.
|
# (optional) Set the taskflow engine mode.
|
||||||
# Allowed values: 'parallel', 'serial'.
|
# Allowed values: 'parallel', 'serial'.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*taskflow_max_workers*]
|
# [*taskflow_max_workers*]
|
||||||
# (optional) Integer value to limit the number of taskflow workers. Only
|
# (optional) Integer value to limit the number of taskflow workers. Only
|
||||||
# relevant if taskflow_engine_mode is 'parallel'.
|
# relevant if taskflow_engine_mode is 'parallel'.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*conversion_format*]
|
# [*conversion_format*]
|
||||||
# (optional) Allow automatic image conversion.
|
# (optional) Allow automatic image conversion.
|
||||||
# Allowed values: 'qcow2', 'raw', 'vmdk', false.
|
# Allowed values: 'qcow2', 'raw', 'vmdk', false.
|
||||||
# Defaults to $::os_service_default (disabled)
|
# Defaults to $facts['os_service_default'] (disabled)
|
||||||
#
|
#
|
||||||
# [*enable_proxy_headers_parsing*]
|
# [*enable_proxy_headers_parsing*]
|
||||||
# (Optional) Enable paste middleware to handle SSL requests through
|
# (Optional) Enable paste middleware to handle SSL requests through
|
||||||
# HTTPProxyToWSGI middleware.
|
# HTTPProxyToWSGI middleware.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*max_request_body_size*]
|
# [*max_request_body_size*]
|
||||||
# (Optional) Set max request body size
|
# (Optional) Set max request body size
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*sync_db*]
|
# [*sync_db*]
|
||||||
# (Optional) Run db sync on the node.
|
# (Optional) Run db sync on the node.
|
||||||
|
@ -210,11 +210,11 @@
|
||||||
# [*limit_param_default*]
|
# [*limit_param_default*]
|
||||||
# (optional) Default value for the number of items returned by a request if not
|
# (optional) Default value for the number of items returned by a request if not
|
||||||
# specified explicitly in the request (integer value)
|
# specified explicitly in the request (integer value)
|
||||||
# Default: $::os_service_default.
|
# Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*api_limit_max*]
|
# [*api_limit_max*]
|
||||||
# (optional) Maximum number of results that could be returned by a request
|
# (optional) Maximum number of results that could be returned by a request
|
||||||
# Default: $::os_service_default.
|
# Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*lock_path*]
|
# [*lock_path*]
|
||||||
# (optional) Where to store lock files. This directory must be writeable
|
# (optional) Where to store lock files. This directory must be writeable
|
||||||
|
@ -227,7 +227,7 @@
|
||||||
# running behind a proxy. This is especially useful if the public endpoint
|
# running behind a proxy. This is especially useful if the public endpoint
|
||||||
# is advertised with a base URL not pointing to the server root in Keystone.
|
# is advertised with a base URL not pointing to the server root in Keystone.
|
||||||
# ie. https://cloud.acme.org/api/image
|
# ie. https://cloud.acme.org/api/image
|
||||||
# Default: $::os_service_default.
|
# Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# DEPRECATED PARAMETERS
|
# DEPRECATED PARAMETERS
|
||||||
#
|
#
|
||||||
|
@ -272,55 +272,55 @@
|
||||||
#
|
#
|
||||||
class glance::api(
|
class glance::api(
|
||||||
$package_ensure = 'present',
|
$package_ensure = 'present',
|
||||||
$bind_host = $::os_service_default,
|
$bind_host = $facts['os_service_default'],
|
||||||
$bind_port = $::os_service_default,
|
$bind_port = $facts['os_service_default'],
|
||||||
$backlog = $::os_service_default,
|
$backlog = $facts['os_service_default'],
|
||||||
$workers = $::os_workers,
|
$workers = $facts['os_workers'],
|
||||||
$delayed_delete = $::os_service_default,
|
$delayed_delete = $facts['os_service_default'],
|
||||||
$auth_strategy = 'keystone',
|
$auth_strategy = 'keystone',
|
||||||
$paste_deploy_flavor = 'keystone',
|
$paste_deploy_flavor = 'keystone',
|
||||||
$paste_deploy_config_file = $::os_service_default,
|
$paste_deploy_config_file = $facts['os_service_default'],
|
||||||
$manage_service = true,
|
$manage_service = true,
|
||||||
$enabled = true,
|
$enabled = true,
|
||||||
$service_name = $::glance::params::api_service_name,
|
$service_name = $::glance::params::api_service_name,
|
||||||
$show_image_direct_url = $::os_service_default,
|
$show_image_direct_url = $facts['os_service_default'],
|
||||||
$location_strategy = $::os_service_default,
|
$location_strategy = $facts['os_service_default'],
|
||||||
$purge_config = false,
|
$purge_config = false,
|
||||||
$enforce_secure_rbac = $::os_service_default,
|
$enforce_secure_rbac = $facts['os_service_default'],
|
||||||
$use_keystone_limits = $::os_service_default,
|
$use_keystone_limits = $facts['os_service_default'],
|
||||||
$enabled_backends = undef,
|
$enabled_backends = undef,
|
||||||
$default_backend = undef,
|
$default_backend = undef,
|
||||||
$container_formats = $::os_service_default,
|
$container_formats = $facts['os_service_default'],
|
||||||
$disk_formats = $::os_service_default,
|
$disk_formats = $facts['os_service_default'],
|
||||||
$image_cache_max_size = $::os_service_default,
|
$image_cache_max_size = $facts['os_service_default'],
|
||||||
$image_cache_stall_time = $::os_service_default,
|
$image_cache_stall_time = $facts['os_service_default'],
|
||||||
$image_cache_dir = '/var/lib/glance/image-cache',
|
$image_cache_dir = '/var/lib/glance/image-cache',
|
||||||
$image_import_plugins = $::os_service_default,
|
$image_import_plugins = $facts['os_service_default'],
|
||||||
$inject_metadata_properties = $::os_service_default,
|
$inject_metadata_properties = $facts['os_service_default'],
|
||||||
$ignore_user_roles = $::os_service_default,
|
$ignore_user_roles = $facts['os_service_default'],
|
||||||
$image_conversion_output_format = $::os_service_default,
|
$image_conversion_output_format = $facts['os_service_default'],
|
||||||
$enabled_import_methods = $::os_service_default,
|
$enabled_import_methods = $facts['os_service_default'],
|
||||||
$node_staging_uri = $::os_service_default,
|
$node_staging_uri = $facts['os_service_default'],
|
||||||
$worker_self_reference_url = $::os_service_default,
|
$worker_self_reference_url = $facts['os_service_default'],
|
||||||
$image_member_quota = $::os_service_default,
|
$image_member_quota = $facts['os_service_default'],
|
||||||
$image_property_quota = $::os_service_default,
|
$image_property_quota = $facts['os_service_default'],
|
||||||
$image_tag_quota = $::os_service_default,
|
$image_tag_quota = $facts['os_service_default'],
|
||||||
$image_location_quota = $::os_service_default,
|
$image_location_quota = $facts['os_service_default'],
|
||||||
$image_size_cap = $::os_service_default,
|
$image_size_cap = $facts['os_service_default'],
|
||||||
$user_storage_quota = $::os_service_default,
|
$user_storage_quota = $facts['os_service_default'],
|
||||||
$task_time_to_live = $::os_service_default,
|
$task_time_to_live = $facts['os_service_default'],
|
||||||
$task_executor = $::os_service_default,
|
$task_executor = $facts['os_service_default'],
|
||||||
$task_work_dir = $::os_service_default,
|
$task_work_dir = $facts['os_service_default'],
|
||||||
$taskflow_engine_mode = $::os_service_default,
|
$taskflow_engine_mode = $facts['os_service_default'],
|
||||||
$taskflow_max_workers = $::os_service_default,
|
$taskflow_max_workers = $facts['os_service_default'],
|
||||||
$conversion_format = $::os_service_default,
|
$conversion_format = $facts['os_service_default'],
|
||||||
$enable_proxy_headers_parsing = $::os_service_default,
|
$enable_proxy_headers_parsing = $facts['os_service_default'],
|
||||||
$max_request_body_size = $::os_service_default,
|
$max_request_body_size = $facts['os_service_default'],
|
||||||
$sync_db = true,
|
$sync_db = true,
|
||||||
$limit_param_default = $::os_service_default,
|
$limit_param_default = $facts['os_service_default'],
|
||||||
$api_limit_max = $::os_service_default,
|
$api_limit_max = $facts['os_service_default'],
|
||||||
$lock_path = $::glance::params::lock_path,
|
$lock_path = $::glance::params::lock_path,
|
||||||
$public_endpoint = $::os_service_default,
|
$public_endpoint = $facts['os_service_default'],
|
||||||
# DEPRECATED PARAMETERS
|
# DEPRECATED PARAMETERS
|
||||||
$stores = undef,
|
$stores = undef,
|
||||||
$default_store = undef,
|
$default_store = undef,
|
||||||
|
@ -362,7 +362,7 @@ class glance::api(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if $enabled_import_methods != $::os_service_default {
|
if $enabled_import_methods != $facts['os_service_default'] {
|
||||||
# This option is a ListOpt that requires explicit brackets.
|
# This option is a ListOpt that requires explicit brackets.
|
||||||
$enabled_import_methods_real = sprintf('[%s]', join(any2array($enabled_import_methods), ','))
|
$enabled_import_methods_real = sprintf('[%s]', join(any2array($enabled_import_methods), ','))
|
||||||
} else {
|
} else {
|
||||||
|
@ -401,7 +401,7 @@ class glance::api(
|
||||||
warning('The show_multiple_locations parameter is deprecated, and will be removed in a future release')
|
warning('The show_multiple_locations parameter is deprecated, and will be removed in a future release')
|
||||||
}
|
}
|
||||||
glance_api_config {
|
glance_api_config {
|
||||||
'DEFAULT/show_multiple_locations': value => pick($show_multiple_locations, $::os_service_default)
|
'DEFAULT/show_multiple_locations': value => pick($show_multiple_locations, $facts['os_service_default'])
|
||||||
}
|
}
|
||||||
|
|
||||||
# task/taskflow_executor config.
|
# task/taskflow_executor config.
|
||||||
|
@ -497,9 +497,9 @@ enabled_backends instead.')
|
||||||
|
|
||||||
glance_api_config {
|
glance_api_config {
|
||||||
'glance_store/filesystem_store_metadata_file':
|
'glance_store/filesystem_store_metadata_file':
|
||||||
value => pick($filesystem_store_metadata_file, $::os_service_default);
|
value => pick($filesystem_store_metadata_file, $facts['os_service_default']);
|
||||||
'glance_store/filesystem_store_file_perm':
|
'glance_store/filesystem_store_file_perm':
|
||||||
value => pick($filesystem_store_file_perm, $::os_service_default);
|
value => pick($filesystem_store_file_perm, $facts['os_service_default']);
|
||||||
}
|
}
|
||||||
|
|
||||||
glance_api_config {
|
glance_api_config {
|
||||||
|
@ -517,7 +517,7 @@ enabled_backends instead.')
|
||||||
'DEFAULT/image_cache_max_size': value => $image_cache_max_size;
|
'DEFAULT/image_cache_max_size': value => $image_cache_max_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
if $image_import_plugins != $::os_service_default {
|
if $image_import_plugins != $facts['os_service_default'] {
|
||||||
$image_import_plugins_real = sprintf('[%s]', join(any2array($image_import_plugins), ','))
|
$image_import_plugins_real = sprintf('[%s]', join(any2array($image_import_plugins), ','))
|
||||||
} else {
|
} else {
|
||||||
$image_import_plugins_real = $image_import_plugins
|
$image_import_plugins_real = $image_import_plugins
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
# [*password*]
|
# [*password*]
|
||||||
# (Optional) Password to create for the service user
|
# (Optional) Password to create for the service user
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*auth_url*]
|
# [*auth_url*]
|
||||||
# (Optional) The URL to use for authentication.
|
# (Optional) The URL to use for authentication.
|
||||||
|
@ -30,17 +30,17 @@
|
||||||
#
|
#
|
||||||
# [*system_scope*]
|
# [*system_scope*]
|
||||||
# (Optional) Scope for system operations.
|
# (Optional) Scope for system operations.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*insecure*]
|
# [*insecure*]
|
||||||
# (Optional) If true, explicitly allow TLS without checking server cert
|
# (Optional) If true, explicitly allow TLS without checking server cert
|
||||||
# against any certificate authorities. WARNING: not recommended. Use with
|
# against any certificate authorities. WARNING: not recommended. Use with
|
||||||
# caution.
|
# caution.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*auth_section*]
|
# [*auth_section*]
|
||||||
# (Optional) Config Section from which to load plugin specific options
|
# (Optional) Config Section from which to load plugin specific options
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*auth_type*]
|
# [*auth_type*]
|
||||||
# (Optional) Authentication type to load
|
# (Optional) Authentication type to load
|
||||||
|
@ -52,26 +52,26 @@
|
||||||
#
|
#
|
||||||
# [*auth_version*]
|
# [*auth_version*]
|
||||||
# (Optional) API version of the admin Identity API endpoint.
|
# (Optional) API version of the admin Identity API endpoint.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cache*]
|
# [*cache*]
|
||||||
# (Optional) Env key for the swift cache.
|
# (Optional) Env key for the swift cache.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cafile*]
|
# [*cafile*]
|
||||||
# (Optional) A PEM encoded Certificate Authority to use when verifying HTTPs
|
# (Optional) A PEM encoded Certificate Authority to use when verifying HTTPs
|
||||||
# connections.
|
# connections.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*certfile*]
|
# [*certfile*]
|
||||||
# (Optional) Required if identity server requires client certificate
|
# (Optional) Required if identity server requires client certificate
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*delay_auth_decision*]
|
# [*delay_auth_decision*]
|
||||||
# (Optional) Do not handle authorization requests within the middleware, but
|
# (Optional) Do not handle authorization requests within the middleware, but
|
||||||
# delegate the authorization decision to downstream WSGI components. Boolean
|
# delegate the authorization decision to downstream WSGI components. Boolean
|
||||||
# value
|
# value
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*enforce_token_bind*]
|
# [*enforce_token_bind*]
|
||||||
# (Optional) Used to control the use and type of token binding. Can be set
|
# (Optional) Used to control the use and type of token binding. Can be set
|
||||||
|
@ -81,57 +81,57 @@
|
||||||
# type is unknown the token will be rejected. "required" any form of token
|
# type is unknown the token will be rejected. "required" any form of token
|
||||||
# binding is needed to be allowed. Finally the name of a binding method that
|
# binding is needed to be allowed. Finally the name of a binding method that
|
||||||
# must be present in tokens. String value.
|
# must be present in tokens. String value.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*http_connect_timeout*]
|
# [*http_connect_timeout*]
|
||||||
# (Optional) Request timeout value for communicating with Identity API
|
# (Optional) Request timeout value for communicating with Identity API
|
||||||
# server.
|
# server.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*http_request_max_retries*]
|
# [*http_request_max_retries*]
|
||||||
# (Optional) How many times are we trying to reconnect when communicating
|
# (Optional) How many times are we trying to reconnect when communicating
|
||||||
# with Identity API Server. Integer value
|
# with Identity API Server. Integer value
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*include_service_catalog*]
|
# [*include_service_catalog*]
|
||||||
# (Optional) Indicate whether to set the X-Service-Catalog header. If False,
|
# (Optional) Indicate whether to set the X-Service-Catalog header. If False,
|
||||||
# middleware will not ask for service catalog on token validation and will
|
# middleware will not ask for service catalog on token validation and will
|
||||||
# not set the X-Service-Catalog header. Boolean value.
|
# not set the X-Service-Catalog header. Boolean value.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*keyfile*]
|
# [*keyfile*]
|
||||||
# (Optional) Required if identity server requires client certificate
|
# (Optional) Required if identity server requires client certificate
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*memcache_pool_conn_get_timeout*]
|
# [*memcache_pool_conn_get_timeout*]
|
||||||
# (Optional) Number of seconds that an operation will wait to get a memcached
|
# (Optional) Number of seconds that an operation will wait to get a memcached
|
||||||
# client connection from the pool. Integer value
|
# client connection from the pool. Integer value
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*memcache_pool_dead_retry*]
|
# [*memcache_pool_dead_retry*]
|
||||||
# (Optional) Number of seconds memcached server is considered dead before it
|
# (Optional) Number of seconds memcached server is considered dead before it
|
||||||
# is tried again. Integer value
|
# is tried again. Integer value
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*memcache_pool_maxsize*]
|
# [*memcache_pool_maxsize*]
|
||||||
# (Optional) Maximum total number of open connections to every memcached
|
# (Optional) Maximum total number of open connections to every memcached
|
||||||
# server. Integer value
|
# server. Integer value
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*memcache_pool_socket_timeout*]
|
# [*memcache_pool_socket_timeout*]
|
||||||
# (Optional) Number of seconds a connection to memcached is held unused in
|
# (Optional) Number of seconds a connection to memcached is held unused in
|
||||||
# the pool before it is closed. Integer value
|
# the pool before it is closed. Integer value
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*memcache_pool_unused_timeout*]
|
# [*memcache_pool_unused_timeout*]
|
||||||
# (Optional) Number of seconds a connection to memcached is held unused in
|
# (Optional) Number of seconds a connection to memcached is held unused in
|
||||||
# the pool before it is closed. Integer value
|
# the pool before it is closed. Integer value
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*memcache_secret_key*]
|
# [*memcache_secret_key*]
|
||||||
# (Optional, mandatory if memcache_security_strategy is defined) This string
|
# (Optional, mandatory if memcache_security_strategy is defined) This string
|
||||||
# is used for key derivation.
|
# is used for key derivation.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*memcache_security_strategy*]
|
# [*memcache_security_strategy*]
|
||||||
# (Optional) If defined, indicate whether token data should be authenticated
|
# (Optional) If defined, indicate whether token data should be authenticated
|
||||||
|
@ -139,17 +139,17 @@
|
||||||
# HMAC) in the cache. If ENCRYPT, token data is encrypted and authenticated
|
# HMAC) 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,
|
# in the cache. If the value is not one of these options or empty,
|
||||||
# auth_token will raise an exception on initialization.
|
# auth_token will raise an exception on initialization.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*memcache_use_advanced_pool*]
|
# [*memcache_use_advanced_pool*]
|
||||||
# (Optional) Use the advanced (eventlet safe) memcached client pool. The
|
# (Optional) Use the advanced (eventlet safe) memcached client pool. The
|
||||||
# advanced pool will only work under python 2.x Boolean value
|
# advanced pool will only work under python 2.x Boolean value
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*memcached_servers*]
|
# [*memcached_servers*]
|
||||||
# (Optional) Optionally specify a list of memcached server(s) to use for
|
# (Optional) Optionally specify a list of memcached server(s) to use for
|
||||||
# caching. If left undefined, tokens will instead be cached in-process.
|
# caching. If left undefined, tokens will instead be cached in-process.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*manage_memcache_package*]
|
# [*manage_memcache_package*]
|
||||||
# (Optional) Whether to install the python-memcache package.
|
# (Optional) Whether to install the python-memcache package.
|
||||||
|
@ -157,13 +157,13 @@
|
||||||
#
|
#
|
||||||
# [*region_name*]
|
# [*region_name*]
|
||||||
# (Optional) The region in which the identity server can be found.
|
# (Optional) The region in which the identity server can be found.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*token_cache_time*]
|
# [*token_cache_time*]
|
||||||
# (Optional) In order to prevent excessive effort spent validating tokens,
|
# (Optional) In order to prevent excessive effort spent validating tokens,
|
||||||
# the middleware caches previously-seen tokens for a configurable duration
|
# the middleware caches previously-seen tokens for a configurable duration
|
||||||
# (in seconds). Set to -1 to disable caching completely. Integer value
|
# (in seconds). Set to -1 to disable caching completely. Integer value
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*service_token_roles*]
|
# [*service_token_roles*]
|
||||||
# (Optional) A choice of roles that must be present in a service token.
|
# (Optional) A choice of roles that must be present in a service token.
|
||||||
|
@ -173,23 +173,23 @@
|
||||||
# here are applied as an ANY check so any role in this list
|
# here are applied as an ANY check so any role in this list
|
||||||
# must be present. For backwards compatibility reasons this
|
# must be present. For backwards compatibility reasons this
|
||||||
# currently only affects the allow_expired check. (list value)
|
# currently only affects the allow_expired check. (list value)
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*service_token_roles_required*]
|
# [*service_token_roles_required*]
|
||||||
# (optional) backwards compatibility to ensure that the service tokens are
|
# (optional) backwards compatibility to ensure that the service tokens are
|
||||||
# compared against a list of possible roles for validity
|
# compared against a list of possible roles for validity
|
||||||
# true/false
|
# true/false
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*service_type*]
|
# [*service_type*]
|
||||||
# (Optional) The name or type of the service as it appears in the service
|
# (Optional) The name or type of the service as it appears in the service
|
||||||
# catalog. This is used to validate tokens that have restricted access rules.
|
# catalog. This is used to validate tokens that have restricted access rules.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*interface*]
|
# [*interface*]
|
||||||
# (Optional) Interface to use for the Identity API endpoint. Valid values are
|
# (Optional) Interface to use for the Identity API endpoint. Valid values are
|
||||||
# "public", "internal" or "admin".
|
# "public", "internal" or "admin".
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*params*]
|
# [*params*]
|
||||||
# (Optional) Hash of additional parameters to pass through to the keystone
|
# (Optional) Hash of additional parameters to pass through to the keystone
|
||||||
|
@ -197,42 +197,42 @@
|
||||||
#
|
#
|
||||||
class glance::api::authtoken(
|
class glance::api::authtoken(
|
||||||
$username = 'glance',
|
$username = 'glance',
|
||||||
$password = $::os_service_default,
|
$password = $facts['os_service_default'],
|
||||||
$auth_url = 'http://127.0.0.1:5000',
|
$auth_url = 'http://127.0.0.1:5000',
|
||||||
$project_name = 'services',
|
$project_name = 'services',
|
||||||
$user_domain_name = 'Default',
|
$user_domain_name = 'Default',
|
||||||
$project_domain_name = 'Default',
|
$project_domain_name = 'Default',
|
||||||
$system_scope = $::os_service_default,
|
$system_scope = $facts['os_service_default'],
|
||||||
$insecure = $::os_service_default,
|
$insecure = $facts['os_service_default'],
|
||||||
$auth_section = $::os_service_default,
|
$auth_section = $facts['os_service_default'],
|
||||||
$auth_type = 'password',
|
$auth_type = 'password',
|
||||||
$www_authenticate_uri = 'http://127.0.0.1:5000',
|
$www_authenticate_uri = 'http://127.0.0.1:5000',
|
||||||
$auth_version = $::os_service_default,
|
$auth_version = $facts['os_service_default'],
|
||||||
$cache = $::os_service_default,
|
$cache = $facts['os_service_default'],
|
||||||
$cafile = $::os_service_default,
|
$cafile = $facts['os_service_default'],
|
||||||
$certfile = $::os_service_default,
|
$certfile = $facts['os_service_default'],
|
||||||
$delay_auth_decision = $::os_service_default,
|
$delay_auth_decision = $facts['os_service_default'],
|
||||||
$enforce_token_bind = $::os_service_default,
|
$enforce_token_bind = $facts['os_service_default'],
|
||||||
$http_connect_timeout = $::os_service_default,
|
$http_connect_timeout = $facts['os_service_default'],
|
||||||
$http_request_max_retries = $::os_service_default,
|
$http_request_max_retries = $facts['os_service_default'],
|
||||||
$include_service_catalog = $::os_service_default,
|
$include_service_catalog = $facts['os_service_default'],
|
||||||
$keyfile = $::os_service_default,
|
$keyfile = $facts['os_service_default'],
|
||||||
$memcache_pool_conn_get_timeout = $::os_service_default,
|
$memcache_pool_conn_get_timeout = $facts['os_service_default'],
|
||||||
$memcache_pool_dead_retry = $::os_service_default,
|
$memcache_pool_dead_retry = $facts['os_service_default'],
|
||||||
$memcache_pool_maxsize = $::os_service_default,
|
$memcache_pool_maxsize = $facts['os_service_default'],
|
||||||
$memcache_pool_socket_timeout = $::os_service_default,
|
$memcache_pool_socket_timeout = $facts['os_service_default'],
|
||||||
$memcache_pool_unused_timeout = $::os_service_default,
|
$memcache_pool_unused_timeout = $facts['os_service_default'],
|
||||||
$memcache_secret_key = $::os_service_default,
|
$memcache_secret_key = $facts['os_service_default'],
|
||||||
$memcache_security_strategy = $::os_service_default,
|
$memcache_security_strategy = $facts['os_service_default'],
|
||||||
$memcache_use_advanced_pool = $::os_service_default,
|
$memcache_use_advanced_pool = $facts['os_service_default'],
|
||||||
$memcached_servers = $::os_service_default,
|
$memcached_servers = $facts['os_service_default'],
|
||||||
$manage_memcache_package = false,
|
$manage_memcache_package = false,
|
||||||
$region_name = $::os_service_default,
|
$region_name = $facts['os_service_default'],
|
||||||
$token_cache_time = $::os_service_default,
|
$token_cache_time = $facts['os_service_default'],
|
||||||
$service_token_roles = $::os_service_default,
|
$service_token_roles = $facts['os_service_default'],
|
||||||
$service_token_roles_required = $::os_service_default,
|
$service_token_roles_required = $facts['os_service_default'],
|
||||||
$service_type = $::os_service_default,
|
$service_type = $facts['os_service_default'],
|
||||||
$interface = $::os_service_default,
|
$interface = $facts['os_service_default'],
|
||||||
$params = {}
|
$params = {}
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# [*database_db_max_retries*]
|
# [*database_db_max_retries*]
|
||||||
# (optional) Maximum retries in case of connection error or deadlock error
|
# (optional) Maximum retries in case of connection error or deadlock error
|
||||||
# before error is raised. Set to -1 to specify an infinite retry count.
|
# before error is raised. Set to -1 to specify an infinite retry count.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*database_connection*]
|
# [*database_connection*]
|
||||||
# Url used to connect to database.
|
# Url used to connect to database.
|
||||||
|
@ -15,44 +15,44 @@
|
||||||
#
|
#
|
||||||
# [*database_connection_recycle_time*]
|
# [*database_connection_recycle_time*]
|
||||||
# Timeout when db connections should be reaped.
|
# Timeout when db connections should be reaped.
|
||||||
# (Optional) Defaults to $::os_service_default.
|
# (Optional) Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*database_max_pool_size*]
|
# [*database_max_pool_size*]
|
||||||
# Maximum number of SQL connections to keep open in a pool.
|
# Maximum number of SQL connections to keep open in a pool.
|
||||||
# (Optional) Defaults to $::os_service_default.
|
# (Optional) Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*database_max_retries*]
|
# [*database_max_retries*]
|
||||||
# Maximum db connection retries during startup.
|
# Maximum db connection retries during startup.
|
||||||
# Setting -1 implies an infinite retry count.
|
# Setting -1 implies an infinite retry count.
|
||||||
# (Optional) Defaults to $::os_service_default.
|
# (Optional) Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*database_retry_interval*]
|
# [*database_retry_interval*]
|
||||||
# Interval between retries of opening a sql connection.
|
# Interval between retries of opening a sql connection.
|
||||||
# (Optional) Defaults to $::os_service_default.
|
# (Optional) Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*database_max_overflow*]
|
# [*database_max_overflow*]
|
||||||
# If set, use this value for max_overflow with sqlalchemy.
|
# If set, use this value for max_overflow with sqlalchemy.
|
||||||
# (Optional) Defaults to $::os_service_default.
|
# (Optional) Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*database_pool_timeout*]
|
# [*database_pool_timeout*]
|
||||||
# (Optional) If set, use this value for pool_timeout with SQLAlchemy.
|
# (Optional) If set, use this value for pool_timeout with SQLAlchemy.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*mysql_enable_ndb*]
|
# [*mysql_enable_ndb*]
|
||||||
# (Optional) If True, transparently enables support for handling MySQL
|
# (Optional) If True, transparently enables support for handling MySQL
|
||||||
# Cluster (NDB).
|
# Cluster (NDB).
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
class glance::api::db (
|
class glance::api::db (
|
||||||
$database_db_max_retries = $::os_service_default,
|
$database_db_max_retries = $facts['os_service_default'],
|
||||||
$database_connection = 'sqlite:///var/lib/glance/glance.sqlite',
|
$database_connection = 'sqlite:///var/lib/glance/glance.sqlite',
|
||||||
$database_connection_recycle_time = $::os_service_default,
|
$database_connection_recycle_time = $facts['os_service_default'],
|
||||||
$database_max_pool_size = $::os_service_default,
|
$database_max_pool_size = $facts['os_service_default'],
|
||||||
$database_max_retries = $::os_service_default,
|
$database_max_retries = $facts['os_service_default'],
|
||||||
$database_retry_interval = $::os_service_default,
|
$database_retry_interval = $facts['os_service_default'],
|
||||||
$database_max_overflow = $::os_service_default,
|
$database_max_overflow = $facts['os_service_default'],
|
||||||
$database_pool_timeout = $::os_service_default,
|
$database_pool_timeout = $facts['os_service_default'],
|
||||||
$mysql_enable_ndb = $::os_service_default,
|
$mysql_enable_ndb = $facts['os_service_default'],
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include glance::deps
|
include glance::deps
|
||||||
|
|
|
@ -6,72 +6,72 @@
|
||||||
#
|
#
|
||||||
# [*debug*]
|
# [*debug*]
|
||||||
# (Optional) Should the daemons log debug messages
|
# (Optional) Should the daemons log debug messages
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*use_syslog*]
|
# [*use_syslog*]
|
||||||
# (Optional) Use syslog for logging.
|
# (Optional) Use syslog for logging.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*use_json*]
|
# [*use_json*]
|
||||||
# (Optional) Use json for logging.
|
# (Optional) Use json for logging.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*use_journal*]
|
# [*use_journal*]
|
||||||
# (Optional) Use journal for logging.
|
# (Optional) Use journal for logging.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*use_stderr*]
|
# [*use_stderr*]
|
||||||
# (Optional) Use stderr for logging
|
# (Optional) Use stderr for logging
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*log_facility*]
|
# [*log_facility*]
|
||||||
# (Optional) Syslog facility to receive log lines.
|
# (Optional) Syslog facility to receive log lines.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*log_dir*]
|
# [*log_dir*]
|
||||||
# (Optional) Directory where logs should be stored.
|
# (Optional) Directory where logs should be stored.
|
||||||
# If set to $::os_service_default, it will not log to any directory.
|
# If set to $facts['os_service_default'], it will not log to any directory.
|
||||||
# Defaults to '/var/log/glance'.
|
# Defaults to '/var/log/glance'.
|
||||||
#
|
#
|
||||||
# [*log_file*]
|
# [*log_file*]
|
||||||
# (Optional) File where logs should be stored.
|
# (Optional) File where logs should be stored.
|
||||||
# If set to $::os_service_default, it will not log to any file.
|
# If set to $facts['os_service_default'], it will not log to any file.
|
||||||
# Defaults to '/var/log/glance/api.log'.
|
# Defaults to '/var/log/glance/api.log'.
|
||||||
#
|
#
|
||||||
# [*watch_log_file*]
|
# [*watch_log_file*]
|
||||||
# (Optional) Uses logging handler designed to watch file system (boolean value).
|
# (Optional) Uses logging handler designed to watch file system (boolean value).
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*logging_context_format_string*]
|
# [*logging_context_format_string*]
|
||||||
# (Optional) Format string to use for log messages with context.
|
# (Optional) Format string to use for log messages with context.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
# Example: '%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s\
|
# Example: '%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s\
|
||||||
# [%(request_id)s %(user_identity)s] %(instance)s%(message)s'
|
# [%(request_id)s %(user_identity)s] %(instance)s%(message)s'
|
||||||
#
|
#
|
||||||
# [*logging_default_format_string*]
|
# [*logging_default_format_string*]
|
||||||
# (Optional) Format string to use for log messages without context.
|
# (Optional) Format string to use for log messages without context.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
# Example: '%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s\
|
# Example: '%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s\
|
||||||
# [-] %(instance)s%(message)s'
|
# [-] %(instance)s%(message)s'
|
||||||
#
|
#
|
||||||
# [*logging_debug_format_suffix*]
|
# [*logging_debug_format_suffix*]
|
||||||
# (Optional) Formatted data to append to log format when level is DEBUG.
|
# (Optional) Formatted data to append to log format when level is DEBUG.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
# Example: '%(funcName)s %(pathname)s:%(lineno)d'
|
# Example: '%(funcName)s %(pathname)s:%(lineno)d'
|
||||||
#
|
#
|
||||||
# [*logging_exception_prefix*]
|
# [*logging_exception_prefix*]
|
||||||
# (Optional) Prefix each line of exception output with this format.
|
# (Optional) Prefix each line of exception output with this format.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
# Example: '%(asctime)s.%(msecs)03d %(process)d TRACE %(name)s %(instance)s'
|
# Example: '%(asctime)s.%(msecs)03d %(process)d TRACE %(name)s %(instance)s'
|
||||||
#
|
#
|
||||||
# [*log_config_append*]
|
# [*log_config_append*]
|
||||||
# (Optional) The name of an additional logging configuration file.
|
# (Optional) The name of an additional logging configuration file.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
# See https://docs.python.org/2/howto/logging.html
|
# See https://docs.python.org/2/howto/logging.html
|
||||||
#
|
#
|
||||||
# [*default_log_levels*]
|
# [*default_log_levels*]
|
||||||
# (Optional) Hash of logger (keys) and level (values) pairs.
|
# (Optional) Hash of logger (keys) and level (values) pairs.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
# Example:
|
# Example:
|
||||||
# { 'amqp' => 'WARN', 'amqplib' => 'WARN', 'boto' => 'WARN',
|
# { 'amqp' => 'WARN', 'amqplib' => 'WARN', 'boto' => 'WARN',
|
||||||
# 'sqlalchemy' => 'WARN', 'suds' => 'INFO', 'iso8601' => 'WARN',
|
# 'sqlalchemy' => 'WARN', 'suds' => 'INFO', 'iso8601' => 'WARN',
|
||||||
|
@ -79,50 +79,50 @@
|
||||||
#
|
#
|
||||||
# [*publish_errors*]
|
# [*publish_errors*]
|
||||||
# (Optional) Publish error events (boolean value).
|
# (Optional) Publish error events (boolean value).
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*fatal_deprecations*]
|
# [*fatal_deprecations*]
|
||||||
# (Optional) Make deprecations fatal (boolean value)
|
# (Optional) Make deprecations fatal (boolean value)
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*instance_format*]
|
# [*instance_format*]
|
||||||
# (Optional) If an instance is passed with the log message, format it
|
# (Optional) If an instance is passed with the log message, format it
|
||||||
# like this (string value).
|
# like this (string value).
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
# Example: '[instance: %(uuid)s] '
|
# Example: '[instance: %(uuid)s] '
|
||||||
#
|
#
|
||||||
# [*instance_uuid_format*]
|
# [*instance_uuid_format*]
|
||||||
# (Optional) If an instance UUID is passed with the log message, format
|
# (Optional) If an instance UUID is passed with the log message, format
|
||||||
# it like this (string value).
|
# it like this (string value).
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
# Example: instance_uuid_format='[instance: %(uuid)s] '
|
# Example: instance_uuid_format='[instance: %(uuid)s] '
|
||||||
#
|
#
|
||||||
# [*log_date_format*]
|
# [*log_date_format*]
|
||||||
# (Optional) Format string for %%(asctime)s in log records.
|
# (Optional) Format string for %%(asctime)s in log records.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
# Example: 'Y-%m-%d %H:%M:%S'
|
# Example: 'Y-%m-%d %H:%M:%S'
|
||||||
#
|
#
|
||||||
class glance::api::logging(
|
class glance::api::logging(
|
||||||
$use_syslog = $::os_service_default,
|
$use_syslog = $facts['os_service_default'],
|
||||||
$use_json = $::os_service_default,
|
$use_json = $facts['os_service_default'],
|
||||||
$use_journal = $::os_service_default,
|
$use_journal = $facts['os_service_default'],
|
||||||
$use_stderr = $::os_service_default,
|
$use_stderr = $facts['os_service_default'],
|
||||||
$log_facility = $::os_service_default,
|
$log_facility = $facts['os_service_default'],
|
||||||
$log_dir = '/var/log/glance',
|
$log_dir = '/var/log/glance',
|
||||||
$log_file = '/var/log/glance/api.log',
|
$log_file = '/var/log/glance/api.log',
|
||||||
$watch_log_file = $::os_service_default,
|
$watch_log_file = $facts['os_service_default'],
|
||||||
$debug = $::os_service_default,
|
$debug = $facts['os_service_default'],
|
||||||
$logging_context_format_string = $::os_service_default,
|
$logging_context_format_string = $facts['os_service_default'],
|
||||||
$logging_default_format_string = $::os_service_default,
|
$logging_default_format_string = $facts['os_service_default'],
|
||||||
$logging_debug_format_suffix = $::os_service_default,
|
$logging_debug_format_suffix = $facts['os_service_default'],
|
||||||
$logging_exception_prefix = $::os_service_default,
|
$logging_exception_prefix = $facts['os_service_default'],
|
||||||
$log_config_append = $::os_service_default,
|
$log_config_append = $facts['os_service_default'],
|
||||||
$default_log_levels = $::os_service_default,
|
$default_log_levels = $facts['os_service_default'],
|
||||||
$publish_errors = $::os_service_default,
|
$publish_errors = $facts['os_service_default'],
|
||||||
$fatal_deprecations = $::os_service_default,
|
$fatal_deprecations = $facts['os_service_default'],
|
||||||
$instance_format = $::os_service_default,
|
$instance_format = $facts['os_service_default'],
|
||||||
$instance_uuid_format = $::os_service_default,
|
$instance_uuid_format = $facts['os_service_default'],
|
||||||
$log_date_format = $::os_service_default,
|
$log_date_format = $facts['os_service_default'],
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include glance::deps
|
include glance::deps
|
||||||
|
|
|
@ -25,43 +25,43 @@
|
||||||
# (optional) Info to match when looking for cinder in the service catalog.
|
# (optional) Info to match when looking for cinder in the service catalog.
|
||||||
# Format is : separated values of the form:
|
# Format is : separated values of the form:
|
||||||
# <service_type>:<service_name>:<endpoint_type> (string value)
|
# <service_type>:<service_name>:<endpoint_type> (string value)
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_endpoint_template*]
|
# [*cinder_endpoint_template*]
|
||||||
# (optional) Override service catalog lookup with template for cinder endpoint.
|
# (optional) Override service catalog lookup with template for cinder endpoint.
|
||||||
# Should be a valid URL. Example: 'http://localhost:8776/v1/%(project_id)s'
|
# Should be a valid URL. Example: 'http://localhost:8776/v1/%(project_id)s'
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_ca_certificates_file*]
|
# [*cinder_ca_certificates_file*]
|
||||||
# (optional) Location of ca certificate file to use for cinder client requests.
|
# (optional) Location of ca certificate file to use for cinder client requests.
|
||||||
# Should be a valid ca certificate file
|
# Should be a valid ca certificate file
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_http_retries*]
|
# [*cinder_http_retries*]
|
||||||
# (optional) Number of cinderclient retries on failed http calls.
|
# (optional) Number of cinderclient retries on failed http calls.
|
||||||
# Should be a valid integer
|
# Should be a valid integer
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_api_insecure*]
|
# [*cinder_api_insecure*]
|
||||||
# (optional) Allow to perform insecure SSL requests to cinder.
|
# (optional) Allow to perform insecure SSL requests to cinder.
|
||||||
# Should be a valid boolean value
|
# Should be a valid boolean value
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_store_auth_address*]
|
# [*cinder_store_auth_address*]
|
||||||
# (optional) A valid authentication service address.
|
# (optional) A valid authentication service address.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_store_project_name*]
|
# [*cinder_store_project_name*]
|
||||||
# (optional) Project name where the image volume is stored in cinder.
|
# (optional) Project name where the image volume is stored in cinder.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_store_user_name*]
|
# [*cinder_store_user_name*]
|
||||||
# (optional) User name to authenticate against cinder.
|
# (optional) User name to authenticate against cinder.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_store_password*]
|
# [*cinder_store_password*]
|
||||||
# (optional) A valid password for the user specified by `cinder_store_user_name'
|
# (optional) A valid password for the user specified by `cinder_store_user_name'
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_os_region_name*]
|
# [*cinder_os_region_name*]
|
||||||
# (optional) Sets the keystone region to use.
|
# (optional) Sets the keystone region to use.
|
||||||
|
@ -72,15 +72,15 @@
|
||||||
# Defaults to false
|
# Defaults to false
|
||||||
#
|
#
|
||||||
class glance::backend::cinder(
|
class glance::backend::cinder(
|
||||||
$cinder_ca_certificates_file = $::os_service_default,
|
$cinder_ca_certificates_file = $facts['os_service_default'],
|
||||||
$cinder_api_insecure = $::os_service_default,
|
$cinder_api_insecure = $facts['os_service_default'],
|
||||||
$cinder_catalog_info = $::os_service_default,
|
$cinder_catalog_info = $facts['os_service_default'],
|
||||||
$cinder_endpoint_template = $::os_service_default,
|
$cinder_endpoint_template = $facts['os_service_default'],
|
||||||
$cinder_http_retries = $::os_service_default,
|
$cinder_http_retries = $facts['os_service_default'],
|
||||||
$cinder_store_auth_address = $::os_service_default,
|
$cinder_store_auth_address = $facts['os_service_default'],
|
||||||
$cinder_store_project_name = $::os_service_default,
|
$cinder_store_project_name = $facts['os_service_default'],
|
||||||
$cinder_store_user_name = $::os_service_default,
|
$cinder_store_user_name = $facts['os_service_default'],
|
||||||
$cinder_store_password = $::os_service_default,
|
$cinder_store_password = $facts['os_service_default'],
|
||||||
$cinder_os_region_name = 'RegionOne',
|
$cinder_os_region_name = 'RegionOne',
|
||||||
$multi_store = false,
|
$multi_store = false,
|
||||||
) {
|
) {
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#
|
#
|
||||||
# [*filesystem_thin_provisioning*]
|
# [*filesystem_thin_provisioning*]
|
||||||
# (optional) Boolean describing if thin provisioning is enabled or not
|
# (optional) Boolean describing if thin provisioning is enabled or not
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*multi_store*]
|
# [*multi_store*]
|
||||||
# (optional) Boolean describing if multiple backends will be configured
|
# (optional) Boolean describing if multiple backends will be configured
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
#
|
#
|
||||||
class glance::backend::file(
|
class glance::backend::file(
|
||||||
$filesystem_store_datadir = '/var/lib/glance/images/',
|
$filesystem_store_datadir = '/var/lib/glance/images/',
|
||||||
$filesystem_thin_provisioning = $::os_service_default,
|
$filesystem_thin_provisioning = $facts['os_service_default'],
|
||||||
$multi_store = false,
|
$multi_store = false,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
|
|
@ -23,51 +23,51 @@
|
||||||
# (optional) Info to match when looking for cinder in the service catalog.
|
# (optional) Info to match when looking for cinder in the service catalog.
|
||||||
# Format is : separated values of the form:
|
# Format is : separated values of the form:
|
||||||
# <service_type>:<service_name>:<endpoint_type> (string value)
|
# <service_type>:<service_name>:<endpoint_type> (string value)
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_endpoint_template*]
|
# [*cinder_endpoint_template*]
|
||||||
# (optional) Override service catalog lookup with template for cinder endpoint.
|
# (optional) Override service catalog lookup with template for cinder endpoint.
|
||||||
# Should be a valid URL. Example: 'http://localhost:8776/v1/%(project_id)s'
|
# Should be a valid URL. Example: 'http://localhost:8776/v1/%(project_id)s'
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_ca_certificates_file*]
|
# [*cinder_ca_certificates_file*]
|
||||||
# (optional) Location of ca certificate file to use for cinder client requests.
|
# (optional) Location of ca certificate file to use for cinder client requests.
|
||||||
# Should be a valid ca certificate file
|
# Should be a valid ca certificate file
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_http_retries*]
|
# [*cinder_http_retries*]
|
||||||
# (optional) Number of cinderclient retries on failed http calls.
|
# (optional) Number of cinderclient retries on failed http calls.
|
||||||
# Should be a valid integer
|
# Should be a valid integer
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_api_insecure*]
|
# [*cinder_api_insecure*]
|
||||||
# (optional) Allow to perform insecure SSL requests to cinder.
|
# (optional) Allow to perform insecure SSL requests to cinder.
|
||||||
# Should be a valid boolean value
|
# Should be a valid boolean value
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_store_auth_address*]
|
# [*cinder_store_auth_address*]
|
||||||
# (optional) A valid authentication service address.
|
# (optional) A valid authentication service address.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_store_project_name*]
|
# [*cinder_store_project_name*]
|
||||||
# (optional) Project name where the image volume is stored in cinder.
|
# (optional) Project name where the image volume is stored in cinder.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_store_user_name*]
|
# [*cinder_store_user_name*]
|
||||||
# (optional) User name to authenticate against cinder.
|
# (optional) User name to authenticate against cinder.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_store_password*]
|
# [*cinder_store_password*]
|
||||||
# (optional) A valid password for the user specified by `cinder_store_user_name'
|
# (optional) A valid password for the user specified by `cinder_store_user_name'
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_store_user_domain_name*]
|
# [*cinder_store_user_domain_name*]
|
||||||
# (optional) Domain of the user to authenticate against cinder.
|
# (optional) Domain of the user to authenticate against cinder.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_store_project_domain_name*]
|
# [*cinder_store_project_domain_name*]
|
||||||
# (optional) Domain of the project to authenticate against cinder.
|
# (optional) Domain of the project to authenticate against cinder.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_os_region_name*]
|
# [*cinder_os_region_name*]
|
||||||
# (optional) Sets the keystone region to use.
|
# (optional) Sets the keystone region to use.
|
||||||
|
@ -75,44 +75,44 @@
|
||||||
#
|
#
|
||||||
# [*cinder_volume_type*]
|
# [*cinder_volume_type*]
|
||||||
# (Optional) The volume type to be used to create image volumes in cinder.
|
# (Optional) The volume type to be used to create image volumes in cinder.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_enforce_multipath*]
|
# [*cinder_enforce_multipath*]
|
||||||
# (optional) Enforce multipath usage when attaching a cinder volume
|
# (optional) Enforce multipath usage when attaching a cinder volume
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_use_multipath*]
|
# [*cinder_use_multipath*]
|
||||||
# (optional) Flag to identify multipath is supported or not in the deployment
|
# (optional) Flag to identify multipath is supported or not in the deployment
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cinder_mount_point_base*]
|
# [*cinder_mount_point_base*]
|
||||||
# (Optional) When glance uses cinder as store and cinder backend is NFS, the mount point
|
# (Optional) When glance uses cinder as store and cinder backend is NFS, the mount point
|
||||||
# would be required to be set with this parameter.
|
# would be required to be set with this parameter.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*store_description*]
|
# [*store_description*]
|
||||||
# (optional) Provides constructive information about the store backend to
|
# (optional) Provides constructive information about the store backend to
|
||||||
# end users.
|
# end users.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
define glance::backend::multistore::cinder(
|
define glance::backend::multistore::cinder(
|
||||||
$cinder_ca_certificates_file = $::os_service_default,
|
$cinder_ca_certificates_file = $facts['os_service_default'],
|
||||||
$cinder_api_insecure = $::os_service_default,
|
$cinder_api_insecure = $facts['os_service_default'],
|
||||||
$cinder_catalog_info = $::os_service_default,
|
$cinder_catalog_info = $facts['os_service_default'],
|
||||||
$cinder_endpoint_template = $::os_service_default,
|
$cinder_endpoint_template = $facts['os_service_default'],
|
||||||
$cinder_http_retries = $::os_service_default,
|
$cinder_http_retries = $facts['os_service_default'],
|
||||||
$cinder_store_auth_address = $::os_service_default,
|
$cinder_store_auth_address = $facts['os_service_default'],
|
||||||
$cinder_store_project_name = $::os_service_default,
|
$cinder_store_project_name = $facts['os_service_default'],
|
||||||
$cinder_store_user_name = $::os_service_default,
|
$cinder_store_user_name = $facts['os_service_default'],
|
||||||
$cinder_store_password = $::os_service_default,
|
$cinder_store_password = $facts['os_service_default'],
|
||||||
$cinder_store_user_domain_name = $::os_service_default,
|
$cinder_store_user_domain_name = $facts['os_service_default'],
|
||||||
$cinder_store_project_domain_name = $::os_service_default,
|
$cinder_store_project_domain_name = $facts['os_service_default'],
|
||||||
$cinder_os_region_name = 'RegionOne',
|
$cinder_os_region_name = 'RegionOne',
|
||||||
$cinder_volume_type = $::os_service_default,
|
$cinder_volume_type = $facts['os_service_default'],
|
||||||
$cinder_enforce_multipath = $::os_service_default,
|
$cinder_enforce_multipath = $facts['os_service_default'],
|
||||||
$cinder_use_multipath = $::os_service_default,
|
$cinder_use_multipath = $facts['os_service_default'],
|
||||||
$cinder_mount_point_base = $::os_service_default,
|
$cinder_mount_point_base = $facts['os_service_default'],
|
||||||
$store_description = $::os_service_default,
|
$store_description = $facts['os_service_default'],
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include glance::deps
|
include glance::deps
|
||||||
|
|
|
@ -21,44 +21,44 @@
|
||||||
#
|
#
|
||||||
# [*filesystem_store_datadir*]
|
# [*filesystem_store_datadir*]
|
||||||
# (optional) Directory where dist images are stored.
|
# (optional) Directory where dist images are stored.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*filesystem_store_datadirs*]
|
# [*filesystem_store_datadirs*]
|
||||||
# (optional) List of directories where dist images are stored. When using
|
# (optional) List of directories where dist images are stored. When using
|
||||||
# multiple directories, each directory can be given an optional priority,
|
# multiple directories, each directory can be given an optional priority,
|
||||||
# which is an integer that is concatenated to the directory path with
|
# which is an integer that is concatenated to the directory path with
|
||||||
# a colon.
|
# a colon.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*filesystem_store_metadata_file*]
|
# [*filesystem_store_metadata_file*]
|
||||||
# (optional) Filesystem store metadata file.
|
# (optional) Filesystem store metadata file.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*filesystem_store_file_perm*]
|
# [*filesystem_store_file_perm*]
|
||||||
# (optional) File access permissions for the image files.
|
# (optional) File access permissions for the image files.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*filesystem_store_chunk_size*]
|
# [*filesystem_store_chunk_size*]
|
||||||
# (optional) Chunk size, in bytes.
|
# (optional) Chunk size, in bytes.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*filesystem_thin_provisioning*]
|
# [*filesystem_thin_provisioning*]
|
||||||
# (optional) Boolean describing if thin provisioning is enabled or not
|
# (optional) Boolean describing if thin provisioning is enabled or not
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*store_description*]
|
# [*store_description*]
|
||||||
# (optional) Provides constructive information about the store backend to
|
# (optional) Provides constructive information about the store backend to
|
||||||
# end users.
|
# end users.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
define glance::backend::multistore::file(
|
define glance::backend::multistore::file(
|
||||||
$filesystem_store_datadir = $::os_service_default,
|
$filesystem_store_datadir = $facts['os_service_default'],
|
||||||
$filesystem_store_datadirs = $::os_service_default,
|
$filesystem_store_datadirs = $facts['os_service_default'],
|
||||||
$filesystem_store_metadata_file = $::os_service_default,
|
$filesystem_store_metadata_file = $facts['os_service_default'],
|
||||||
$filesystem_store_file_perm = $::os_service_default,
|
$filesystem_store_file_perm = $facts['os_service_default'],
|
||||||
$filesystem_store_chunk_size = $::os_service_default,
|
$filesystem_store_chunk_size = $facts['os_service_default'],
|
||||||
$filesystem_thin_provisioning = $::os_service_default,
|
$filesystem_thin_provisioning = $facts['os_service_default'],
|
||||||
$store_description = $::os_service_default,
|
$store_description = $facts['os_service_default'],
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include glance::deps
|
include glance::deps
|
||||||
|
|
|
@ -21,21 +21,21 @@
|
||||||
#
|
#
|
||||||
# [*https_ca_certificates_file*]
|
# [*https_ca_certificates_file*]
|
||||||
# Optional. Path to the CA bundle file.
|
# Optional. Path to the CA bundle file.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*https_insecure*]
|
# [*https_insecure*]
|
||||||
# Optional. Set verification of the remote server certificate.
|
# Optional. Set verification of the remote server certificate.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*http_proxy_information*]
|
# [*http_proxy_information*]
|
||||||
# Optional. The http/https proxy information to be used to connect to the
|
# Optional. The http/https proxy information to be used to connect to the
|
||||||
# remote server.
|
# remote server.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
define glance::backend::multistore::http(
|
define glance::backend::multistore::http(
|
||||||
$https_ca_certificates_file = $::os_service_default,
|
$https_ca_certificates_file = $facts['os_service_default'],
|
||||||
$https_insecure = $::os_service_default,
|
$https_insecure = $facts['os_service_default'],
|
||||||
$http_proxy_information = $::os_service_default,
|
$http_proxy_information = $facts['os_service_default'],
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include glance::deps
|
include glance::deps
|
||||||
|
|
|
@ -21,20 +21,20 @@
|
||||||
# === Parameters:
|
# === Parameters:
|
||||||
#
|
#
|
||||||
# [*rbd_store_user*]
|
# [*rbd_store_user*]
|
||||||
# Optional. Default: $::os_service_default.
|
# Optional. Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*rbd_store_pool*]
|
# [*rbd_store_pool*]
|
||||||
# Optional. Default: $::os_service_default.
|
# Optional. Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*rbd_store_ceph_conf*]
|
# [*rbd_store_ceph_conf*]
|
||||||
# Optional. Default: $::os_service_default.
|
# Optional. Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*rbd_store_chunk_size*]
|
# [*rbd_store_chunk_size*]
|
||||||
# Optional. Default: $::os_service_default.
|
# Optional. Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*rbd_thin_provisioning*]
|
# [*rbd_thin_provisioning*]
|
||||||
# Optional. Boolean describing if thin provisioning is enabled or not
|
# Optional. Boolean describing if thin provisioning is enabled or not
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*manage_packages*]
|
# [*manage_packages*]
|
||||||
# Optional. Whether we should manage the packages.
|
# Optional. Whether we should manage the packages.
|
||||||
|
@ -49,23 +49,23 @@
|
||||||
# Optional. Timeout value (in seconds) used when connecting
|
# Optional. Timeout value (in seconds) used when connecting
|
||||||
# to ceph cluster. If value <= 0, no timeout is set and
|
# to ceph cluster. If value <= 0, no timeout is set and
|
||||||
# default librados value is used.
|
# default librados value is used.
|
||||||
# Default: $::os_service_default.
|
# Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*store_description*]
|
# [*store_description*]
|
||||||
# (optional) Provides constructive information about the store backend to
|
# (optional) Provides constructive information about the store backend to
|
||||||
# end users.
|
# end users.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
define glance::backend::multistore::rbd(
|
define glance::backend::multistore::rbd(
|
||||||
$rbd_store_user = $::os_service_default,
|
$rbd_store_user = $facts['os_service_default'],
|
||||||
$rbd_store_ceph_conf = $::os_service_default,
|
$rbd_store_ceph_conf = $facts['os_service_default'],
|
||||||
$rbd_store_pool = $::os_service_default,
|
$rbd_store_pool = $facts['os_service_default'],
|
||||||
$rbd_store_chunk_size = $::os_service_default,
|
$rbd_store_chunk_size = $facts['os_service_default'],
|
||||||
$rbd_thin_provisioning = $::os_service_default,
|
$rbd_thin_provisioning = $facts['os_service_default'],
|
||||||
$manage_packages = true,
|
$manage_packages = true,
|
||||||
$package_ensure = 'present',
|
$package_ensure = 'present',
|
||||||
$rados_connect_timeout = $::os_service_default,
|
$rados_connect_timeout = $facts['os_service_default'],
|
||||||
$store_description = $::os_service_default,
|
$store_description = $facts['os_service_default'],
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include glance::deps
|
include glance::deps
|
||||||
|
|
|
@ -21,46 +21,46 @@
|
||||||
#
|
#
|
||||||
# [*s3_store_host*]
|
# [*s3_store_host*]
|
||||||
# (required) The host where the S3 server is listening.
|
# (required) The host where the S3 server is listening.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*s3_store_access_key*]
|
# [*s3_store_access_key*]
|
||||||
# (required) The S3 query token access key.
|
# (required) The S3 query token access key.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*s3_store_secret_key*]
|
# [*s3_store_secret_key*]
|
||||||
# (required) The S3 query token secret key.
|
# (required) The S3 query token secret key.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*s3_store_bucket*]
|
# [*s3_store_bucket*]
|
||||||
# (required) The S3 bucket to be used to store the Glance data.
|
# (required) The S3 bucket to be used to store the Glance data.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*s3_store_create_bucket_on_put*]
|
# [*s3_store_create_bucket_on_put*]
|
||||||
# (optional) Determine whether S3 should create a new bucket.
|
# (optional) Determine whether S3 should create a new bucket.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*s3_store_bucket_url_format*]
|
# [*s3_store_bucket_url_format*]
|
||||||
# (optional) The S3 calling format used to determine the object.
|
# (optional) The S3 calling format used to determine the object.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*s3_store_large_object_size*]
|
# [*s3_store_large_object_size*]
|
||||||
# (optional) What size, in MB, should S3 start chunking image files and do
|
# (optional) What size, in MB, should S3 start chunking image files and do
|
||||||
# a multipart upload in S3.
|
# a multipart upload in S3.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*s3_store_large_object_chunk_size*]
|
# [*s3_store_large_object_chunk_size*]
|
||||||
# (optional) What multipart upload part size, in MB, should S3 use when
|
# (optional) What multipart upload part size, in MB, should S3 use when
|
||||||
# uploading parts.
|
# uploading parts.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*s3_store_thread_pools*]
|
# [*s3_store_thread_pools*]
|
||||||
# (optional) The number of thread pools to perform a multipart upload in S3.
|
# (optional) The number of thread pools to perform a multipart upload in S3.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*store_description*]
|
# [*store_description*]
|
||||||
# (optional) Provides constructive information about the store backend to
|
# (optional) Provides constructive information about the store backend to
|
||||||
# end users.
|
# end users.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*manage_packages*]
|
# [*manage_packages*]
|
||||||
# Optional. Whether we should manage the packages.
|
# Optional. Whether we should manage the packages.
|
||||||
|
@ -76,12 +76,12 @@ define glance::backend::multistore::s3(
|
||||||
$s3_store_access_key,
|
$s3_store_access_key,
|
||||||
$s3_store_secret_key,
|
$s3_store_secret_key,
|
||||||
$s3_store_bucket,
|
$s3_store_bucket,
|
||||||
$s3_store_create_bucket_on_put = $::os_service_default,
|
$s3_store_create_bucket_on_put = $facts['os_service_default'],
|
||||||
$s3_store_bucket_url_format = $::os_service_default,
|
$s3_store_bucket_url_format = $facts['os_service_default'],
|
||||||
$s3_store_large_object_size = $::os_service_default,
|
$s3_store_large_object_size = $facts['os_service_default'],
|
||||||
$s3_store_large_object_chunk_size = $::os_service_default,
|
$s3_store_large_object_chunk_size = $facts['os_service_default'],
|
||||||
$s3_store_thread_pools = $::os_service_default,
|
$s3_store_thread_pools = $facts['os_service_default'],
|
||||||
$store_description = $::os_service_default,
|
$store_description = $facts['os_service_default'],
|
||||||
$manage_packages = true,
|
$manage_packages = true,
|
||||||
$package_ensure = 'present',
|
$package_ensure = 'present',
|
||||||
) {
|
) {
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
# Optional. Useful when keystone auth is version 3. Default: default
|
# Optional. Useful when keystone auth is version 3. Default: default
|
||||||
#
|
#
|
||||||
# [*swift_store_container*]
|
# [*swift_store_container*]
|
||||||
# Optional. Default: $::os_service_default.
|
# Optional. Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*swift_store_auth_version*]
|
# [*swift_store_auth_version*]
|
||||||
# Optional. Default: '3'
|
# Optional. Default: '3'
|
||||||
|
@ -44,16 +44,16 @@
|
||||||
# [*swift_store_large_object_size*]
|
# [*swift_store_large_object_size*]
|
||||||
# Optional. What size, in MB, should Glance start chunking image files
|
# Optional. What size, in MB, should Glance start chunking image files
|
||||||
# and do a large object manifest in Swift?
|
# and do a large object manifest in Swift?
|
||||||
# Default: $::os_service_default.
|
# Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*swift_store_large_object_chunk_size*]
|
# [*swift_store_large_object_chunk_size*]
|
||||||
# Optional. When doing a large object manifest, what size, in MB, should
|
# Optional. When doing a large object manifest, what size, in MB, should
|
||||||
# Glance write chunks to Swift? This amount of data is written
|
# Glance write chunks to Swift? This amount of data is written
|
||||||
# to a temporary disk buffer during the process of chunking.
|
# to a temporary disk buffer during the process of chunking.
|
||||||
# Default: $::os_service_default.
|
# Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*swift_store_create_container_on_put*]
|
# [*swift_store_create_container_on_put*]
|
||||||
# Optional. Default: $::os_service_default.
|
# Optional. Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*swift_store_endpoint_type*]
|
# [*swift_store_endpoint_type*]
|
||||||
# Optional. Endpoint type of Swift service.
|
# Optional. Endpoint type of Swift service.
|
||||||
|
@ -61,11 +61,11 @@
|
||||||
#
|
#
|
||||||
# [*swift_store_service_type*]
|
# [*swift_store_service_type*]
|
||||||
# Optional. Type of the swift service to use.
|
# Optional. Type of the swift service to use.
|
||||||
# Default: $::os_service_default.
|
# Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*swift_store_region*]
|
# [*swift_store_region*]
|
||||||
# Optional. The region of Swift endpoint to use by Glance.
|
# Optional. The region of Swift endpoint to use by Glance.
|
||||||
# Default: $::os_service_default.
|
# Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*default_swift_reference*]
|
# [*default_swift_reference*]
|
||||||
# Optional. The reference to the default swift
|
# Optional. The reference to the default swift
|
||||||
|
@ -75,21 +75,21 @@
|
||||||
#
|
#
|
||||||
# [*swift_buffer_on_upload*]
|
# [*swift_buffer_on_upload*]
|
||||||
# Optional. Buffer image segments before upload to Swift.
|
# Optional. Buffer image segments before upload to Swift.
|
||||||
# Default: $::os_service_default.
|
# Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*swift_upload_buffer_dir*]
|
# [*swift_upload_buffer_dir*]
|
||||||
# Optional. Directory to buffer image segments before upload to Swift.
|
# Optional. Directory to buffer image segments before upload to Swift.
|
||||||
# Default: $::os_service_default.
|
# Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*swift_store_retry_get_count*]
|
# [*swift_store_retry_get_count*]
|
||||||
# Optional. The number of times a Swift download will be retried before
|
# Optional. The number of times a Swift download will be retried before
|
||||||
# the request fails.
|
# the request fails.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*store_description*]
|
# [*store_description*]
|
||||||
# (optional) Provides constructive information about the store backend to
|
# (optional) Provides constructive information about the store backend to
|
||||||
# end users.
|
# end users.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# DEPRECATED PARAMETERS
|
# DEPRECATED PARAMETERS
|
||||||
#
|
#
|
||||||
|
@ -100,21 +100,21 @@ define glance::backend::multistore::swift(
|
||||||
$swift_store_user,
|
$swift_store_user,
|
||||||
$swift_store_key,
|
$swift_store_key,
|
||||||
$swift_store_auth_address = 'http://127.0.0.1:5000/v3/',
|
$swift_store_auth_address = 'http://127.0.0.1:5000/v3/',
|
||||||
$swift_store_container = $::os_service_default,
|
$swift_store_container = $facts['os_service_default'],
|
||||||
$swift_store_auth_version = '3',
|
$swift_store_auth_version = '3',
|
||||||
$swift_store_auth_project_domain_id = 'default',
|
$swift_store_auth_project_domain_id = 'default',
|
||||||
$swift_store_auth_user_domain_id = 'default',
|
$swift_store_auth_user_domain_id = 'default',
|
||||||
$swift_store_large_object_size = $::os_service_default,
|
$swift_store_large_object_size = $facts['os_service_default'],
|
||||||
$swift_store_large_object_chunk_size = $::os_service_default,
|
$swift_store_large_object_chunk_size = $facts['os_service_default'],
|
||||||
$swift_store_create_container_on_put = $::os_service_default,
|
$swift_store_create_container_on_put = $facts['os_service_default'],
|
||||||
$swift_store_endpoint_type = 'internalURL',
|
$swift_store_endpoint_type = 'internalURL',
|
||||||
$swift_store_service_type = $::os_service_default,
|
$swift_store_service_type = $facts['os_service_default'],
|
||||||
$swift_store_region = $::os_service_default,
|
$swift_store_region = $facts['os_service_default'],
|
||||||
$default_swift_reference = 'ref1',
|
$default_swift_reference = 'ref1',
|
||||||
$swift_buffer_on_upload = $::os_service_default,
|
$swift_buffer_on_upload = $facts['os_service_default'],
|
||||||
$swift_upload_buffer_dir = $::os_service_default,
|
$swift_upload_buffer_dir = $facts['os_service_default'],
|
||||||
$swift_store_retry_get_count = $::os_service_default,
|
$swift_store_retry_get_count = $facts['os_service_default'],
|
||||||
$store_description = $::os_service_default,
|
$store_description = $facts['os_service_default'],
|
||||||
# DEPRECATED PARAMETERS
|
# DEPRECATED PARAMETERS
|
||||||
$swift_store_config_file = undef,
|
$swift_store_config_file = undef,
|
||||||
) {
|
) {
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
# verifying vCenter server certificate. If parameter is not set
|
# verifying vCenter server certificate. If parameter is not set
|
||||||
# then system truststore is used. If parameter is set,
|
# then system truststore is used. If parameter is set,
|
||||||
# vcenter_insecure value is ignored.
|
# vcenter_insecure value is ignored.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*vmware_datastores*]
|
# [*vmware_datastores*]
|
||||||
# (Multi-valued) A list of datastores where the image
|
# (Multi-valued) A list of datastores where the image
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
# zero and the directory will be considered for selection last.
|
# zero and the directory will be considered for selection last.
|
||||||
# If multiple datastores have the same weight, then the one with the most
|
# If multiple datastores have the same weight, then the one with the most
|
||||||
# free space available is selected.
|
# free space available is selected.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*vmware_server_host*]
|
# [*vmware_server_host*]
|
||||||
# (required) vCenter/ESXi Server target system.
|
# (required) vCenter/ESXi Server target system.
|
||||||
|
@ -65,29 +65,29 @@
|
||||||
# [*vmware_task_poll_interval*]
|
# [*vmware_task_poll_interval*]
|
||||||
# (optional) The interval used for polling remote tasks invoked on
|
# (optional) The interval used for polling remote tasks invoked on
|
||||||
# vCenter/ESXi server.
|
# vCenter/ESXi server.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*vmware_api_retry_count*]
|
# [*vmware_api_retry_count*]
|
||||||
# (optional) Number of times VMware ESX/VC server API must be retried upon
|
# (optional) Number of times VMware ESX/VC server API must be retried upon
|
||||||
# connection related issues.
|
# connection related issues.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*store_description*]
|
# [*store_description*]
|
||||||
# (optional) Provides constructive information about the store backend to
|
# (optional) Provides constructive information about the store backend to
|
||||||
# end users.
|
# end users.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
define glance::backend::multistore::vsphere(
|
define glance::backend::multistore::vsphere(
|
||||||
$vmware_server_host,
|
$vmware_server_host,
|
||||||
$vmware_server_username,
|
$vmware_server_username,
|
||||||
$vmware_server_password,
|
$vmware_server_password,
|
||||||
$vmware_store_image_dir,
|
$vmware_store_image_dir,
|
||||||
$vmware_ca_file = $::os_service_default,
|
$vmware_ca_file = $facts['os_service_default'],
|
||||||
$vmware_datastores = $::os_service_default,
|
$vmware_datastores = $facts['os_service_default'],
|
||||||
$vmware_insecure = 'True',
|
$vmware_insecure = 'True',
|
||||||
$vmware_task_poll_interval = $::os_service_default,
|
$vmware_task_poll_interval = $facts['os_service_default'],
|
||||||
$vmware_api_retry_count = $::os_service_default,
|
$vmware_api_retry_count = $facts['os_service_default'],
|
||||||
$store_description = $::os_service_default,
|
$store_description = $facts['os_service_default'],
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include glance::deps
|
include glance::deps
|
||||||
|
|
|
@ -6,20 +6,20 @@
|
||||||
# === parameters:
|
# === parameters:
|
||||||
#
|
#
|
||||||
# [*rbd_store_user*]
|
# [*rbd_store_user*]
|
||||||
# Optional. Default: $::os_service_default.
|
# Optional. Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*rbd_store_pool*]
|
# [*rbd_store_pool*]
|
||||||
# Optional. Default: $::os_service_default.
|
# Optional. Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*rbd_store_ceph_conf*]
|
# [*rbd_store_ceph_conf*]
|
||||||
# Optional. Default: $::os_service_default.
|
# Optional. Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*rbd_store_chunk_size*]
|
# [*rbd_store_chunk_size*]
|
||||||
# Optional. Default: $::os_service_default.
|
# Optional. Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*rbd_thin_provisioning*]
|
# [*rbd_thin_provisioning*]
|
||||||
# Optional. Boolean describing if thin provisioning is enabled or not
|
# Optional. Boolean describing if thin provisioning is enabled or not
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*manage_packages*]
|
# [*manage_packages*]
|
||||||
# Optional. Whether we should manage the packages.
|
# Optional. Whether we should manage the packages.
|
||||||
|
@ -34,21 +34,21 @@
|
||||||
# Optional. Timeout value (in seconds) used when connecting
|
# Optional. Timeout value (in seconds) used when connecting
|
||||||
# to ceph cluster. If value <= 0, no timeout is set and
|
# to ceph cluster. If value <= 0, no timeout is set and
|
||||||
# default librados value is used.
|
# default librados value is used.
|
||||||
# Default: $::os_service_default.
|
# Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*multi_store*]
|
# [*multi_store*]
|
||||||
# Optional. Boolean describing if multiple backends will be configured
|
# Optional. Boolean describing if multiple backends will be configured
|
||||||
# Defaults to false
|
# Defaults to false
|
||||||
#
|
#
|
||||||
class glance::backend::rbd(
|
class glance::backend::rbd(
|
||||||
$rbd_store_user = $::os_service_default,
|
$rbd_store_user = $facts['os_service_default'],
|
||||||
$rbd_store_ceph_conf = $::os_service_default,
|
$rbd_store_ceph_conf = $facts['os_service_default'],
|
||||||
$rbd_store_pool = $::os_service_default,
|
$rbd_store_pool = $facts['os_service_default'],
|
||||||
$rbd_store_chunk_size = $::os_service_default,
|
$rbd_store_chunk_size = $facts['os_service_default'],
|
||||||
$rbd_thin_provisioning = $::os_service_default,
|
$rbd_thin_provisioning = $facts['os_service_default'],
|
||||||
$manage_packages = true,
|
$manage_packages = true,
|
||||||
$package_ensure = 'present',
|
$package_ensure = 'present',
|
||||||
$rados_connect_timeout = $::os_service_default,
|
$rados_connect_timeout = $facts['os_service_default'],
|
||||||
$multi_store = false,
|
$multi_store = false,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
|
|
@ -21,25 +21,25 @@
|
||||||
#
|
#
|
||||||
# [*filesystem_store_datadir*]
|
# [*filesystem_store_datadir*]
|
||||||
# (optional) Directory where dist images are stored.
|
# (optional) Directory where dist images are stored.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*filesystem_store_file_perm*]
|
# [*filesystem_store_file_perm*]
|
||||||
# (optional) File access permissions for the image files.
|
# (optional) File access permissions for the image files.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*filesystem_store_chunk_size*]
|
# [*filesystem_store_chunk_size*]
|
||||||
# (optional) Chunk size, in bytes.
|
# (optional) Chunk size, in bytes.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*filesystem_thin_provisioning*]
|
# [*filesystem_thin_provisioning*]
|
||||||
# (optional) Boolean describing if thin provisioning is enabled or not
|
# (optional) Boolean describing if thin provisioning is enabled or not
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
class glance::backend::reserved::staging(
|
class glance::backend::reserved::staging(
|
||||||
$filesystem_store_datadir = $::os_service_default,
|
$filesystem_store_datadir = $facts['os_service_default'],
|
||||||
$filesystem_store_file_perm = $::os_service_default,
|
$filesystem_store_file_perm = $facts['os_service_default'],
|
||||||
$filesystem_store_chunk_size = $::os_service_default,
|
$filesystem_store_chunk_size = $facts['os_service_default'],
|
||||||
$filesystem_thin_provisioning = $::os_service_default,
|
$filesystem_thin_provisioning = $facts['os_service_default'],
|
||||||
) {
|
) {
|
||||||
|
|
||||||
glance_api_config {
|
glance_api_config {
|
||||||
|
|
|
@ -21,25 +21,25 @@
|
||||||
#
|
#
|
||||||
# [*filesystem_store_datadir*]
|
# [*filesystem_store_datadir*]
|
||||||
# (optional) Directory where dist images are stored.
|
# (optional) Directory where dist images are stored.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*filesystem_store_file_perm*]
|
# [*filesystem_store_file_perm*]
|
||||||
# (optional) File access permissions for the image files.
|
# (optional) File access permissions for the image files.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*filesystem_store_chunk_size*]
|
# [*filesystem_store_chunk_size*]
|
||||||
# (optional) Chunk size, in bytes.
|
# (optional) Chunk size, in bytes.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*filesystem_thin_provisioning*]
|
# [*filesystem_thin_provisioning*]
|
||||||
# (optional) Boolean describing if thin provisioning is enabled or not
|
# (optional) Boolean describing if thin provisioning is enabled or not
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
class glance::backend::reserved::tasks(
|
class glance::backend::reserved::tasks(
|
||||||
$filesystem_store_datadir = $::os_service_default,
|
$filesystem_store_datadir = $facts['os_service_default'],
|
||||||
$filesystem_store_file_perm = $::os_service_default,
|
$filesystem_store_file_perm = $facts['os_service_default'],
|
||||||
$filesystem_store_chunk_size = $::os_service_default,
|
$filesystem_store_chunk_size = $facts['os_service_default'],
|
||||||
$filesystem_thin_provisioning = $::os_service_default,
|
$filesystem_thin_provisioning = $facts['os_service_default'],
|
||||||
) {
|
) {
|
||||||
|
|
||||||
glance_api_config {
|
glance_api_config {
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
# Optional. Useful when keystone auth is version 3. Default: default
|
# Optional. Useful when keystone auth is version 3. Default: default
|
||||||
#
|
#
|
||||||
# [*swift_store_container*]
|
# [*swift_store_container*]
|
||||||
# Optional. Default: $::os_service_default.
|
# Optional. Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*swift_store_auth_version*]
|
# [*swift_store_auth_version*]
|
||||||
# Optional. Default: '3'
|
# Optional. Default: '3'
|
||||||
|
@ -29,22 +29,22 @@
|
||||||
# [*swift_store_large_object_size*]
|
# [*swift_store_large_object_size*]
|
||||||
# Optional. What size, in MB, should Glance start chunking image files
|
# Optional. What size, in MB, should Glance start chunking image files
|
||||||
# and do a large object manifest in Swift?
|
# and do a large object manifest in Swift?
|
||||||
# Default: $::os_service_default.
|
# Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*swift_store_large_object_chunk_size*]
|
# [*swift_store_large_object_chunk_size*]
|
||||||
# Optional. When doing a large object manifest, what size, in MB, should
|
# Optional. When doing a large object manifest, what size, in MB, should
|
||||||
# Glance write chunks to Swift? This amount of data is written
|
# Glance write chunks to Swift? This amount of data is written
|
||||||
# to a temporary disk buffer during the process of chunking.
|
# to a temporary disk buffer during the process of chunking.
|
||||||
# Default: $::os_service_default.
|
# Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*swift_store_create_container_on_put*]
|
# [*swift_store_create_container_on_put*]
|
||||||
# Optional. Default: $::os_service_default.
|
# Optional. Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*swift_store_endpoint_type*]
|
# [*swift_store_endpoint_type*]
|
||||||
# Optional. Default: 'internalURL'
|
# Optional. Default: 'internalURL'
|
||||||
#
|
#
|
||||||
# [*swift_store_region*]
|
# [*swift_store_region*]
|
||||||
# Optional. Default: $::os_service_default.
|
# Optional. Default: $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*default_swift_reference*]
|
# [*default_swift_reference*]
|
||||||
# Optional. The reference to the default swift
|
# Optional. The reference to the default swift
|
||||||
|
@ -60,15 +60,15 @@ class glance::backend::swift(
|
||||||
$swift_store_user,
|
$swift_store_user,
|
||||||
$swift_store_key,
|
$swift_store_key,
|
||||||
$swift_store_auth_address = 'http://127.0.0.1:5000/v3/',
|
$swift_store_auth_address = 'http://127.0.0.1:5000/v3/',
|
||||||
$swift_store_container = $::os_service_default,
|
$swift_store_container = $facts['os_service_default'],
|
||||||
$swift_store_auth_version = '3',
|
$swift_store_auth_version = '3',
|
||||||
$swift_store_auth_project_domain_id = 'default',
|
$swift_store_auth_project_domain_id = 'default',
|
||||||
$swift_store_auth_user_domain_id = 'default',
|
$swift_store_auth_user_domain_id = 'default',
|
||||||
$swift_store_large_object_size = $::os_service_default,
|
$swift_store_large_object_size = $facts['os_service_default'],
|
||||||
$swift_store_large_object_chunk_size = $::os_service_default,
|
$swift_store_large_object_chunk_size = $facts['os_service_default'],
|
||||||
$swift_store_create_container_on_put = $::os_service_default,
|
$swift_store_create_container_on_put = $facts['os_service_default'],
|
||||||
$swift_store_endpoint_type = 'internalURL',
|
$swift_store_endpoint_type = 'internalURL',
|
||||||
$swift_store_region = $::os_service_default,
|
$swift_store_region = $facts['os_service_default'],
|
||||||
$default_swift_reference = 'ref1',
|
$default_swift_reference = 'ref1',
|
||||||
$multi_store = false,
|
$multi_store = false,
|
||||||
) {
|
) {
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
# verifying vCenter server certificate. If parameter is not set
|
# verifying vCenter server certificate. If parameter is not set
|
||||||
# then system truststore is used. If parameter is set,
|
# then system truststore is used. If parameter is set,
|
||||||
# vcenter_insecure value is ignored.
|
# vcenter_insecure value is ignored.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*vcenter_datastores*]
|
# [*vcenter_datastores*]
|
||||||
# (Multi-valued) A list of datastores where the image
|
# (Multi-valued) A list of datastores where the image
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
# zero and the directory will be considered for selection last.
|
# zero and the directory will be considered for selection last.
|
||||||
# If multiple datastores have the same weight, then the one with the most
|
# If multiple datastores have the same weight, then the one with the most
|
||||||
# free space available is selected.
|
# free space available is selected.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*vcenter_host*]
|
# [*vcenter_host*]
|
||||||
# (required) vCenter/ESXi Server target system.
|
# (required) vCenter/ESXi Server target system.
|
||||||
|
@ -67,12 +67,12 @@
|
||||||
# [*vcenter_task_poll_interval*]
|
# [*vcenter_task_poll_interval*]
|
||||||
# (optional) The interval used for polling remote tasks invoked on
|
# (optional) The interval used for polling remote tasks invoked on
|
||||||
# vCenter/ESXi server.
|
# vCenter/ESXi server.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*vcenter_api_retry_count*]
|
# [*vcenter_api_retry_count*]
|
||||||
# (optional) Number of times VMware ESX/VC server API must be retried upon
|
# (optional) Number of times VMware ESX/VC server API must be retried upon
|
||||||
# connection related issues.
|
# connection related issues.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*multi_store*]
|
# [*multi_store*]
|
||||||
# (optional) Boolean describing if multiple backends will be configured
|
# (optional) Boolean describing if multiple backends will be configured
|
||||||
|
@ -83,11 +83,11 @@ class glance::backend::vsphere(
|
||||||
$vcenter_user,
|
$vcenter_user,
|
||||||
$vcenter_password,
|
$vcenter_password,
|
||||||
$vcenter_image_dir,
|
$vcenter_image_dir,
|
||||||
$vcenter_ca_file = $::os_service_default,
|
$vcenter_ca_file = $facts['os_service_default'],
|
||||||
$vcenter_datastores = $::os_service_default,
|
$vcenter_datastores = $facts['os_service_default'],
|
||||||
$vcenter_insecure = 'True',
|
$vcenter_insecure = 'True',
|
||||||
$vcenter_task_poll_interval = $::os_service_default,
|
$vcenter_task_poll_interval = $facts['os_service_default'],
|
||||||
$vcenter_api_retry_count = $::os_service_default,
|
$vcenter_api_retry_count = $facts['os_service_default'],
|
||||||
$multi_store = false,
|
$multi_store = false,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
|
|
@ -6,27 +6,27 @@
|
||||||
#
|
#
|
||||||
# [*debug*]
|
# [*debug*]
|
||||||
# (Optional) Should the daemons log debug messages
|
# (Optional) Should the daemons log debug messages
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*use_syslog*]
|
# [*use_syslog*]
|
||||||
# (Optional) Use syslog for logging.
|
# (Optional) Use syslog for logging.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*use_json*]
|
# [*use_json*]
|
||||||
# (Optional) Use json for logging.
|
# (Optional) Use json for logging.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*use_stderr*]
|
# [*use_stderr*]
|
||||||
# (optional) Use stderr for logging
|
# (optional) Use stderr for logging
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*log_facility*]
|
# [*log_facility*]
|
||||||
# (Optional) Syslog facility to receive log lines.
|
# (Optional) Syslog facility to receive log lines.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*log_dir*]
|
# [*log_dir*]
|
||||||
# (optional) Directory where logs should be stored.
|
# (optional) Directory where logs should be stored.
|
||||||
# If set to $::os_service_default, it will not log to any directory.
|
# If set to $facts['os_service_default'], it will not log to any directory.
|
||||||
# Defaults to '/var/log/glance'
|
# Defaults to '/var/log/glance'
|
||||||
#
|
#
|
||||||
# [*log_file*]
|
# [*log_file*]
|
||||||
|
@ -35,38 +35,38 @@
|
||||||
#
|
#
|
||||||
# [*watch_log_file*]
|
# [*watch_log_file*]
|
||||||
# (Optional) Uses logging handler designed to watch file system (boolean value).
|
# (Optional) Uses logging handler designed to watch file system (boolean value).
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*logging_context_format_string*]
|
# [*logging_context_format_string*]
|
||||||
# (optional) Format string to use for log messages with context.
|
# (optional) Format string to use for log messages with context.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
# Example: '%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s\
|
# Example: '%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s\
|
||||||
# [%(request_id)s %(user_identity)s] %(instance)s%(message)s'
|
# [%(request_id)s %(user_identity)s] %(instance)s%(message)s'
|
||||||
#
|
#
|
||||||
# [*logging_default_format_string*]
|
# [*logging_default_format_string*]
|
||||||
# (optional) Format string to use for log messages without context.
|
# (optional) Format string to use for log messages without context.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
# Example: '%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s\
|
# Example: '%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s\
|
||||||
# [-] %(instance)s%(message)s'
|
# [-] %(instance)s%(message)s'
|
||||||
#
|
#
|
||||||
# [*logging_debug_format_suffix*]
|
# [*logging_debug_format_suffix*]
|
||||||
# (optional) Formatted data to append to log format when level is DEBUG.
|
# (optional) Formatted data to append to log format when level is DEBUG.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
# Example: '%(funcName)s %(pathname)s:%(lineno)d'
|
# Example: '%(funcName)s %(pathname)s:%(lineno)d'
|
||||||
#
|
#
|
||||||
# [*logging_exception_prefix*]
|
# [*logging_exception_prefix*]
|
||||||
# (optional) Prefix each line of exception output with this format.
|
# (optional) Prefix each line of exception output with this format.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
# Example: '%(asctime)s.%(msecs)03d %(process)d TRACE %(name)s %(instance)s'
|
# Example: '%(asctime)s.%(msecs)03d %(process)d TRACE %(name)s %(instance)s'
|
||||||
#
|
#
|
||||||
# [*log_config_append*]
|
# [*log_config_append*]
|
||||||
# The name of an additional logging configuration file.
|
# The name of an additional logging configuration file.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
# See https://docs.python.org/2/howto/logging.html
|
# See https://docs.python.org/2/howto/logging.html
|
||||||
#
|
#
|
||||||
# [*default_log_levels*]
|
# [*default_log_levels*]
|
||||||
# (optional) Hash of logger (keys) and level (values) pairs.
|
# (optional) Hash of logger (keys) and level (values) pairs.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
# Example:
|
# Example:
|
||||||
# { 'amqp' => 'WARN', 'amqplib' => 'WARN', 'boto' => 'WARN',
|
# { 'amqp' => 'WARN', 'amqplib' => 'WARN', 'boto' => 'WARN',
|
||||||
# 'sqlalchemy' => 'WARN', 'suds' => 'INFO', 'iso8601' => 'WARN',
|
# 'sqlalchemy' => 'WARN', 'suds' => 'INFO', 'iso8601' => 'WARN',
|
||||||
|
@ -74,49 +74,49 @@
|
||||||
#
|
#
|
||||||
# [*publish_errors*]
|
# [*publish_errors*]
|
||||||
# (optional) Publish error events (boolean value).
|
# (optional) Publish error events (boolean value).
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*fatal_deprecations*]
|
# [*fatal_deprecations*]
|
||||||
# (optional) Make deprecations fatal (boolean value)
|
# (optional) Make deprecations fatal (boolean value)
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*instance_format*]
|
# [*instance_format*]
|
||||||
# (optional) If an instance is passed with the log message, format it
|
# (optional) If an instance is passed with the log message, format it
|
||||||
# like this (string value).
|
# like this (string value).
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
# Example: '[instance: %(uuid)s] '
|
# Example: '[instance: %(uuid)s] '
|
||||||
#
|
#
|
||||||
# [*instance_uuid_format*]
|
# [*instance_uuid_format*]
|
||||||
# (optional) If an instance UUID is passed with the log message, format
|
# (optional) If an instance UUID is passed with the log message, format
|
||||||
# it like this (string value).
|
# it like this (string value).
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
# Example: instance_uuid_format='[instance: %(uuid)s] '
|
# Example: instance_uuid_format='[instance: %(uuid)s] '
|
||||||
#
|
#
|
||||||
# [*log_date_format*]
|
# [*log_date_format*]
|
||||||
# (optional) Format string for %%(asctime)s in log records.
|
# (optional) Format string for %%(asctime)s in log records.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
# Example: 'Y-%m-%d %H:%M:%S'
|
# Example: 'Y-%m-%d %H:%M:%S'
|
||||||
#
|
#
|
||||||
class glance::cache::logging(
|
class glance::cache::logging(
|
||||||
$use_syslog = $::os_service_default,
|
$use_syslog = $facts['os_service_default'],
|
||||||
$use_json = $::os_service_default,
|
$use_json = $facts['os_service_default'],
|
||||||
$use_stderr = $::os_service_default,
|
$use_stderr = $facts['os_service_default'],
|
||||||
$log_facility = $::os_service_default,
|
$log_facility = $facts['os_service_default'],
|
||||||
$log_dir = '/var/log/glance',
|
$log_dir = '/var/log/glance',
|
||||||
$log_file = '/var/log/glance/cache.log',
|
$log_file = '/var/log/glance/cache.log',
|
||||||
$watch_log_file = $::os_service_default,
|
$watch_log_file = $facts['os_service_default'],
|
||||||
$debug = $::os_service_default,
|
$debug = $facts['os_service_default'],
|
||||||
$logging_context_format_string = $::os_service_default,
|
$logging_context_format_string = $facts['os_service_default'],
|
||||||
$logging_default_format_string = $::os_service_default,
|
$logging_default_format_string = $facts['os_service_default'],
|
||||||
$logging_debug_format_suffix = $::os_service_default,
|
$logging_debug_format_suffix = $facts['os_service_default'],
|
||||||
$logging_exception_prefix = $::os_service_default,
|
$logging_exception_prefix = $facts['os_service_default'],
|
||||||
$log_config_append = $::os_service_default,
|
$log_config_append = $facts['os_service_default'],
|
||||||
$default_log_levels = $::os_service_default,
|
$default_log_levels = $facts['os_service_default'],
|
||||||
$publish_errors = $::os_service_default,
|
$publish_errors = $facts['os_service_default'],
|
||||||
$fatal_deprecations = $::os_service_default,
|
$fatal_deprecations = $facts['os_service_default'],
|
||||||
$instance_format = $::os_service_default,
|
$instance_format = $facts['os_service_default'],
|
||||||
$instance_uuid_format = $::os_service_default,
|
$instance_uuid_format = $facts['os_service_default'],
|
||||||
$log_date_format = $::os_service_default,
|
$log_date_format = $facts['os_service_default'],
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include glance::deps
|
include glance::deps
|
||||||
|
|
|
@ -8,41 +8,41 @@
|
||||||
# (Optional) Indicate whether this resource may be shared with the domain
|
# (Optional) Indicate whether this resource may be shared with the domain
|
||||||
# received in the requests "origin" header.
|
# received in the requests "origin" header.
|
||||||
# (string value)
|
# (string value)
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*allow_credentials*]
|
# [*allow_credentials*]
|
||||||
# (Optional) Indicate that the actual request can include user credentials.
|
# (Optional) Indicate that the actual request can include user credentials.
|
||||||
# (boolean value)
|
# (boolean value)
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*expose_headers*]
|
# [*expose_headers*]
|
||||||
# (Optional) Indicate which headers are safe to expose to the API.
|
# (Optional) Indicate which headers are safe to expose to the API.
|
||||||
# (list value)
|
# (list value)
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*max_age*]
|
# [*max_age*]
|
||||||
# (Optional) Maximum cache age of CORS preflight requests.
|
# (Optional) Maximum cache age of CORS preflight requests.
|
||||||
# (integer value)
|
# (integer value)
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*allow_methods*]
|
# [*allow_methods*]
|
||||||
# (Optional) Indicate which methods can be used during the actual request.
|
# (Optional) Indicate which methods can be used during the actual request.
|
||||||
# (list value)
|
# (list value)
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*allow_headers*]
|
# [*allow_headers*]
|
||||||
# (Optional) Indicate which header field names may be used during the actual
|
# (Optional) Indicate which header field names may be used during the actual
|
||||||
# request.
|
# request.
|
||||||
# (list value)
|
# (list value)
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
class glance::cors (
|
class glance::cors (
|
||||||
$allowed_origin = $::os_service_default,
|
$allowed_origin = $facts['os_service_default'],
|
||||||
$allow_credentials = $::os_service_default,
|
$allow_credentials = $facts['os_service_default'],
|
||||||
$expose_headers = $::os_service_default,
|
$expose_headers = $facts['os_service_default'],
|
||||||
$max_age = $::os_service_default,
|
$max_age = $facts['os_service_default'],
|
||||||
$allow_methods = $::os_service_default,
|
$allow_methods = $facts['os_service_default'],
|
||||||
$allow_headers = $::os_service_default,
|
$allow_headers = $facts['os_service_default'],
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include glance::deps
|
include glance::deps
|
||||||
|
|
|
@ -6,28 +6,28 @@
|
||||||
#
|
#
|
||||||
# [*detailed*]
|
# [*detailed*]
|
||||||
# (Optional) Show more detailed information as part of the response.
|
# (Optional) Show more detailed information as part of the response.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*backends*]
|
# [*backends*]
|
||||||
# (Optional) Additional backends that can perform health checks and report
|
# (Optional) Additional backends that can perform health checks and report
|
||||||
# that information back as part of a request.
|
# that information back as part of a request.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*disable_by_file_path*]
|
# [*disable_by_file_path*]
|
||||||
# (Optional) Check the presence of a file to determine if an application
|
# (Optional) Check the presence of a file to determine if an application
|
||||||
# is running on a port.
|
# is running on a port.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*disable_by_file_paths*]
|
# [*disable_by_file_paths*]
|
||||||
# (Optional) Check the presence of a file to determine if an application
|
# (Optional) Check the presence of a file to determine if an application
|
||||||
# is running on a port. Expects a "port:path" list of strings.
|
# is running on a port. Expects a "port:path" list of strings.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
class glance::healthcheck (
|
class glance::healthcheck (
|
||||||
$detailed = $::os_service_default,
|
$detailed = $facts['os_service_default'],
|
||||||
$backends = $::os_service_default,
|
$backends = $facts['os_service_default'],
|
||||||
$disable_by_file_path = $::os_service_default,
|
$disable_by_file_path = $facts['os_service_default'],
|
||||||
$disable_by_file_paths = $::os_service_default,
|
$disable_by_file_paths = $facts['os_service_default'],
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include glance::deps
|
include glance::deps
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
#
|
#
|
||||||
# [*backend*]
|
# [*backend*]
|
||||||
# (Optional) Specify the key manager implementation.
|
# (Optional) Specify the key manager implementation.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
class glance::key_manager (
|
class glance::key_manager (
|
||||||
$backend = $::os_service_default,
|
$backend = $facts['os_service_default'],
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include glance::deps
|
include glance::deps
|
||||||
|
|
|
@ -6,46 +6,46 @@
|
||||||
#
|
#
|
||||||
# [*barbican_endpoint*]
|
# [*barbican_endpoint*]
|
||||||
# (Optional) Use this endpoint to connect to Barbican.
|
# (Optional) Use this endpoint to connect to Barbican.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*barbican_api_version*]
|
# [*barbican_api_version*]
|
||||||
# (Optional) Version of the Barbican API.
|
# (Optional) Version of the Barbican API.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*auth_endpoint*]
|
# [*auth_endpoint*]
|
||||||
# (Optional) Use this endpoint to connect to Keystone.
|
# (Optional) Use this endpoint to connect to Keystone.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*retry_delay*]
|
# [*retry_delay*]
|
||||||
# (Optional) Number of seconds to wait before retrying poll for key creation
|
# (Optional) Number of seconds to wait before retrying poll for key creation
|
||||||
# completion.
|
# completion.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*number_of_retries*]
|
# [*number_of_retries*]
|
||||||
# (Optional) Number of times to retry poll fo key creation completion.
|
# (Optional) Number of times to retry poll fo key creation completion.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*barbican_endpoint_type*]
|
# [*barbican_endpoint_type*]
|
||||||
# (Optional) Specifies the type of endpoint.
|
# (Optional) Specifies the type of endpoint.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*barbican_region_name*]
|
# [*barbican_region_name*]
|
||||||
# (Optional) Specifies the region of the chosen endpoint.
|
# (Optional) Specifies the region of the chosen endpoint.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*send_service_user_token*]
|
# [*send_service_user_token*]
|
||||||
# (Optional) The service uses service token feature when this is set as true.
|
# (Optional) The service uses service token feature when this is set as true.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
class glance::key_manager::barbican (
|
class glance::key_manager::barbican (
|
||||||
$barbican_endpoint = $::os_service_default,
|
$barbican_endpoint = $facts['os_service_default'],
|
||||||
$barbican_api_version = $::os_service_default,
|
$barbican_api_version = $facts['os_service_default'],
|
||||||
$auth_endpoint = $::os_service_default,
|
$auth_endpoint = $facts['os_service_default'],
|
||||||
$retry_delay = $::os_service_default,
|
$retry_delay = $facts['os_service_default'],
|
||||||
$number_of_retries = $::os_service_default,
|
$number_of_retries = $facts['os_service_default'],
|
||||||
$barbican_endpoint_type = $::os_service_default,
|
$barbican_endpoint_type = $facts['os_service_default'],
|
||||||
$barbican_region_name = $::os_service_default,
|
$barbican_region_name = $facts['os_service_default'],
|
||||||
$send_service_user_token = $::os_service_default,
|
$send_service_user_token = $facts['os_service_default'],
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include glance::deps
|
include glance::deps
|
||||||
|
|
|
@ -29,13 +29,13 @@
|
||||||
#
|
#
|
||||||
# [*system_scope*]
|
# [*system_scope*]
|
||||||
# (Optional) Scope for system operations.
|
# (Optional) Scope for system operations.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*insecure*]
|
# [*insecure*]
|
||||||
# (Optional) If true, explicitly allow TLS without checking server cert
|
# (Optional) If true, explicitly allow TLS without checking server cert
|
||||||
# against any certificate authorities. WARNING: not recommended. Use with
|
# against any certificate authorities. WARNING: not recommended. Use with
|
||||||
# caution.
|
# caution.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*auth_type*]
|
# [*auth_type*]
|
||||||
# (Optional) Authentication type to load
|
# (Optional) Authentication type to load
|
||||||
|
@ -43,24 +43,24 @@
|
||||||
#
|
#
|
||||||
# [*auth_version*]
|
# [*auth_version*]
|
||||||
# (Optional) API version of the admin Identity API endpoint.
|
# (Optional) API version of the admin Identity API endpoint.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*cafile*]
|
# [*cafile*]
|
||||||
# (Optional) A PEM encoded Certificate Authority to use when verifying HTTPs
|
# (Optional) A PEM encoded Certificate Authority to use when verifying HTTPs
|
||||||
# connections.
|
# connections.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*certfile*]
|
# [*certfile*]
|
||||||
# (Optional) Required if identity server requires client certificate
|
# (Optional) Required if identity server requires client certificate
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*keyfile*]
|
# [*keyfile*]
|
||||||
# (Optional) Required if identity server requires client certificate
|
# (Optional) Required if identity server requires client certificate
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*region_name*]
|
# [*region_name*]
|
||||||
# (Optional) The region in which the identity server can be found.
|
# (Optional) The region in which the identity server can be found.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
class glance::key_manager::barbican::service_user(
|
class glance::key_manager::barbican::service_user(
|
||||||
$password,
|
$password,
|
||||||
|
@ -69,14 +69,14 @@ class glance::key_manager::barbican::service_user(
|
||||||
$project_name = 'services',
|
$project_name = 'services',
|
||||||
$user_domain_name = 'Default',
|
$user_domain_name = 'Default',
|
||||||
$project_domain_name = 'Default',
|
$project_domain_name = 'Default',
|
||||||
$system_scope = $::os_service_default,
|
$system_scope = $facts['os_service_default'],
|
||||||
$insecure = $::os_service_default,
|
$insecure = $facts['os_service_default'],
|
||||||
$auth_type = 'password',
|
$auth_type = 'password',
|
||||||
$auth_version = $::os_service_default,
|
$auth_version = $facts['os_service_default'],
|
||||||
$cafile = $::os_service_default,
|
$cafile = $facts['os_service_default'],
|
||||||
$certfile = $::os_service_default,
|
$certfile = $facts['os_service_default'],
|
||||||
$keyfile = $::os_service_default,
|
$keyfile = $facts['os_service_default'],
|
||||||
$region_name = $::os_service_default,
|
$region_name = $facts['os_service_default'],
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include glance::deps
|
include glance::deps
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
#
|
#
|
||||||
# [*system_scope*]
|
# [*system_scope*]
|
||||||
# (Optional) Scope for system operations.
|
# (Optional) Scope for system operations.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*auth_type*]
|
# [*auth_type*]
|
||||||
# (Optional) Authentication type to load
|
# (Optional) Authentication type to load
|
||||||
|
@ -41,19 +41,19 @@
|
||||||
# [*service_type*]
|
# [*service_type*]
|
||||||
# (Optional) The name or type of the service as it appears in the service
|
# (Optional) The name or type of the service as it appears in the service
|
||||||
# catalog. This is used to validate tokens that have restricted access rules.
|
# catalog. This is used to validate tokens that have restricted access rules.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*valid_interfaces*]
|
# [*valid_interfaces*]
|
||||||
# (Optional) List of interfaces, in order of preference, for endpoint URL.
|
# (Optional) List of interfaces, in order of preference, for endpoint URL.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*region_name*]
|
# [*region_name*]
|
||||||
# (Optional) The region in which the identity server can be found.
|
# (Optional) The region in which the identity server can be found.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*endpoint_override*]
|
# [*endpoint_override*]
|
||||||
# (Optional) Always use this endpoint URL for requests for this client.
|
# (Optional) Always use this endpoint URL for requests for this client.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
class glance::limit(
|
class glance::limit(
|
||||||
$endpoint_id,
|
$endpoint_id,
|
||||||
|
@ -63,12 +63,12 @@ class glance::limit(
|
||||||
$project_name = 'services',
|
$project_name = 'services',
|
||||||
$user_domain_name = 'Default',
|
$user_domain_name = 'Default',
|
||||||
$project_domain_name = 'Default',
|
$project_domain_name = 'Default',
|
||||||
$system_scope = $::os_service_default,
|
$system_scope = $facts['os_service_default'],
|
||||||
$auth_type = 'password',
|
$auth_type = 'password',
|
||||||
$service_type = $::os_service_default,
|
$service_type = $facts['os_service_default'],
|
||||||
$valid_interfaces = $::os_service_default,
|
$valid_interfaces = $facts['os_service_default'],
|
||||||
$region_name = $::os_service_default,
|
$region_name = $facts['os_service_default'],
|
||||||
$endpoint_override = $::os_service_default,
|
$endpoint_override = $facts['os_service_default'],
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include glance::deps
|
include glance::deps
|
||||||
|
|
|
@ -5,40 +5,40 @@
|
||||||
# (optional) A URL representing the messaging driver to use and its full
|
# (optional) A URL representing the messaging driver to use and its full
|
||||||
# configuration. Transport URLs take the form:
|
# configuration. Transport URLs take the form:
|
||||||
# transport://user:pass@host1:port[,hostN:portN]/virtual_host
|
# transport://user:pass@host1:port[,hostN:portN]/virtual_host
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*rpc_response_timeout*]
|
# [*rpc_response_timeout*]
|
||||||
# (Optional) Seconds to wait for a response from a call.
|
# (Optional) Seconds to wait for a response from a call.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*control_exchange*]
|
# [*control_exchange*]
|
||||||
# (Optional) The default exchange under which topics are scoped. May be
|
# (Optional) The default exchange under which topics are scoped. May be
|
||||||
# overridden by an exchange name specified in the transport_url
|
# overridden by an exchange name specified in the transport_url
|
||||||
# option.
|
# option.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*notification_transport_url*]
|
# [*notification_transport_url*]
|
||||||
# (optional) Connection url for oslo messaging notification backend. An
|
# (optional) Connection url for oslo messaging notification backend. An
|
||||||
# example rabbit url would be, rabbit://user:pass@host:port/virtual_host
|
# example rabbit url would be, rabbit://user:pass@host:port/virtual_host
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*rabbit_ha_queues*]
|
# [*rabbit_ha_queues*]
|
||||||
# (Optional) Use HA queues in RabbitMQ (x-ha-policy: all). If you change this
|
# (Optional) Use HA queues in RabbitMQ (x-ha-policy: all). If you change this
|
||||||
# option, you must wipe the RabbitMQ database. (boolean value)
|
# option, you must wipe the RabbitMQ database. (boolean value)
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*rabbit_heartbeat_timeout_threshold*]
|
# [*rabbit_heartbeat_timeout_threshold*]
|
||||||
# (Optional) Number of seconds after which the Rabbit broker is
|
# (Optional) Number of seconds after which the Rabbit broker is
|
||||||
# considered down if heartbeat's keep-alive fails
|
# considered down if heartbeat's keep-alive fails
|
||||||
# (0 disable the heartbeat). EXPERIMENTAL. (integer value)
|
# (0 disable the heartbeat). EXPERIMENTAL. (integer value)
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*rabbit_heartbeat_rate*]
|
# [*rabbit_heartbeat_rate*]
|
||||||
# (optional) How often during the rabbit_heartbeat_timeout_threshold period to
|
# (optional) How often during the rabbit_heartbeat_timeout_threshold period to
|
||||||
# check the heartbeat on RabbitMQ connection. (i.e. rabbit_heartbeat_rate=2
|
# check the heartbeat on RabbitMQ connection. (i.e. rabbit_heartbeat_rate=2
|
||||||
# when rabbit_heartbeat_timeout_threshold=60, the heartbeat will be checked
|
# when rabbit_heartbeat_timeout_threshold=60, the heartbeat will be checked
|
||||||
# every 30 seconds.
|
# every 30 seconds.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*rabbit_heartbeat_in_pthread*]
|
# [*rabbit_heartbeat_in_pthread*]
|
||||||
# (Optional) EXPERIMENTAL: Run the health check heartbeat thread
|
# (Optional) EXPERIMENTAL: Run the health check heartbeat thread
|
||||||
|
@ -48,81 +48,81 @@
|
||||||
# example if the parent process have monkey patched the
|
# example if the parent process have monkey patched the
|
||||||
# stdlib by using eventlet/greenlet then the heartbeat
|
# stdlib by using eventlet/greenlet then the heartbeat
|
||||||
# will be run through a green thread.
|
# will be run through a green thread.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*rabbit_use_ssl*]
|
# [*rabbit_use_ssl*]
|
||||||
# (Optional) Connect over SSL for RabbitMQ. (boolean value)
|
# (Optional) Connect over SSL for RabbitMQ. (boolean value)
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*kombu_ssl_ca_certs*]
|
# [*kombu_ssl_ca_certs*]
|
||||||
# (Optional) SSL certification authority file (valid only if SSL enabled).
|
# (Optional) SSL certification authority file (valid only if SSL enabled).
|
||||||
# (string value)
|
# (string value)
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*kombu_ssl_certfile*]
|
# [*kombu_ssl_certfile*]
|
||||||
# (Optional) SSL cert file (valid only if SSL enabled). (string value)
|
# (Optional) SSL cert file (valid only if SSL enabled). (string value)
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*kombu_ssl_keyfile*]
|
# [*kombu_ssl_keyfile*]
|
||||||
# (Optional) SSL key file (valid only if SSL enabled). (string value)
|
# (Optional) SSL key file (valid only if SSL enabled). (string value)
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*kombu_ssl_version*]
|
# [*kombu_ssl_version*]
|
||||||
# (Optional) SSL version to use (valid only if SSL enabled). '
|
# (Optional) SSL version to use (valid only if SSL enabled). '
|
||||||
# Valid values are TLSv1 and SSLv23. SSLv2, SSLv3, TLSv1_1,
|
# Valid values are TLSv1 and SSLv23. SSLv2, SSLv3, TLSv1_1,
|
||||||
# and TLSv1_2 may be available on some distributions. (string value)
|
# and TLSv1_2 may be available on some distributions. (string value)
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*kombu_reconnect_delay*]
|
# [*kombu_reconnect_delay*]
|
||||||
# (Optional) How long to wait before reconnecting in response
|
# (Optional) How long to wait before reconnecting in response
|
||||||
# to an AMQP consumer cancel notification. (floating point value)
|
# to an AMQP consumer cancel notification. (floating point value)
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*kombu_failover_strategy*]
|
# [*kombu_failover_strategy*]
|
||||||
# (Optional) Determines how the next RabbitMQ node is chosen in case the one
|
# (Optional) Determines how the next RabbitMQ node is chosen in case the one
|
||||||
# we are currently connected to becomes unavailable. Takes effect only if
|
# we are currently connected to becomes unavailable. Takes effect only if
|
||||||
# more than one RabbitMQ node is provided in config. (string value)
|
# more than one RabbitMQ node is provided in config. (string value)
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*rabbit_notification_topic*]
|
# [*rabbit_notification_topic*]
|
||||||
# AMQP topic used for OpenStack notifications. (list value)
|
# AMQP topic used for OpenStack notifications. (list value)
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*amqp_durable_queues*]
|
# [*amqp_durable_queues*]
|
||||||
# (optional) Define queues as "durable" to rabbitmq. (boolean value)
|
# (optional) Define queues as "durable" to rabbitmq. (boolean value)
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*kombu_compression*]
|
# [*kombu_compression*]
|
||||||
# (optional) Possible values are: gzip, bz2. If not set compression will not
|
# (optional) Possible values are: gzip, bz2. If not set compression will not
|
||||||
# be used. This option may not be available in future versions. EXPERIMENTAL.
|
# be used. This option may not be available in future versions. EXPERIMENTAL.
|
||||||
# (string value)
|
# (string value)
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*notification_driver*]
|
# [*notification_driver*]
|
||||||
# The Drivers(s) to handle sending notifications. Possible values are
|
# The Drivers(s) to handle sending notifications. Possible values are
|
||||||
# messaging, messagingv2, routing, log, test, noop (multi valued)
|
# messaging, messagingv2, routing, log, test, noop (multi valued)
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
class glance::notify::rabbitmq(
|
class glance::notify::rabbitmq(
|
||||||
$default_transport_url = $::os_service_default,
|
$default_transport_url = $facts['os_service_default'],
|
||||||
$rpc_response_timeout = $::os_service_default,
|
$rpc_response_timeout = $facts['os_service_default'],
|
||||||
$control_exchange = $::os_service_default,
|
$control_exchange = $facts['os_service_default'],
|
||||||
$notification_transport_url = $::os_service_default,
|
$notification_transport_url = $facts['os_service_default'],
|
||||||
$rabbit_ha_queues = $::os_service_default,
|
$rabbit_ha_queues = $facts['os_service_default'],
|
||||||
$rabbit_heartbeat_timeout_threshold = $::os_service_default,
|
$rabbit_heartbeat_timeout_threshold = $facts['os_service_default'],
|
||||||
$rabbit_heartbeat_rate = $::os_service_default,
|
$rabbit_heartbeat_rate = $facts['os_service_default'],
|
||||||
$rabbit_heartbeat_in_pthread = $::os_service_default,
|
$rabbit_heartbeat_in_pthread = $facts['os_service_default'],
|
||||||
$rabbit_use_ssl = $::os_service_default,
|
$rabbit_use_ssl = $facts['os_service_default'],
|
||||||
$kombu_ssl_ca_certs = $::os_service_default,
|
$kombu_ssl_ca_certs = $facts['os_service_default'],
|
||||||
$kombu_ssl_certfile = $::os_service_default,
|
$kombu_ssl_certfile = $facts['os_service_default'],
|
||||||
$kombu_ssl_keyfile = $::os_service_default,
|
$kombu_ssl_keyfile = $facts['os_service_default'],
|
||||||
$kombu_ssl_version = $::os_service_default,
|
$kombu_ssl_version = $facts['os_service_default'],
|
||||||
$kombu_reconnect_delay = $::os_service_default,
|
$kombu_reconnect_delay = $facts['os_service_default'],
|
||||||
$kombu_failover_strategy = $::os_service_default,
|
$kombu_failover_strategy = $facts['os_service_default'],
|
||||||
$rabbit_notification_topic = $::os_service_default,
|
$rabbit_notification_topic = $facts['os_service_default'],
|
||||||
$amqp_durable_queues = $::os_service_default,
|
$amqp_durable_queues = $facts['os_service_default'],
|
||||||
$kombu_compression = $::os_service_default,
|
$kombu_compression = $facts['os_service_default'],
|
||||||
$notification_driver = $::os_service_default,
|
$notification_driver = $facts['os_service_default'],
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include glance::deps
|
include glance::deps
|
||||||
|
|
|
@ -13,7 +13,7 @@ class glance::params {
|
||||||
|
|
||||||
$glance_wsgi_script_source = '/usr/bin/glance-wsgi-api'
|
$glance_wsgi_script_source = '/usr/bin/glance-wsgi-api'
|
||||||
|
|
||||||
case $::osfamily {
|
case $facts['os']['family'] {
|
||||||
'RedHat': {
|
'RedHat': {
|
||||||
$package_name = 'openstack-glance'
|
$package_name = 'openstack-glance'
|
||||||
$api_package_name = undef
|
$api_package_name = undef
|
||||||
|
@ -31,8 +31,7 @@ class glance::params {
|
||||||
$glance_wsgi_script_path = '/usr/lib/cgi-bin/glance'
|
$glance_wsgi_script_path = '/usr/lib/cgi-bin/glance'
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, \
|
fail("Unsupported osfamily: ${facts['os']['family']}")
|
||||||
module ${module_name} only support osfamily RedHat and Debian")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,12 +6,12 @@
|
||||||
#
|
#
|
||||||
# [*enforce_scope*]
|
# [*enforce_scope*]
|
||||||
# (Optional) Whether or not to enforce scope when evaluating policies.
|
# (Optional) Whether or not to enforce scope when evaluating policies.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*enforce_new_defaults*]
|
# [*enforce_new_defaults*]
|
||||||
# (Optional) Whether or not to use old deprecated defaults when evaluating
|
# (Optional) Whether or not to use old deprecated defaults when evaluating
|
||||||
# policies.
|
# policies.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*policies*]
|
# [*policies*]
|
||||||
# (Optional) Set of policies to configure for glance
|
# (Optional) Set of policies to configure for glance
|
||||||
|
@ -34,11 +34,11 @@
|
||||||
#
|
#
|
||||||
# [*policy_default_rule*]
|
# [*policy_default_rule*]
|
||||||
# (Optional) Default rule. Enforced when a requested rule is not found.
|
# (Optional) Default rule. Enforced when a requested rule is not found.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*policy_dirs*]
|
# [*policy_dirs*]
|
||||||
# (Optional) Path to the glance policy folder
|
# (Optional) Path to the glance policy folder
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*purge_config*]
|
# [*purge_config*]
|
||||||
# (optional) Whether to set only the specified policy rules in the policy
|
# (optional) Whether to set only the specified policy rules in the policy
|
||||||
|
@ -46,12 +46,12 @@
|
||||||
# Defaults to false.
|
# Defaults to false.
|
||||||
#
|
#
|
||||||
class glance::policy (
|
class glance::policy (
|
||||||
$enforce_scope = $::os_service_default,
|
$enforce_scope = $facts['os_service_default'],
|
||||||
$enforce_new_defaults = $::os_service_default,
|
$enforce_new_defaults = $facts['os_service_default'],
|
||||||
$policies = {},
|
$policies = {},
|
||||||
$policy_path = '/etc/glance/policy.yaml',
|
$policy_path = '/etc/glance/policy.yaml',
|
||||||
$policy_default_rule = $::os_service_default,
|
$policy_default_rule = $facts['os_service_default'],
|
||||||
$policy_dirs = $::os_service_default,
|
$policy_dirs = $facts['os_service_default'],
|
||||||
$purge_config = false,
|
$purge_config = false,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
|
|
@ -7,16 +7,16 @@
|
||||||
# [*task_pool_threads*]
|
# [*task_pool_threads*]
|
||||||
# (Optional) The number of thredas (per worker process) in the pool for
|
# (Optional) The number of thredas (per worker process) in the pool for
|
||||||
# processing asynchronous tasks.
|
# processing asynchronous tasks.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
# [*python_interpreter*]
|
# [*python_interpreter*]
|
||||||
# (Optional) Path to the python interpreter to use when spawning external
|
# (Optional) Path to the python interpreter to use when spawning external
|
||||||
# processes.
|
# processes.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
class glance::wsgi (
|
class glance::wsgi (
|
||||||
$task_pool_threads = $::os_service_default,
|
$task_pool_threads = $facts['os_service_default'],
|
||||||
$python_interpreter = $::os_service_default,
|
$python_interpreter = $facts['os_service_default'],
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include glance::deps
|
include glance::deps
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#
|
#
|
||||||
# [*servername*]
|
# [*servername*]
|
||||||
# (Optional) The servername for the virtualhost.
|
# (Optional) The servername for the virtualhost.
|
||||||
# Defaults to $::fqdn
|
# Defaults to $facts['networking']['fqdn']
|
||||||
#
|
#
|
||||||
# [*port*]
|
# [*port*]
|
||||||
# (Optional) The port.
|
# (Optional) The port.
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
#
|
#
|
||||||
# [*workers*]
|
# [*workers*]
|
||||||
# (Optional) Number of WSGI workers to spawn.
|
# (Optional) Number of WSGI workers to spawn.
|
||||||
# Defaults to $::os_workers
|
# Defaults to $facts['os_workers']
|
||||||
#
|
#
|
||||||
# [*priority*]
|
# [*priority*]
|
||||||
# (Optional) The priority for the vhost.
|
# (Optional) The priority for the vhost.
|
||||||
|
@ -125,12 +125,12 @@
|
||||||
# class { 'glance::wsgi::apache': }
|
# class { 'glance::wsgi::apache': }
|
||||||
#
|
#
|
||||||
class glance::wsgi::apache (
|
class glance::wsgi::apache (
|
||||||
$servername = $::fqdn,
|
$servername = $facts['networking']['fqdn'],
|
||||||
$port = 9292,
|
$port = 9292,
|
||||||
$bind_host = undef,
|
$bind_host = undef,
|
||||||
$path = '/',
|
$path = '/',
|
||||||
$ssl = false,
|
$ssl = false,
|
||||||
$workers = $::os_workers,
|
$workers = $facts['os_workers'],
|
||||||
$ssl_cert = undef,
|
$ssl_cert = undef,
|
||||||
$ssl_key = undef,
|
$ssl_key = undef,
|
||||||
$ssl_chain = undef,
|
$ssl_chain = undef,
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#
|
#
|
||||||
# [*processes*]
|
# [*processes*]
|
||||||
# (Optional) Number of processes.
|
# (Optional) Number of processes.
|
||||||
# Defaults to $::os_workers.
|
# Defaults to $facts['os_workers'].
|
||||||
#
|
#
|
||||||
# [*threads*]
|
# [*threads*]
|
||||||
# (Optional) Number of threads.
|
# (Optional) Number of threads.
|
||||||
|
@ -22,14 +22,14 @@
|
||||||
# Defaults to 100
|
# Defaults to 100
|
||||||
#
|
#
|
||||||
class glance::wsgi::uwsgi (
|
class glance::wsgi::uwsgi (
|
||||||
$processes = $::os_workers,
|
$processes = $facts['os_workers'],
|
||||||
$threads = 32,
|
$threads = 32,
|
||||||
$listen_queue_size = 100,
|
$listen_queue_size = 100,
|
||||||
){
|
){
|
||||||
|
|
||||||
include glance::deps
|
include glance::deps
|
||||||
|
|
||||||
if $::operatingsystem != 'Debian'{
|
if $facts['os']['name'] != 'Debian'{
|
||||||
warning('This class is only valid for Debian, as other operating systems are not using uwsgi by default.')
|
warning('This class is only valid for Debian, as other operating systems are not using uwsgi by default.')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -549,7 +549,7 @@ describe 'glance::api' do
|
||||||
end
|
end
|
||||||
|
|
||||||
let(:platform_params) do
|
let(:platform_params) do
|
||||||
case facts[:osfamily]
|
case facts[:os]['family']
|
||||||
when 'Debian'
|
when 'Debian'
|
||||||
{ :lock_path => '/var/lock/glance' }
|
{ :lock_path => '/var/lock/glance' }
|
||||||
when 'RedHat'
|
when 'RedHat'
|
||||||
|
@ -558,8 +558,8 @@ describe 'glance::api' do
|
||||||
end
|
end
|
||||||
|
|
||||||
it_configures 'glance::api'
|
it_configures 'glance::api'
|
||||||
if facts[:osfamily] == 'Debian'
|
if facts[:os]['family'] == 'Debian'
|
||||||
it_configures "glance::api on #{facts[:osfamily]}"
|
it_configures "glance::api on #{facts[:os]['family']}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -59,7 +59,7 @@ describe 'glance::backend::rbd' do
|
||||||
end
|
end
|
||||||
|
|
||||||
let(:platform_params) do
|
let(:platform_params) do
|
||||||
case facts[:osfamily]
|
case facts[:os]['family']
|
||||||
when 'Debian'
|
when 'Debian'
|
||||||
{ :pyceph_package_name => 'python3-ceph' }
|
{ :pyceph_package_name => 'python3-ceph' }
|
||||||
when 'RedHat'
|
when 'RedHat'
|
||||||
|
|
|
@ -60,7 +60,7 @@ describe 'glance::cache::cleaner' do
|
||||||
end
|
end
|
||||||
|
|
||||||
let(:platform_params) do
|
let(:platform_params) do
|
||||||
case facts[:osfamily]
|
case facts[:os]['family']
|
||||||
when 'Debian'
|
when 'Debian'
|
||||||
{ :api_package_name => 'glance-api' }
|
{ :api_package_name => 'glance-api' }
|
||||||
when 'RedHat'
|
when 'RedHat'
|
||||||
|
|
|
@ -59,7 +59,7 @@ describe 'glance::cache::pruner' do
|
||||||
end
|
end
|
||||||
|
|
||||||
let(:platform_params) do
|
let(:platform_params) do
|
||||||
case facts[:osfamily]
|
case facts[:os]['family']
|
||||||
when 'Debian'
|
when 'Debian'
|
||||||
{ :api_package_name => 'glance-api' }
|
{ :api_package_name => 'glance-api' }
|
||||||
when 'RedHat'
|
when 'RedHat'
|
||||||
|
|
|
@ -22,7 +22,7 @@ describe 'glance::client' do
|
||||||
end
|
end
|
||||||
|
|
||||||
let(:platform_params) do
|
let(:platform_params) do
|
||||||
case facts[:osfamily]
|
case facts[:os]['family']
|
||||||
when 'Debian'
|
when 'Debian'
|
||||||
{ :client_package_name => 'python3-glanceclient' }
|
{ :client_package_name => 'python3-glanceclient' }
|
||||||
when 'RedHat'
|
when 'RedHat'
|
||||||
|
|
|
@ -47,7 +47,7 @@ describe 'glance::db::metadefs' do
|
||||||
}).each do |os,facts|
|
}).each do |os,facts|
|
||||||
context "on #{os}" do
|
context "on #{os}" do
|
||||||
let (:facts) do
|
let (:facts) do
|
||||||
facts.merge!(OSDefaults.get_facts({ :concat_basedir => '/var/lib/puppet/concat' }))
|
facts.merge!(OSDefaults.get_facts())
|
||||||
end
|
end
|
||||||
|
|
||||||
it_configures 'glance-metadefs'
|
it_configures 'glance-metadefs'
|
||||||
|
|
|
@ -56,7 +56,7 @@ describe 'glance::db::sync' do
|
||||||
}).each do |os,facts|
|
}).each do |os,facts|
|
||||||
context "on #{os}" do
|
context "on #{os}" do
|
||||||
let (:facts) do
|
let (:facts) do
|
||||||
facts.merge!(OSDefaults.get_facts({ :concat_basedir => '/var/lib/puppet/concat' }))
|
facts.merge!(OSDefaults.get_facts())
|
||||||
end
|
end
|
||||||
|
|
||||||
it_configures 'glance-dbsync'
|
it_configures 'glance-dbsync'
|
||||||
|
|
|
@ -33,8 +33,8 @@ describe 'glance' do
|
||||||
end
|
end
|
||||||
|
|
||||||
it_behaves_like 'glance'
|
it_behaves_like 'glance'
|
||||||
if facts[:osfamily] == 'RedHat'
|
if facts[:os]['family'] == 'RedHat'
|
||||||
it_configures "glance on #{facts[:osfamily]}"
|
it_configures "glance on #{facts[:os]['family']}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -37,7 +37,7 @@ describe 'glance' do
|
||||||
end
|
end
|
||||||
|
|
||||||
it_configures 'glance'
|
it_configures 'glance'
|
||||||
it_configures "glance #{facts[:osfamily]}"
|
it_configures "glance #{facts[:os]['family']}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -9,7 +9,7 @@ describe 'glance::wsgi::apache' do
|
||||||
:group => 'glance',
|
:group => 'glance',
|
||||||
:path => '/',
|
:path => '/',
|
||||||
:priority => 10,
|
:priority => 10,
|
||||||
:servername => facts[:fqdn],
|
:servername => 'foo.example.com',
|
||||||
:ssl => false,
|
:ssl => false,
|
||||||
:threads => 1,
|
:threads => 1,
|
||||||
:user => 'glance',
|
:user => 'glance',
|
||||||
|
@ -148,14 +148,12 @@ describe 'glance::wsgi::apache' do
|
||||||
context "on #{os}" do
|
context "on #{os}" do
|
||||||
let (:facts) do
|
let (:facts) do
|
||||||
facts.merge!(OSDefaults.get_facts({
|
facts.merge!(OSDefaults.get_facts({
|
||||||
:os_workers => 42,
|
:os_workers => 42,
|
||||||
:concat_basedir => '/var/lib/puppet/concat',
|
|
||||||
:fqdn => 'some.host.tld',
|
|
||||||
}))
|
}))
|
||||||
end
|
end
|
||||||
|
|
||||||
let(:platform_params) do
|
let(:platform_params) do
|
||||||
case facts[:osfamily]
|
case facts[:os]['family']
|
||||||
when 'Debian'
|
when 'Debian'
|
||||||
{
|
{
|
||||||
:wsgi_script_path => '/usr/lib/cgi-bin/glance',
|
:wsgi_script_path => '/usr/lib/cgi-bin/glance',
|
||||||
|
|
|
@ -83,7 +83,7 @@ describe 'glance::backend::multistore::rbd' do
|
||||||
end
|
end
|
||||||
|
|
||||||
let(:platform_params) do
|
let(:platform_params) do
|
||||||
case facts[:osfamily]
|
case facts[:os]['family']
|
||||||
when 'Debian'
|
when 'Debian'
|
||||||
{ :pyceph_package_name => 'python3-ceph' }
|
{ :pyceph_package_name => 'python3-ceph' }
|
||||||
when 'RedHat'
|
when 'RedHat'
|
||||||
|
|
Loading…
Reference in New Issue