Replace legacy facts and use fact hash

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

Change-Id: Ibe75e48eeb387c213c42511797c59b9df39a7762
This commit is contained in:
Takashi Kajinami 2023-03-02 11:41:04 +09:00
parent 9f5f0c1ddb
commit 51829b985f
75 changed files with 1072 additions and 1088 deletions

View File

@ -22,15 +22,15 @@
# #
# [*api_bind_address*] # [*api_bind_address*]
# (optional) IP address for nova-api server to listen # (optional) IP address for nova-api server to listen
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*metadata_listen*] # [*metadata_listen*]
# (optional) IP address for metadata server to listen # (optional) IP address for metadata server to listen
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*metadata_listen_port*] # [*metadata_listen_port*]
# (optional) The port on which the metadata API will listen. # (optional) The port on which the metadata API will listen.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*enabled_apis*] # [*enabled_apis*]
# (optional) A list of apis to enable # (optional) A list of apis to enable
@ -38,15 +38,15 @@
# #
# [*osapi_compute_workers*] # [*osapi_compute_workers*]
# (optional) Number of workers for OpenStack API service # (optional) Number of workers for OpenStack API service
# Defaults to $::os_workers # Defaults to $facts['os_workers']
# #
# [*osapi_compute_listen_port*] # [*osapi_compute_listen_port*]
# (optional) The port on which the OpenStack API will listen. # (optional) The port on which the OpenStack API will listen.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*metadata_workers*] # [*metadata_workers*]
# (optional) Number of workers for metadata service # (optional) Number of workers for metadata service
# Defaults to $::os_workers # Defaults to $facts['os_workers']
# #
# [*sync_db*] # [*sync_db*]
# (optional) Run nova-manage db sync on api nodes after installing the package. # (optional) Run nova-manage db sync on api nodes after installing the package.
@ -64,11 +64,11 @@
# [*enable_proxy_headers_parsing*] # [*enable_proxy_headers_parsing*]
# (optional) This determines if the HTTPProxyToWSGI # (optional) This determines if the HTTPProxyToWSGI
# middleware should parse the proxy headers or not.(boolean value) # middleware should parse the proxy headers or not.(boolean value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_request_body_size*] # [*max_request_body_size*]
# (Optional) Set max request body size # (Optional) Set max request body size
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*service_name*] # [*service_name*]
# (optional) Name of the service that will be providing the # (optional) Name of the service that will be providing the
@ -89,39 +89,39 @@
# #
# [*max_limit*] # [*max_limit*]
# (optional) This option is limit the maximum number of items in a single response. # (optional) This option is limit the maximum number of items in a single response.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*compute_link_prefix*] # [*compute_link_prefix*]
# (optional) This string is prepended to the normal URL that is returned in links # (optional) This string is prepended to the normal URL that is returned in links
# to the OpenStack Compute API. # to the OpenStack Compute API.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*glance_link_prefix*] # [*glance_link_prefix*]
# (optional) This string is prepended to the normal URL that is returned in links # (optional) This string is prepended to the normal URL that is returned in links
# to Glance resources. # to Glance resources.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*hide_server_address_states*] # [*hide_server_address_states*]
# (optional) This option is a list of all instance states for which network address # (optional) This option is a list of all instance states for which network address
# information should not be returned from the API. # information should not be returned from the API.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*allow_instance_snapshots*] # [*allow_instance_snapshots*]
# (optional) Operators can turn off the ability for a user to take snapshots of their # (optional) Operators can turn off the ability for a user to take snapshots of their
# instances by setting this option to False # instances by setting this option to False
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*enable_network_quota*] # [*enable_network_quota*]
# (optional) This option is used to enable or disable quota checking for tenant networks # (optional) This option is used to enable or disable quota checking for tenant networks
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*enable_instance_password*] # [*enable_instance_password*]
# (optional) Enables returning of the instance password by the relevant server API calls # (optional) Enables returning of the instance password by the relevant server API calls
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*password_length*] # [*password_length*]
# (optional) Length of generated instance admin passwords (integer value) # (optional) Length of generated instance admin passwords (integer value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*allow_resize_to_same_host*] # [*allow_resize_to_same_host*]
# (optional) Allow destination machine to match source for resize. # (optional) Allow destination machine to match source for resize.
@ -130,22 +130,22 @@
# [*instance_list_per_project_cells*] # [*instance_list_per_project_cells*]
# (optional) Only query cell databases in which the tenant has mapped # (optional) Only query cell databases in which the tenant has mapped
# instances # instances
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*instance_list_cells_batch_strategy*] # [*instance_list_cells_batch_strategy*]
# (optional) The method by which the API queries cell databases in smaller # (optional) The method by which the API queries cell databases in smaller
# batches during large instance list operations. # batches during large instance list operations.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*instance_list_cells_batch_fixed_size*] # [*instance_list_cells_batch_fixed_size*]
# (optional) This controls batch size of instances requested from each cell # (optional) This controls batch size of instances requested from each cell
# database if ``instance_list_cells_batch_strategy``` is set to ``fixed`` # database if ``instance_list_cells_batch_strategy``` is set to ``fixed``
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*list_records_by_skipping_down_cells*] # [*list_records_by_skipping_down_cells*]
# (optional) Whether to skip the down cells and return the results from # (optional) Whether to skip the down cells and return the results from
# the up cells. # the up cells.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# DEPRECATED # DEPRECATED
# #
@ -169,33 +169,33 @@ class nova::api(
$manage_service = true, $manage_service = true,
$api_paste_config = 'api-paste.ini', $api_paste_config = 'api-paste.ini',
$ensure_package = 'present', $ensure_package = 'present',
$api_bind_address = $::os_service_default, $api_bind_address = $facts['os_service_default'],
$osapi_compute_listen_port = $::os_service_default, $osapi_compute_listen_port = $facts['os_service_default'],
$metadata_listen = $::os_service_default, $metadata_listen = $facts['os_service_default'],
$metadata_listen_port = $::os_service_default, $metadata_listen_port = $facts['os_service_default'],
$enabled_apis = ['osapi_compute', 'metadata'], $enabled_apis = ['osapi_compute', 'metadata'],
$osapi_compute_workers = $::os_workers, $osapi_compute_workers = $facts['os_workers'],
$metadata_workers = $::os_workers, $metadata_workers = $facts['os_workers'],
$sync_db = true, $sync_db = true,
$sync_db_api = true, $sync_db_api = true,
$db_online_data_migrations = false, $db_online_data_migrations = false,
$service_name = $::nova::params::api_service_name, $service_name = $::nova::params::api_service_name,
$metadata_service_name = $::nova::params::api_metadata_service_name, $metadata_service_name = $::nova::params::api_metadata_service_name,
$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'],
$max_limit = $::os_service_default, $max_limit = $facts['os_service_default'],
$compute_link_prefix = $::os_service_default, $compute_link_prefix = $facts['os_service_default'],
$glance_link_prefix = $::os_service_default, $glance_link_prefix = $facts['os_service_default'],
$hide_server_address_states = $::os_service_default, $hide_server_address_states = $facts['os_service_default'],
$allow_instance_snapshots = $::os_service_default, $allow_instance_snapshots = $facts['os_service_default'],
$enable_network_quota = $::os_service_default, $enable_network_quota = $facts['os_service_default'],
$enable_instance_password = $::os_service_default, $enable_instance_password = $facts['os_service_default'],
$password_length = $::os_service_default, $password_length = $facts['os_service_default'],
$allow_resize_to_same_host = false, $allow_resize_to_same_host = false,
$instance_list_per_project_cells = $::os_service_default, $instance_list_per_project_cells = $facts['os_service_default'],
$instance_list_cells_batch_strategy = $::os_service_default, $instance_list_cells_batch_strategy = $facts['os_service_default'],
$instance_list_cells_batch_fixed_size = $::os_service_default, $instance_list_cells_batch_fixed_size = $facts['os_service_default'],
$list_records_by_skipping_down_cells = $::os_service_default, $list_records_by_skipping_down_cells = $facts['os_service_default'],
# DEPRECATED PARAMETER # DEPRECATED PARAMETER
$nova_metadata_wsgi_enabled = false, $nova_metadata_wsgi_enabled = false,
$use_forwarded_for = undef, $use_forwarded_for = undef,
@ -227,7 +227,7 @@ Use the nova::instance_name_template parameter instead.")
# Try best to clean up the parameter # Try best to clean up the parameter
if defined(Class['nova']) and $::nova::instance_name_template == undef { if defined(Class['nova']) and $::nova::instance_name_template == undef {
nova_config { nova_config {
'DEFAULT/instance_name_template': value => $::os_service_default; 'DEFAULT/instance_name_template': value => $facts['os_service_default'];
} }
} }
} }
@ -319,7 +319,7 @@ as a standalone service, or httpd for being run by a httpd server")
'DEFAULT/osapi_compute_workers': value => $osapi_compute_workers; 'DEFAULT/osapi_compute_workers': value => $osapi_compute_workers;
'DEFAULT/enable_network_quota': value => $enable_network_quota; 'DEFAULT/enable_network_quota': value => $enable_network_quota;
'DEFAULT/password_length': value => $password_length; 'DEFAULT/password_length': value => $password_length;
'api/use_forwarded_for': value => pick($use_forwarded_for, $::os_service_default); 'api/use_forwarded_for': value => pick($use_forwarded_for, $facts['os_service_default']);
'api/max_limit': value => $max_limit; 'api/max_limit': value => $max_limit;
'api/compute_link_prefix': value => $compute_link_prefix; 'api/compute_link_prefix': value => $compute_link_prefix;
'api/glance_link_prefix': value => $glance_link_prefix; 'api/glance_link_prefix': value => $glance_link_prefix;

View File

@ -6,20 +6,20 @@
# #
# [*default_availability_zone*] # [*default_availability_zone*]
# (optional) Default compute node availability zone. # (optional) Default compute node availability zone.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*default_schedule_zone*] # [*default_schedule_zone*]
# (optional) Availability zone to use when user doesn't specify one. # (optional) Availability zone to use when user doesn't specify one.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*internal_service_availability_zone*] # [*internal_service_availability_zone*]
# (optional) The availability zone to show internal services under. # (optional) The availability zone to show internal services under.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class nova::availability_zone ( class nova::availability_zone (
$default_availability_zone = $::os_service_default, $default_availability_zone = $facts['os_service_default'],
$default_schedule_zone = $::os_service_default, $default_schedule_zone = $facts['os_service_default'],
$internal_service_availability_zone = $::os_service_default, $internal_service_availability_zone = $facts['os_service_default'],
) { ) {
nova_config { nova_config {

View File

@ -9,99 +9,99 @@
# the cache region. This should not need to be changed unless there # the cache region. This should not need to be changed unless there
# is another dogpile.cache region with the same configuration name. # is another dogpile.cache region with the same configuration name.
# (string value) # (string value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*expiration_time*] # [*expiration_time*]
# (Optional) Default TTL, in seconds, for any cached item in the # (Optional) Default TTL, in seconds, for any cached item in the
# dogpile.cache region. This applies to any cached method that # dogpile.cache region. This applies to any cached method that
# doesn't have an explicit cache expiration time defined for it. # doesn't have an explicit cache expiration time defined for it.
# (integer value) # (integer value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backend*] # [*backend*]
# (Optional) Dogpile.cache backend module. It is recommended that # (Optional) Dogpile.cache backend module. It is recommended that
# Memcache with pooling (oslo_cache.memcache_pool) or Redis # Memcache with pooling (oslo_cache.memcache_pool) or Redis
# (dogpile.cache.redis) be used in production deployments. (string value) # (dogpile.cache.redis) be used in production deployments. (string value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*backend_argument*] # [*backend_argument*]
# (Optional) Arguments supplied to the backend module. Specify this option # (Optional) Arguments supplied to the backend module. Specify this option
# once per argument to be passed to the dogpile.cache backend. # once per argument to be passed to the dogpile.cache backend.
# Example format: "<argname>:<value>". (list value) # Example format: "<argname>:<value>". (list value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*proxies*] # [*proxies*]
# (Optional) Proxy classes to import that will affect the way the # (Optional) Proxy classes to import that will affect the way the
# dogpile.cache backend functions. See the dogpile.cache documentation on # dogpile.cache backend functions. See the dogpile.cache documentation on
# changing-backend-behavior. (list value) # changing-backend-behavior. (list value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*enabled*] # [*enabled*]
# (Optional) Global toggle for caching. (boolean value) # (Optional) Global toggle for caching. (boolean value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*debug_cache_backend*] # [*debug_cache_backend*]
# (Optional) Extra debugging from the cache backend (cache keys, # (Optional) Extra debugging from the cache backend (cache keys,
# get/set/delete/etc calls). This is only really useful if you need # get/set/delete/etc calls). This is only really useful if you need
# to see the specific cache-backend get/set/delete calls with the keys/values. # to see the specific cache-backend get/set/delete calls with the keys/values.
# Typically this should be left set to false. (boolean value) # Typically this should be left set to false. (boolean value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*memcache_servers*] # [*memcache_servers*]
# (Optional) Memcache servers in the format of "host:port". # (Optional) Memcache servers in the format of "host:port".
# (dogpile.cache.memcache and oslo_cache.memcache_pool backends only). # (dogpile.cache.memcache and oslo_cache.memcache_pool backends only).
# (list value) # (list value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*memcache_dead_retry*] # [*memcache_dead_retry*]
# (Optional) Number of seconds memcached server is considered dead before # (Optional) Number of seconds memcached server is considered dead before
# it is tried again. (dogpile.cache.memcache and oslo_cache.memcache_pool # it is tried again. (dogpile.cache.memcache and oslo_cache.memcache_pool
# backends only). (integer value) # backends only). (integer value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*memcache_socket_timeout*] # [*memcache_socket_timeout*]
# (Optional) Timeout in seconds for every call to a server. # (Optional) Timeout in seconds for every call to a server.
# (dogpile.cache.memcache and oslo_cache.memcache_pool backends only). # (dogpile.cache.memcache and oslo_cache.memcache_pool backends only).
# (floating point value) # (floating point value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*enable_socket_keepalive*] # [*enable_socket_keepalive*]
# (Optional) Global toggle for the socket keepalive of dogpile's # (Optional) Global toggle for the socket keepalive of dogpile's
# pymemcache backend # pymemcache backend
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*socket_keepalive_idle*] # [*socket_keepalive_idle*]
# (Optional) The time (in seconds) the connection needs to remain idle # (Optional) The time (in seconds) the connection needs to remain idle
# before TCP starts sending keepalive probes. Should be a positive integer # before TCP starts sending keepalive probes. Should be a positive integer
# most greater than zero. # most greater than zero.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*socket_keepalive_interval*] # [*socket_keepalive_interval*]
# (Optional) The time (in seconds) between individual keepalive probes. # (Optional) The time (in seconds) between individual keepalive probes.
# Should be a positive integer most greater than zero. # Should be a positive integer most greater than zero.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*socket_keepalive_count*] # [*socket_keepalive_count*]
# (Optional) The maximum number of keepalive probes TCP should send before # (Optional) The maximum number of keepalive probes TCP should send before
# dropping the connection. Should be a positive integer most greater than # dropping the connection. Should be a positive integer most greater than
# zero. # zero.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*memcache_pool_maxsize*] # [*memcache_pool_maxsize*]
# (Optional) Max total number of open connections to every memcached server. # (Optional) Max total number of open connections to every memcached server.
# (oslo_cache.memcache_pool backend only). (integer value) # (oslo_cache.memcache_pool backend only). (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 # (Optional) Number of seconds a connection to memcached is held unused
# in the pool before it is closed. (oslo_cache.memcache_pool backend only) # in the pool before it is closed. (oslo_cache.memcache_pool backend only)
# (integer value) # (integer value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*memcache_pool_connection_get_timeout*] # [*memcache_pool_connection_get_timeout*]
# (Optional) Number of seconds that an operation will wait to get a memcache # (Optional) Number of seconds that an operation will wait to get a memcache
# client connection. (integer value) # client connection. (integer value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*manage_backend_package*] # [*manage_backend_package*]
# (Optional) Whether to install the backend package for the cache. # (Optional) Whether to install the backend package for the cache.
@ -110,13 +110,13 @@
# [*tls_enabled*] # [*tls_enabled*]
# (Optional) Global toggle for TLS usage when communicating with # (Optional) Global toggle for TLS usage when communicating with
# the caching servers. # the caching servers.
# Default to $::os_service_default # Default to $facts['os_service_default']
# #
# [*tls_cafile*] # [*tls_cafile*]
# (Optional) Path to a file of concatenated CA certificates in PEM # (Optional) Path to a file of concatenated CA certificates in PEM
# format necessary to establish the caching server's authenticity. # format necessary to establish the caching server's authenticity.
# If tls_enabled is False, this option is ignored. # If tls_enabled is False, this option is ignored.
# Default to $::os_service_default # Default to $facts['os_service_default']
# #
# [*tls_certfile*] # [*tls_certfile*]
# (Optional) Path to a single file in PEM format containing the # (Optional) Path to a single file in PEM format containing the
@ -124,83 +124,83 @@
# needed to establish the certificate's authenticity. This file # needed to establish the certificate's authenticity. This file
# is only required when client side authentication is necessary. # is only required when client side authentication is necessary.
# If tls_enabled is False, this option is ignored. # If tls_enabled is False, this option is ignored.
# Default to $::os_service_default # Default to $facts['os_service_default']
# #
# [*tls_keyfile*] # [*tls_keyfile*]
# (Optional) Path to a single file containing the client's private # (Optional) Path to a single file containing the client's private
# key in. Otherwise the private key will be taken from the file # key in. Otherwise the private key will be taken from the file
# specified in tls_certfile. If tls_enabled is False, this option # specified in tls_certfile. If tls_enabled is False, this option
# is ignored. # is ignored.
# Default to $::os_service_default # Default to $facts['os_service_default']
# #
# [*tls_allowed_ciphers*] # [*tls_allowed_ciphers*]
# (Optional) Set the available ciphers for sockets created with # (Optional) Set the available ciphers for sockets created with
# the TLS context. It should be a string in the OpenSSL cipher # the TLS context. It should be a string in the OpenSSL cipher
# list format. If not specified, all OpenSSL enabled ciphers will # list format. If not specified, all OpenSSL enabled ciphers will
# be available. # be available.
# Default to $::os_service_default # Default to $facts['os_service_default']
# #
# [*enable_retry_client*] # [*enable_retry_client*]
# (Optional) Enable retry client mechanisms to handle failure. # (Optional) Enable retry client mechanisms to handle failure.
# Those mechanisms can be used to wrap all kind of pymemcache # Those mechanisms can be used to wrap all kind of pymemcache
# clients. The wrapper allows you to define how many attempts # clients. The wrapper allows you to define how many attempts
# to make and how long to wait between attempts. # to make and how long to wait between attempts.
# Default to $::os_service_default # Default to $facts['os_service_default']
# #
# [*retry_attempts*] # [*retry_attempts*]
# (Optional) Number of times to attempt an action before failing. # (Optional) Number of times to attempt an action before failing.
# Default to $::os_service_default # Default to $facts['os_service_default']
# #
# [*retry_delay*] # [*retry_delay*]
# (Optional) Number of seconds to sleep between each attempt. # (Optional) Number of seconds to sleep between each attempt.
# Default to $::os_service_default # Default to $facts['os_service_default']
# #
# [*hashclient_retry_attempts*] # [*hashclient_retry_attempts*]
# (Optional) Amount of times a client should be tried # (Optional) Amount of times a client should be tried
# before it is marked dead and removed from the pool in # before it is marked dead and removed from the pool in
# the HashClient's internal mechanisms. # the HashClient's internal mechanisms.
# Default to $::os_service_default # Default to $facts['os_service_default']
# #
# [*hashclient_retry_delay*] # [*hashclient_retry_delay*]
# (Optional) Time in seconds that should pass between # (Optional) Time in seconds that should pass between
# retry attempts in the HashClient's internal mechanisms. # retry attempts in the HashClient's internal mechanisms.
# Default to $::os_service_default # Default to $facts['os_service_default']
# #
# [*dead_timeout*] # [*dead_timeout*]
# (Optional) Time in seconds before attempting to add a node # (Optional) Time in seconds before attempting to add a node
# back in the pool in the HashClient's internal mechanisms. # back in the pool in the HashClient's internal mechanisms.
# Default to $::os_service_default # Default to $facts['os_service_default']
# #
class nova::cache ( class nova::cache (
$config_prefix = $::os_service_default, $config_prefix = $facts['os_service_default'],
$expiration_time = $::os_service_default, $expiration_time = $facts['os_service_default'],
$backend = $::os_service_default, $backend = $facts['os_service_default'],
$backend_argument = $::os_service_default, $backend_argument = $facts['os_service_default'],
$proxies = $::os_service_default, $proxies = $facts['os_service_default'],
$enabled = $::os_service_default, $enabled = $facts['os_service_default'],
$debug_cache_backend = $::os_service_default, $debug_cache_backend = $facts['os_service_default'],
$memcache_servers = $::os_service_default, $memcache_servers = $facts['os_service_default'],
$memcache_dead_retry = $::os_service_default, $memcache_dead_retry = $facts['os_service_default'],
$memcache_socket_timeout = $::os_service_default, $memcache_socket_timeout = $facts['os_service_default'],
$enable_socket_keepalive = $::os_service_default, $enable_socket_keepalive = $facts['os_service_default'],
$socket_keepalive_idle = $::os_service_default, $socket_keepalive_idle = $facts['os_service_default'],
$socket_keepalive_interval = $::os_service_default, $socket_keepalive_interval = $facts['os_service_default'],
$socket_keepalive_count = $::os_service_default, $socket_keepalive_count = $facts['os_service_default'],
$memcache_pool_maxsize = $::os_service_default, $memcache_pool_maxsize = $facts['os_service_default'],
$memcache_pool_unused_timeout = $::os_service_default, $memcache_pool_unused_timeout = $facts['os_service_default'],
$memcache_pool_connection_get_timeout = $::os_service_default, $memcache_pool_connection_get_timeout = $facts['os_service_default'],
$manage_backend_package = true, $manage_backend_package = true,
$tls_enabled = $::os_service_default, $tls_enabled = $facts['os_service_default'],
$tls_cafile = $::os_service_default, $tls_cafile = $facts['os_service_default'],
$tls_certfile = $::os_service_default, $tls_certfile = $facts['os_service_default'],
$tls_keyfile = $::os_service_default, $tls_keyfile = $facts['os_service_default'],
$tls_allowed_ciphers = $::os_service_default, $tls_allowed_ciphers = $facts['os_service_default'],
$enable_retry_client = $::os_service_default, $enable_retry_client = $facts['os_service_default'],
$retry_attempts = $::os_service_default, $retry_attempts = $facts['os_service_default'],
$retry_delay = $::os_service_default, $retry_delay = $facts['os_service_default'],
$hashclient_retry_attempts = $::os_service_default, $hashclient_retry_attempts = $facts['os_service_default'],
$hashclient_retry_delay = $::os_service_default, $hashclient_retry_delay = $facts['os_service_default'],
$dead_timeout = $::os_service_default, $dead_timeout = $facts['os_service_default'],
) { ) {
include nova::deps include nova::deps

View File

@ -7,7 +7,7 @@
# [*password*] # [*password*]
# (optional) Password for connecting to Cinder services in # (optional) Password for connecting to Cinder services in
# admin context through the OpenStack Identity service. # admin context through the OpenStack Identity service.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*auth_type*] # [*auth_type*]
# (optional) Name of the auth type to load (string value) # (optional) Name of the auth type to load (string value)
@ -21,7 +21,7 @@
# #
# [*timeout*] # [*timeout*]
# (optional) Timeout value for connecting to cinder in seconds. # (optional) Timeout value for connecting to cinder in seconds.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*project_name*] # [*project_name*]
# (optional) Project name for connecting to Cinder services in # (optional) Project name for connecting to Cinder services in
@ -35,7 +35,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']
# #
# [*username*] # [*username*]
# (optional) Username for connecting to Cinder services in admin context # (optional) Username for connecting to Cinder services in admin context
@ -53,43 +53,43 @@
# things such as cinder volume attach work. If you don't set this # things such as cinder volume attach work. If you don't set this
# and you have multiple endpoints, you will get AmbiguousEndpoint # and you have multiple endpoints, you will get AmbiguousEndpoint
# exceptions in the nova API service. # exceptions in the nova API service.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*catalog_info*] # [*catalog_info*]
# (optional) Info to match when looking for cinder in the service # (optional) Info to match when looking for cinder in the service
# catalog. Format is: separated values of the form: # catalog. Format is: separated values of the form:
# <service_type>:<service_name>:<endpoint_type> # <service_type>:<service_name>:<endpoint_type>
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*http_retries*] # [*http_retries*]
# (optional) Number of times cinderclient should retry on any failed http # (optional) Number of times cinderclient should retry on any failed http
# call. # call.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*cross_az_attach*] # [*cross_az_attach*]
# (optional) Allow attach between instance and volume in different availability zones. # (optional) Allow attach between instance and volume in different availability zones.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*debug*] # [*debug*]
# (optional) Enable DEBUG logging with cinderclient and os_brick # (optional) Enable DEBUG logging with cinderclient and os_brick
# independently of the rest of Nova. # independently of the rest of Nova.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class nova::cinder ( class nova::cinder (
$password = $::os_service_default, $password = $facts['os_service_default'],
$auth_type = 'password', $auth_type = 'password',
$auth_url = 'http://127.0.0.1:5000/', $auth_url = 'http://127.0.0.1:5000/',
$timeout = $::os_service_default, $timeout = $facts['os_service_default'],
$project_name = 'services', $project_name = 'services',
$project_domain_name = 'Default', $project_domain_name = 'Default',
$system_scope = $::os_service_default, $system_scope = $facts['os_service_default'],
$username = 'cinder', $username = 'cinder',
$user_domain_name = 'Default', $user_domain_name = 'Default',
$os_region_name = $::os_service_default, $os_region_name = $facts['os_service_default'],
$catalog_info = $::os_service_default, $catalog_info = $facts['os_service_default'],
$http_retries = $::os_service_default, $http_retries = $facts['os_service_default'],
$cross_az_attach = $::os_service_default, $cross_az_attach = $facts['os_service_default'],
$debug = $::os_service_default, $debug = $facts['os_service_default'],
) { ) {
include nova::deps include nova::deps
@ -98,13 +98,13 @@ class nova::cinder (
# Controller nodes do not require the admin credential while controller # Controller nodes do not require the admin credential while controller
# nodes require it. We keep the credential optional here to avoid # nodes require it. We keep the credential optional here to avoid
# requiring unnecessary credential. # requiring unnecessary credential.
$auth_type_real = $::os_service_default $auth_type_real = $facts['os_service_default']
$auth_url_real = $::os_service_default $auth_url_real = $facts['os_service_default']
$project_name_real = $::os_service_default $project_name_real = $facts['os_service_default']
$project_domain_name_real = $::os_service_default $project_domain_name_real = $facts['os_service_default']
$system_scope_real = $::os_service_default $system_scope_real = $facts['os_service_default']
$username_real = $::os_service_default $username_real = $facts['os_service_default']
$user_domain_name_real = $::os_service_default $user_domain_name_real = $facts['os_service_default']
} else { } else {
$auth_type_real = $auth_type $auth_type_real = $auth_type
$auth_url_real = $auth_url $auth_url_real = $auth_url
@ -116,8 +116,8 @@ class nova::cinder (
$project_name_real = $project_name $project_name_real = $project_name
$project_domain_name_real = $project_domain_name $project_domain_name_real = $project_domain_name
} else { } else {
$project_name_real = $::os_service_default $project_name_real = $facts['os_service_default']
$project_domain_name_real = $::os_service_default $project_domain_name_real = $facts['os_service_default']
} }
} }

View File

@ -10,7 +10,7 @@
# #
# [*heal_instance_info_cache_interval*] # [*heal_instance_info_cache_interval*]
# (optional) Controls how often the instance info should be updated. # (optional) Controls how often the instance info should be updated.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# To disable you can set the value to zero. # To disable you can set the value to zero.
# #
# [*manage_service*] # [*manage_service*]
@ -56,7 +56,7 @@
# #
# [*mkisofs_cmd*] # [*mkisofs_cmd*]
# (optional) Name or path of the tool used for ISO image creation. # (optional) Name or path of the tool used for ISO image creation.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*instance_usage_audit*] # [*instance_usage_audit*]
# (optional) Generate periodic compute.instance.exists notifications. # (optional) Generate periodic compute.instance.exists notifications.
@ -69,26 +69,26 @@
# #
# [*use_cow_images*] # [*use_cow_images*]
# (optional) Enable use of copy-on-write (cow) images. # (optional) Enable use of copy-on-write (cow) images.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*force_raw_images*] # [*force_raw_images*]
# (optional) Force backing images to raw format. # (optional) Force backing images to raw format.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*virt_mkfs*] # [*virt_mkfs*]
# (optional) Name of the mkfs commands for ephemeral device. # (optional) Name of the mkfs commands for ephemeral device.
# The format is <os_type>=<mkfs command> # The format is <os_type>=<mkfs command>
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*reserved_host_memory*] # [*reserved_host_memory*]
# Reserved host memory # Reserved host memory
# The amount of memory in MB reserved for the host. # The amount of memory in MB reserved for the host.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*reserved_host_disk*] # [*reserved_host_disk*]
# Reserved host disk # Reserved host disk
# The amount of disk in MB reserved for the host. # The amount of disk in MB reserved for the host.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*config_drive_format*] # [*config_drive_format*]
# (optional) Config drive format. One of iso9660 (default) or vfat # (optional) Config drive format. One of iso9660 (default) or vfat
@ -101,25 +101,25 @@
# Leaving this at the default of 0 will cause this to run at the default # Leaving this at the default of 0 will cause this to run at the default
# periodic interval. Setting it to any positive value will cause it to run # periodic interval. Setting it to any positive value will cause it to run
# at approximately that number of seconds. # at approximately that number of seconds.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*reboot_timeout*] # [*reboot_timeout*]
# (optional) Time interval after which an instance is hard rebooted # (optional) Time interval after which an instance is hard rebooted
# automatically. Setting this option to a time period in seconds will # automatically. Setting this option to a time period in seconds will
# automatically hard reboot an instance if it has been stuck in a rebooting # automatically hard reboot an instance if it has been stuck in a rebooting
# state longer than N seconds. # state longer than N seconds.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*instance_build_timeout*] # [*instance_build_timeout*]
# (optional) Maximum time in seconds that an instance can take to build. # (optional) Maximum time in seconds that an instance can take to build.
# If this timer expires, instance status will be changed to ERROR. # If this timer expires, instance status will be changed to ERROR.
# Enabling this option will make sure an instance will not be stuck # Enabling this option will make sure an instance will not be stuck
# in BUILD state for a longer period. # in BUILD state for a longer period.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rescue_timeout*] # [*rescue_timeout*]
# (optional) Interval to wait before un-rescuing an instance stuck in RESCUE. # (optional) Interval to wait before un-rescuing an instance stuck in RESCUE.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*resize_confirm_window*] # [*resize_confirm_window*]
# (optional) Automatically confirm resizes after N seconds. # (optional) Automatically confirm resizes after N seconds.
@ -130,7 +130,7 @@
# server status from resized to active. Setting this option to a time # server status from resized to active. Setting this option to a time
# period (in seconds) will automatically confirm the resize if the # period (in seconds) will automatically confirm the resize if the
# server is in resized state longer than that time. # server is in resized state longer than that time.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*shutdown_timeout*] # [*shutdown_timeout*]
# (optional) Total time to wait in seconds for an instance to perform a clean # (optional) Total time to wait in seconds for an instance to perform a clean
@ -138,49 +138,49 @@
# perform a clean shutdown. While performing stop, rescue and shelve, rebuild # perform a clean shutdown. While performing stop, rescue and shelve, rebuild
# operations, configuring this option gives the VM a chance to perform a # operations, configuring this option gives the VM a chance to perform a
# controlled shutdown before the instance is powered off. # controlled shutdown before the instance is powered off.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*cpu_shared_set*] # [*cpu_shared_set*]
# (optional) Mask of host CPUs that can be used for ``VCPU`` resources and # (optional) Mask of host CPUs that can be used for ``VCPU`` resources and
# offloaded emulator threads. # offloaded emulator threads.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*cpu_dedicated_set*] # [*cpu_dedicated_set*]
# (optional) A list or range of host CPU cores to which processes for pinned # (optional) A list or range of host CPU cores to which processes for pinned
# instance CPUs (PCPUs) can be scheduled. # instance CPUs (PCPUs) can be scheduled.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*resume_guests_state_on_host_boot*] # [*resume_guests_state_on_host_boot*]
# (optional) This option specifies whether to start guests that were running before the # (optional) This option specifies whether to start guests that were running before the
# host rebooted. It ensures that all of the instances on a Nova compute node # host rebooted. It ensures that all of the instances on a Nova compute node
# resume their state each time the compute node boots or restarts. # resume their state each time the compute node boots or restarts.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_concurrent_builds*] # [*max_concurrent_builds*]
# (optional) Maximum number of instance builds to run concurrently # (optional) Maximum number of instance builds to run concurrently
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_concurrent_live_migrations*] # [*max_concurrent_live_migrations*]
# (optional) Maximum number of live migrations to run in parallel. # (optional) Maximum number of live migrations to run in parallel.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*sync_power_state_pool_size*] # [*sync_power_state_pool_size*]
# (optional) Maximum number of greenthreads to use when syncing power states. # (optional) Maximum number of greenthreads to use when syncing power states.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*sync_power_state_interval*] # [*sync_power_state_interval*]
# (optional) Interval to sync power states between the database and the hypervisor. Set # (optional) Interval to sync power states between the database and the hypervisor. Set
# to -1 to disable. Setting this to 0 will run at the default rate. # to -1 to disable. Setting this to 0 will run at the default rate.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*consecutive_build_service_disable_threshold*] # [*consecutive_build_service_disable_threshold*]
# (optional) Max number of consecutive build failures before the nova-compute # (optional) Max number of consecutive build failures before the nova-compute
# will disable itself. # will disable itself.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*reserved_huge_pages*] # [*reserved_huge_pages*]
# (optional) Number of huge memory pages to reserved per NUMA host cell. # (optional) Number of huge memory pages to reserved per NUMA host cell.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# Accepts a string e.g "node:0,size:1GB,count:4" or a list of strings e.g: # Accepts a string e.g "node:0,size:1GB,count:4" or a list of strings e.g:
# ["node:0,size:1GB,count:4", "node:1,size:1GB,count:4"] # ["node:0,size:1GB,count:4", "node:1,size:1GB,count:4"]
# #
@ -195,7 +195,7 @@
# #
# [*live_migration_wait_for_vif_plug*] # [*live_migration_wait_for_vif_plug*]
# (optional) whether to wait for ``network-vif-plugged`` events before starting guest transfer # (optional) whether to wait for ``network-vif-plugged`` events before starting guest transfer
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_disk_devices_to_attach*] # [*max_disk_devices_to_attach*]
# (optional) specifies max number of devices that can be attached # (optional) specifies max number of devices that can be attached
@ -205,40 +205,40 @@
# to 4 attached devices. The configured maximum is enforced # to 4 attached devices. The configured maximum is enforced
# during server create, rebuild, evacuate, unshelve, live migrate, # during server create, rebuild, evacuate, unshelve, live migrate,
# and attach volume. # and attach volume.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*default_access_ip_network_name*] # [*default_access_ip_network_name*]
# (optional) Name of the network to be used to set access IPs for # (optional) Name of the network to be used to set access IPs for
# instances. If there are multiple IPs to choose from, an arbitrary # instances. If there are multiple IPs to choose from, an arbitrary
# one will be chosen. # one will be chosen.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*running_deleted_instance_action*] # [*running_deleted_instance_action*]
# (optional) The compute service periodically checks for instances that # (optional) The compute service periodically checks for instances that
# have been deleted in the database but remain running on the compute node. # have been deleted in the database but remain running on the compute node.
# This option enables action to be taken when such instances are identified # This option enables action to be taken when such instances are identified
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*running_deleted_instance_poll_interval*] # [*running_deleted_instance_poll_interval*]
# (optional) Time interval in seconds to wait between runs for the clean up # (optional) Time interval in seconds to wait between runs for the clean up
# action. If set to 0, deleted instances check will be disabled. # action. If set to 0, deleted instances check will be disabled.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*running_deleted_instance_timeout*] # [*running_deleted_instance_timeout*]
# (optional) Time interval in seconds to wait for the instances that have # (optional) Time interval in seconds to wait for the instances that have
# been marked as deleted in database to be eligible for cleanup. # been marked as deleted in database to be eligible for cleanup.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*compute_monitors*] # [*compute_monitors*]
# (optional) A comma-separated list of monitors that can be used for getting # (optional) A comma-separated list of monitors that can be used for getting
# compute metrics. Only one monitor per namespace (For example: cpu) can be # compute metrics. Only one monitor per namespace (For example: cpu) can be
# loaded at a time. # loaded at a time.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*default_ephemeral_format*] # [*default_ephemeral_format*]
# (optional) The default format an ephemeral_volume will be formatted with # (optional) The default format an ephemeral_volume will be formatted with
# on creation. # on creation.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*image_type_exclude_list*] # [*image_type_exclude_list*]
# (optional) List of image formats that should not be advertised as supported # (optional) List of image formats that should not be advertised as supported
@ -246,12 +246,12 @@
# #
# [*block_device_allocate_retries*] # [*block_device_allocate_retries*]
# (optional) Number of times to retry block device allocation on failures # (optional) Number of times to retry block device allocation on failures
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*block_device_allocate_retries_interval*] # [*block_device_allocate_retries_interval*]
# (optional) Waiting time interval (seconds) between block device allocation # (optional) Waiting time interval (seconds) between block device allocation
# retries on failures # retries on failures
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class nova::compute ( class nova::compute (
$enabled = true, $enabled = true,
@ -267,48 +267,48 @@ class nova::compute (
$force_config_drive = false, $force_config_drive = false,
$instance_usage_audit = false, $instance_usage_audit = false,
$instance_usage_audit_period = 'month', $instance_usage_audit_period = 'month',
$mkisofs_cmd = $::os_service_default, $mkisofs_cmd = $facts['os_service_default'],
$use_cow_images = $::os_service_default, $use_cow_images = $facts['os_service_default'],
$force_raw_images = $::os_service_default, $force_raw_images = $facts['os_service_default'],
$virt_mkfs = $::os_service_default, $virt_mkfs = $facts['os_service_default'],
$reserved_host_memory = $::os_service_default, $reserved_host_memory = $facts['os_service_default'],
$reserved_host_disk = $::os_service_default, $reserved_host_disk = $facts['os_service_default'],
$heal_instance_info_cache_interval = $::os_service_default, $heal_instance_info_cache_interval = $facts['os_service_default'],
$config_drive_format = $::os_service_default, $config_drive_format = $facts['os_service_default'],
$update_resources_interval = $::os_service_default, $update_resources_interval = $facts['os_service_default'],
$reboot_timeout = $::os_service_default, $reboot_timeout = $facts['os_service_default'],
$instance_build_timeout = $::os_service_default, $instance_build_timeout = $facts['os_service_default'],
$rescue_timeout = $::os_service_default, $rescue_timeout = $facts['os_service_default'],
$resize_confirm_window = $::os_service_default, $resize_confirm_window = $facts['os_service_default'],
$shutdown_timeout = $::os_service_default, $shutdown_timeout = $facts['os_service_default'],
$cpu_shared_set = $::os_service_default, $cpu_shared_set = $facts['os_service_default'],
$cpu_dedicated_set = $::os_service_default, $cpu_dedicated_set = $facts['os_service_default'],
$resume_guests_state_on_host_boot = $::os_service_default, $resume_guests_state_on_host_boot = $facts['os_service_default'],
$max_concurrent_builds = $::os_service_default, $max_concurrent_builds = $facts['os_service_default'],
$max_concurrent_live_migrations = $::os_service_default, $max_concurrent_live_migrations = $facts['os_service_default'],
$sync_power_state_pool_size = $::os_service_default, $sync_power_state_pool_size = $facts['os_service_default'],
$sync_power_state_interval = $::os_service_default, $sync_power_state_interval = $facts['os_service_default'],
$consecutive_build_service_disable_threshold = $::os_service_default, $consecutive_build_service_disable_threshold = $facts['os_service_default'],
$reserved_huge_pages = $::os_service_default, $reserved_huge_pages = $facts['os_service_default'],
$neutron_physnets_numa_nodes_mapping = {}, $neutron_physnets_numa_nodes_mapping = {},
$neutron_tunnel_numa_nodes = [], $neutron_tunnel_numa_nodes = [],
$live_migration_wait_for_vif_plug = $::os_service_default, $live_migration_wait_for_vif_plug = $facts['os_service_default'],
$max_disk_devices_to_attach = $::os_service_default, $max_disk_devices_to_attach = $facts['os_service_default'],
$default_access_ip_network_name = $::os_service_default, $default_access_ip_network_name = $facts['os_service_default'],
$running_deleted_instance_action = $::os_service_default, $running_deleted_instance_action = $facts['os_service_default'],
$running_deleted_instance_poll_interval = $::os_service_default, $running_deleted_instance_poll_interval = $facts['os_service_default'],
$running_deleted_instance_timeout = $::os_service_default, $running_deleted_instance_timeout = $facts['os_service_default'],
$compute_monitors = $::os_service_default, $compute_monitors = $facts['os_service_default'],
$default_ephemeral_format = $::os_service_default, $default_ephemeral_format = $facts['os_service_default'],
$image_type_exclude_list = $::os_service_default, $image_type_exclude_list = $facts['os_service_default'],
$block_device_allocate_retries = $::os_service_default, $block_device_allocate_retries = $facts['os_service_default'],
$block_device_allocate_retries_interval = $::os_service_default, $block_device_allocate_retries_interval = $facts['os_service_default'],
) { ) {
include nova::deps include nova::deps
include nova::params include nova::params
$image_type_exclude_list_real = pick(join(any2array($image_type_exclude_list), ','), $::os_service_default) $image_type_exclude_list_real = pick(join(any2array($image_type_exclude_list), ','), $facts['os_service_default'])
include nova::policy include nova::policy

View File

@ -6,36 +6,36 @@
# #
# [*manager_interval*] # [*manager_interval*]
# (optional) Number of seconds to wait between runs of the image cache manager. # (optional) Number of seconds to wait between runs of the image cache manager.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*subdirectory_name*] # [*subdirectory_name*]
# (optional) Location of cached images. # (optional) Location of cached images.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*remove_unused_base_images*] # [*remove_unused_base_images*]
# (optional) Should unused base images be removed? # (optional) Should unused base images be removed?
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*remove_unused_original_minimum_age_seconds*] # [*remove_unused_original_minimum_age_seconds*]
# (optional) Unused unresized base images younger than this will not be removed. # (optional) Unused unresized base images younger than this will not be removed.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*remove_unused_resized_minimum_age_seconds*] # [*remove_unused_resized_minimum_age_seconds*]
# (optional) Unused resized base images younger than this will not be removed. # (optional) Unused resized base images younger than this will not be removed.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*precache_concurrency*] # [*precache_concurrency*]
# (optional) Maximum number of compute hosts to trigger image precaching # (optional) Maximum number of compute hosts to trigger image precaching
# in parallel. # in parallel.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class nova::compute::image_cache ( class nova::compute::image_cache (
$manager_interval = $::os_service_default, $manager_interval = $facts['os_service_default'],
$subdirectory_name = $::os_service_default, $subdirectory_name = $facts['os_service_default'],
$remove_unused_base_images = $::os_service_default, $remove_unused_base_images = $facts['os_service_default'],
$remove_unused_original_minimum_age_seconds = $::os_service_default, $remove_unused_original_minimum_age_seconds = $facts['os_service_default'],
$remove_unused_resized_minimum_age_seconds = $::os_service_default, $remove_unused_resized_minimum_age_seconds = $facts['os_service_default'],
$precache_concurrency = $::os_service_default $precache_concurrency = $facts['os_service_default']
) { ) {
include nova::deps include nova::deps

View File

@ -42,12 +42,12 @@
# [*snapshot_image_format*] # [*snapshot_image_format*]
# (optional) Format to save snapshots to. Some filesystems # (optional) Format to save snapshots to. Some filesystems
# have a preference and only operate on raw or qcow2 # have a preference and only operate on raw or qcow2
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*snapshots_directory*] # [*snapshots_directory*]
# (optional) Location where libvirt driver will store snapshots before # (optional) Location where libvirt driver will store snapshots before
# uploading them to image service # uploading them to image service
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*disk_cachemodes*] # [*disk_cachemodes*]
# (optional) A list of cachemodes for different disk types, e.g. # (optional) A list of cachemodes for different disk types, e.g.
@ -59,29 +59,29 @@
# [*hw_disk_discard*] # [*hw_disk_discard*]
# (optional) Discard option for nova managed disks. Need Libvirt(1.0.6) # (optional) Discard option for nova managed disks. Need Libvirt(1.0.6)
# Qemu1.5 (raw format) Qemu1.6(qcow2 format). # Qemu1.5 (raw format) Qemu1.6(qcow2 format).
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*hw_machine_type*] # [*hw_machine_type*]
# (optional) Option to specify a default machine type per host architecture. # (optional) Option to specify a default machine type per host architecture.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*sysinfo_serial*] # [*sysinfo_serial*]
# (optional) Option to specify a serial number entry generation method. # (optional) Option to specify a serial number entry generation method.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*inject_password*] # [*inject_password*]
# (optional) Inject the admin password at boot time, without an agent. # (optional) Inject the admin password at boot time, without an agent.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*inject_key*] # [*inject_key*]
# (optional) Inject the ssh public key at boot time. # (optional) Inject the ssh public key at boot time.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*inject_partition*] # [*inject_partition*]
# (optional) The partition to inject to : -2 => disable, -1 => inspect # (optional) The partition to inject to : -2 => disable, -1 => inspect
# (libguestfs only), 0 => not partitioned, >0 => partition # (libguestfs only), 0 => not partitioned, >0 => partition
# number (integer value) # number (integer value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*enabled_perf_events*] # [*enabled_perf_events*]
# (optional) This is a performance event list which could be used as monitor. # (optional) This is a performance event list which could be used as monitor.
@ -89,18 +89,18 @@
# The supported events list can be found in # The supported events list can be found in
# https://libvirt.org/html/libvirt-libvirt-domain.html , # https://libvirt.org/html/libvirt-libvirt-domain.html ,
# which you may need to search key words ``VIR_PERF_PARAM_*`` # which you may need to search key words ``VIR_PERF_PARAM_*``
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*device_detach_attempts*] # [*device_detach_attempts*]
# (optional) Maximum number of attempts the driver tries to detach a device # (optional) Maximum number of attempts the driver tries to detach a device
# in libvirt. # in libvirt.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*device_detach_timeout*] # [*device_detach_timeout*]
# (optional) Maximum number of seconds the driver waits for the success or # (optional) Maximum number of seconds the driver waits for the success or
# the failure event from libvirt for a given device detach attempt before # the failure event from libvirt for a given device detach attempt before
# it re-trigger the detach. # it re-trigger the detach.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*libvirt_service_name*] # [*libvirt_service_name*]
# (optional) libvirt service name. # (optional) libvirt service name.
@ -126,7 +126,7 @@
# [*preallocate_images*] # [*preallocate_images*]
# (optional) The image preallocation mode to use. # (optional) The image preallocation mode to use.
# Valid values are 'none' or 'space'. # Valid values are 'none' or 'space'.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*manage_libvirt_services*] # [*manage_libvirt_services*]
# (optional) Whether or not deploy Libvirt services. # (optional) Whether or not deploy Libvirt services.
@ -138,44 +138,44 @@
# [*rx_queue_size*] # [*rx_queue_size*]
# (optional) virtio-net rx queue size # (optional) virtio-net rx queue size
# Valid values are 256, 512, 1024 # Valid values are 256, 512, 1024
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*tx_queue_size*] # [*tx_queue_size*]
# (optional) virtio-net tx queue size # (optional) virtio-net tx queue size
# Valid values are 256, 512, 1024 # Valid values are 256, 512, 1024
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*file_backed_memory*] # [*file_backed_memory*]
# (optional) Available capacity in MiB for file-backed memory. # (optional) Available capacity in MiB for file-backed memory.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*images_type*] # [*images_type*]
# (optional) VM Images format. # (optional) VM Images format.
# Valid Values are raw, flat, qcow2, lvm, rbd, ploop, default # Valid Values are raw, flat, qcow2, lvm, rbd, ploop, default
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*volume_use_multipath*] # [*volume_use_multipath*]
# (optional) Use multipath connection of the # (optional) Use multipath connection of the
# iSCSI or FC volume. Volumes can be connected in the # iSCSI or FC volume. Volumes can be connected in the
# LibVirt as multipath devices. # LibVirt as multipath devices.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*nfs_mount_options*] # [*nfs_mount_options*]
# (optional) Mount options passed to the NFS client. See section of the # (optional) Mount options passed to the NFS client. See section of the
# nfs man page for details. # nfs man page for details.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*num_pcie_ports*] # [*num_pcie_ports*]
# (optional) The number of PCIe ports an instance will get. # (optional) The number of PCIe ports an instance will get.
# Libvirt allows a custom number of PCIe ports (pcie-root-port controllers) a # Libvirt allows a custom number of PCIe ports (pcie-root-port controllers) a
# target instance will get. Some will be used by default, rest will be available # target instance will get. Some will be used by default, rest will be available
# for hotplug use. # for hotplug use.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*mem_stats_period_seconds*] # [*mem_stats_period_seconds*]
# (optional) A number of seconds to memory usage statistics period, # (optional) A number of seconds to memory usage statistics period,
# zero or negative value mean to disable memory usage statistics. # zero or negative value mean to disable memory usage statistics.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*pmem_namespaces*] # [*pmem_namespaces*]
# (optional) Configure persistent memory(pmem) namespaces. These namespaces # (optional) Configure persistent memory(pmem) namespaces. These namespaces
@ -184,21 +184,21 @@
# $NSNAME is the name of the pmem namespace. $LABEL represents one resource # $NSNAME is the name of the pmem namespace. $LABEL represents one resource
# class, this is used to generate the resource class name as # class, this is used to generate the resource class name as
# CUSTOM_PMEM_NAMESPACE_$LABEL. # CUSTOM_PMEM_NAMESPACE_$LABEL.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*swtpm_enabled*] # [*swtpm_enabled*]
# (optional) Enable emulated Trusted Platform Module (TPM) for guests. # (optional) Enable emulated Trusted Platform Module (TPM) for guests.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*swtpm_user*] # [*swtpm_user*]
# (optional) Configure the user that the swtpm binary, used for emulated # (optional) Configure the user that the swtpm binary, used for emulated
# Trusted Platform Module (TPM) functionality, runs as. # Trusted Platform Module (TPM) functionality, runs as.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*swtpm_group*] # [*swtpm_group*]
# (optional) Configure the group that the swtpm binary, used for emulated # (optional) Configure the group that the swtpm binary, used for emulated
# Trusted Platform Module (TPM) functionality, runs as. # Trusted Platform Module (TPM) functionality, runs as.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_queues*] # [*max_queues*]
# (optional) The maximum number of virtio queue pairs that can be enabled # (optional) The maximum number of virtio queue pairs that can be enabled
@ -206,17 +206,17 @@
# will be the lesser of the CPUs requested by the guest and the max value # will be the lesser of the CPUs requested by the guest and the max value
# defined. By default, this value is set to none meaning the legacy limits # defined. By default, this value is set to none meaning the legacy limits
# based on the reported kernel major version will be used. # based on the reported kernel major version will be used.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*num_memory_encrypted_guests*] # [*num_memory_encrypted_guests*]
# (optional) The maximum number of guests with encrypted memory which can # (optional) The maximum number of guests with encrypted memory which can
# run concurrently on this compute host. # run concurrently on this compute host.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*wait_soft_reboot_seconds*] # [*wait_soft_reboot_seconds*]
# (optional) Number of seconds to wait for instance to shut down after soft # (optional) Number of seconds to wait for instance to shut down after soft
# reboot request is made. # reboot request is made.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# DEPRECATED PARAMETRS # DEPRECATED PARAMETRS
# #
@ -250,40 +250,40 @@ class nova::compute::libvirt (
$cpu_mode = false, $cpu_mode = false,
$cpu_models = [], $cpu_models = [],
$cpu_model_extra_flags = undef, $cpu_model_extra_flags = undef,
$snapshot_image_format = $::os_service_default, $snapshot_image_format = $facts['os_service_default'],
$snapshots_directory = $::os_service_default, $snapshots_directory = $facts['os_service_default'],
$disk_cachemodes = [], $disk_cachemodes = [],
$hw_disk_discard = $::os_service_default, $hw_disk_discard = $facts['os_service_default'],
$hw_machine_type = $::os_service_default, $hw_machine_type = $facts['os_service_default'],
$sysinfo_serial = $::os_service_default, $sysinfo_serial = $facts['os_service_default'],
$inject_password = $::os_service_default, $inject_password = $facts['os_service_default'],
$inject_key = $::os_service_default, $inject_key = $facts['os_service_default'],
$inject_partition = $::os_service_default, $inject_partition = $facts['os_service_default'],
$enabled_perf_events = $::os_service_default, $enabled_perf_events = $facts['os_service_default'],
$device_detach_attempts = $::os_service_default, $device_detach_attempts = $facts['os_service_default'],
$device_detach_timeout = $::os_service_default, $device_detach_timeout = $facts['os_service_default'],
$libvirt_service_name = $::nova::params::libvirt_service_name, $libvirt_service_name = $::nova::params::libvirt_service_name,
$virtlock_service_name = $::nova::params::virtlock_service_name, $virtlock_service_name = $::nova::params::virtlock_service_name,
$virtlog_service_name = $::nova::params::virtlog_service_name, $virtlog_service_name = $::nova::params::virtlog_service_name,
$modular_libvirt = $::nova::params::modular_libvirt, $modular_libvirt = $::nova::params::modular_libvirt,
$compute_driver = 'libvirt.LibvirtDriver', $compute_driver = 'libvirt.LibvirtDriver',
$preallocate_images = $::os_service_default, $preallocate_images = $facts['os_service_default'],
$manage_libvirt_services = true, $manage_libvirt_services = true,
$rx_queue_size = $::os_service_default, $rx_queue_size = $facts['os_service_default'],
$tx_queue_size = $::os_service_default, $tx_queue_size = $facts['os_service_default'],
$file_backed_memory = $::os_service_default, $file_backed_memory = $facts['os_service_default'],
$images_type = $::os_service_default, $images_type = $facts['os_service_default'],
$volume_use_multipath = $::os_service_default, $volume_use_multipath = $facts['os_service_default'],
$nfs_mount_options = $::os_service_default, $nfs_mount_options = $facts['os_service_default'],
$num_pcie_ports = $::os_service_default, $num_pcie_ports = $facts['os_service_default'],
$mem_stats_period_seconds = $::os_service_default, $mem_stats_period_seconds = $facts['os_service_default'],
$pmem_namespaces = $::os_service_default, $pmem_namespaces = $facts['os_service_default'],
$swtpm_enabled = $::os_service_default, $swtpm_enabled = $facts['os_service_default'],
$swtpm_user = $::os_service_default, $swtpm_user = $facts['os_service_default'],
$swtpm_group = $::os_service_default, $swtpm_group = $facts['os_service_default'],
$max_queues = $::os_service_default, $max_queues = $facts['os_service_default'],
$num_memory_encrypted_guests = $::os_service_default, $num_memory_encrypted_guests = $facts['os_service_default'],
$wait_soft_reboot_seconds = $::os_service_default, $wait_soft_reboot_seconds = $facts['os_service_default'],
# DEPRECATED PARAMETERS # DEPRECATED PARAMETERS
$log_outputs = undef, $log_outputs = undef,
$log_filters = undef, $log_filters = undef,
@ -308,7 +308,7 @@ class nova::compute::libvirt (
$cpu_mode_default = $cpu_mode $cpu_mode_default = $cpu_mode
} }
if($::osfamily == 'Debian') { if($facts['os']['family'] == 'Debian') {
package { "nova-compute-${virt_type}": package { "nova-compute-${virt_type}":
ensure => $ensure_package, ensure => $ensure_package,
tag => ['openstack', 'nova-package'], tag => ['openstack', 'nova-package'],
@ -328,11 +328,11 @@ class nova::compute::libvirt (
} }
} }
unless $rx_queue_size == $::os_service_default or $rx_queue_size in [256, 512, 1024] { unless $rx_queue_size == $facts['os_service_default'] or $rx_queue_size in [256, 512, 1024] {
fail("Invalid rx_queue_size parameter: ${rx_queue_size}") fail("Invalid rx_queue_size parameter: ${rx_queue_size}")
} }
unless $tx_queue_size == $::os_service_default or $tx_queue_size in [256, 512, 1024] { unless $tx_queue_size == $facts['os_service_default'] or $tx_queue_size in [256, 512, 1024] {
fail("Invalid_tx_queue_size parameter: ${tx_queue_size}") fail("Invalid_tx_queue_size parameter: ${tx_queue_size}")
} }
@ -407,7 +407,7 @@ class nova::compute::libvirt (
if !empty($cpu_models) { if !empty($cpu_models) {
warning('$cpu_models requires that $cpu_mode => "custom" and will be ignored') warning('$cpu_models requires that $cpu_mode => "custom" and will be ignored')
} }
$cpu_models_real = $::os_service_default $cpu_models_real = $facts['os_service_default']
} }
nova_config { nova_config {
'libvirt/cpu_models': value => $cpu_models_real; 'libvirt/cpu_models': value => $cpu_models_real;
@ -421,7 +421,7 @@ class nova::compute::libvirt (
if $cpu_model_extra_flags { if $cpu_model_extra_flags {
warning('$cpu_model_extra_flags requires that $cpu_mode is not set to "none" and will be ignored') warning('$cpu_model_extra_flags requires that $cpu_mode is not set to "none" and will be ignored')
} }
$cpu_model_extra_flags_real = $::os_service_default $cpu_model_extra_flags_real = $facts['os_service_default']
} }
nova_config { nova_config {
'libvirt/cpu_model_extra_flags': value => $cpu_model_extra_flags_real; 'libvirt/cpu_model_extra_flags': value => $cpu_model_extra_flags_real;

View File

@ -6,58 +6,58 @@
# #
# [*log_level*] # [*log_level*]
# Defines a log level to filter log outputs. # Defines a log level to filter log outputs.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*log_filters*] # [*log_filters*]
# Defines a log filter to select a different logging level for # Defines a log filter to select a different logging level for
# for a given category log outputs. # for a given category log outputs.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*log_outputs*] # [*log_outputs*]
# (optional) Defines log outputs, as specified in # (optional) Defines log outputs, as specified in
# https://libvirt.org/logging.html # https://libvirt.org/logging.html
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_clients*] # [*max_clients*]
# The maximum number of concurrent client connections to allow # The maximum number of concurrent client connections to allow
# on primary socket. # on primary socket.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*admin_max_clients*] # [*admin_max_clients*]
# The maximum number of concurrent client connections to allow # The maximum number of concurrent client connections to allow
# on administrative socket. # on administrative socket.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_client_requests*] # [*max_client_requests*]
# Limit on concurrent requests from a single client connection. # Limit on concurrent requests from a single client connection.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*admin_max_client_requests*] # [*admin_max_client_requests*]
# Limit on concurrent requests from a single client connection # Limit on concurrent requests from a single client connection
# for the admin interface. # for the admin interface.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*tls_priority*] # [*tls_priority*]
# (optional) Override the compile time default TLS priority string. The # (optional) Override the compile time default TLS priority string. The
# default is usually "NORMAL" unless overridden at build time. # default is usually "NORMAL" unless overridden at build time.
# Only set this if it is desired for libvirt to deviate from # Only set this if it is desired for libvirt to deviate from
# the global default settings. # the global default settings.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*ovs_timeout*] # [*ovs_timeout*]
# (optional) A timeout for openvswitch calls made by libvirt # (optional) A timeout for openvswitch calls made by libvirt
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class nova::compute::libvirt::libvirtd ( class nova::compute::libvirt::libvirtd (
$log_level = $::os_service_default, $log_level = $facts['os_service_default'],
$log_filters = $::os_service_default, $log_filters = $facts['os_service_default'],
$log_outputs = $::os_service_default, $log_outputs = $facts['os_service_default'],
$max_clients = $::os_service_default, $max_clients = $facts['os_service_default'],
$admin_max_clients = $::os_service_default, $admin_max_clients = $facts['os_service_default'],
$max_client_requests = $::os_service_default, $max_client_requests = $facts['os_service_default'],
$admin_max_client_requests = $::os_service_default, $admin_max_client_requests = $facts['os_service_default'],
$tls_priority = $::os_service_default, $tls_priority = $facts['os_service_default'],
$ovs_timeout = $::os_service_default, $ovs_timeout = $facts['os_service_default'],
) { ) {
include nova::deps include nova::deps

View File

@ -68,7 +68,7 @@ class nova::compute::libvirt::services (
if $libvirt_service_name { if $libvirt_service_name {
# libvirt-nwfilter # libvirt-nwfilter
if $::osfamily == 'RedHat' { if $facts['os']['family'] == 'RedHat' {
package { 'libvirt-nwfilter': package { 'libvirt-nwfilter':
ensure => $ensure_package, ensure => $ensure_package,
name => $::nova::params::libvirt_nwfilter_package_name, name => $::nova::params::libvirt_nwfilter_package_name,
@ -115,7 +115,7 @@ class nova::compute::libvirt::services (
Libvirtd_config<||> ~> Service['libvirt'] Libvirtd_config<||> ~> Service['libvirt']
# messagebus # messagebus
if($::osfamily == 'RedHat') { if( $facts['os']['family'] == 'RedHat') {
service { 'messagebus': service { 'messagebus':
ensure => running, ensure => running,
enable => true, enable => true,

View File

@ -18,7 +18,7 @@ class nova::compute::libvirt::version {
$default = '6.0' $default = '6.0'
} }
default: { default: {
fail("Class['nova::compute::libvirt::version']: Unsupported osfamily: ${::osfamily}") fail("Unsupported osfamily: ${::facts['os']['family']}")
} }
} }
} }

View File

@ -6,55 +6,55 @@
# #
# [*log_level*] # [*log_level*]
# Defines a log level to filter log outputs. # Defines a log level to filter log outputs.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*log_filters*] # [*log_filters*]
# Defines a log filter to select a different logging level for # Defines a log filter to select a different logging level for
# for a given category log outputs. # for a given category log outputs.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*log_outputs*] # [*log_outputs*]
# (optional) Defines log outputs, as specified in # (optional) Defines log outputs, as specified in
# https://libvirt.org/logging.html # https://libvirt.org/logging.html
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_clients*] # [*max_clients*]
# The maximum number of concurrent client connections to allow # The maximum number of concurrent client connections to allow
# on primary socket. # on primary socket.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*admin_max_clients*] # [*admin_max_clients*]
# The maximum number of concurrent client connections to allow # The maximum number of concurrent client connections to allow
# on administrative socket. # on administrative socket.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_size*] # [*max_size*]
# Maximum file size before rolling over. # Maximum file size before rolling over.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_backups*] # [*max_backups*]
# Maximum number of backup files to keep. # Maximum number of backup files to keep.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class nova::compute::libvirt::virtlockd ( class nova::compute::libvirt::virtlockd (
$log_level = $::os_service_default, $log_level = $facts['os_service_default'],
$log_filters = $::os_service_default, $log_filters = $facts['os_service_default'],
$log_outputs = $::os_service_default, $log_outputs = $facts['os_service_default'],
$max_clients = $::os_service_default, $max_clients = $facts['os_service_default'],
$admin_max_clients = $::os_service_default, $admin_max_clients = $facts['os_service_default'],
$max_size = $::os_service_default, $max_size = $facts['os_service_default'],
$max_backups = $::os_service_default, $max_backups = $facts['os_service_default'],
) { ) {
include nova::deps include nova::deps
virtlockd_config { virtlockd_config {
'log_level': value => pick($log_level, $::os_service_default); 'log_level': value => pick($log_level, $facts['os_service_default']);
'log_filters': value => pick($log_filters, $::os_service_default), quote => true; 'log_filters': value => pick($log_filters, $facts['os_service_default']), quote => true;
'log_outputs': value => pick($log_outputs, $::os_service_default), quote => true; 'log_outputs': value => pick($log_outputs, $facts['os_service_default']), quote => true;
'max_clients': value => pick($max_clients, $::os_service_default); 'max_clients': value => pick($max_clients, $facts['os_service_default']);
'admin_max_clients': value => pick($admin_max_clients, $::os_service_default); 'admin_max_clients': value => pick($admin_max_clients, $facts['os_service_default']);
'max_size': value => pick($max_size, $::os_service_default); 'max_size': value => pick($max_size, $facts['os_service_default']);
'max_backups': value => pick($max_backups, $::os_service_default); 'max_backups': value => pick($max_backups, $facts['os_service_default']);
} }
} }

View File

@ -6,44 +6,44 @@
# #
# [*log_level*] # [*log_level*]
# Defines a log level to filter log outputs. # Defines a log level to filter log outputs.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*log_filters*] # [*log_filters*]
# Defines a log filter to select a different logging level for # Defines a log filter to select a different logging level for
# for a given category log outputs. # for a given category log outputs.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*log_outputs*] # [*log_outputs*]
# (optional) Defines log outputs, as specified in # (optional) Defines log outputs, as specified in
# https://libvirt.org/logging.html # https://libvirt.org/logging.html
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_clients*] # [*max_clients*]
# The maximum number of concurrent client connections to allow # The maximum number of concurrent client connections to allow
# on primary socket. # on primary socket.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*admin_max_clients*] # [*admin_max_clients*]
# The maximum number of concurrent client connections to allow # The maximum number of concurrent client connections to allow
# on administrative socket. # on administrative socket.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_size*] # [*max_size*]
# Maximum file size before rolling over. # Maximum file size before rolling over.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_backups*] # [*max_backups*]
# Maximum number of backup files to keep. # Maximum number of backup files to keep.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class nova::compute::libvirt::virtlogd ( class nova::compute::libvirt::virtlogd (
$log_level = $::os_service_default, $log_level = $facts['os_service_default'],
$log_filters = $::os_service_default, $log_filters = $facts['os_service_default'],
$log_outputs = $::os_service_default, $log_outputs = $facts['os_service_default'],
$max_clients = $::os_service_default, $max_clients = $facts['os_service_default'],
$admin_max_clients = $::os_service_default, $admin_max_clients = $facts['os_service_default'],
$max_size = $::os_service_default, $max_size = $facts['os_service_default'],
$max_backups = $::os_service_default, $max_backups = $facts['os_service_default'],
) { ) {
include nova::deps include nova::deps

View File

@ -6,50 +6,50 @@
# #
# [*log_level*] # [*log_level*]
# Defines a log level to filter log outputs. # Defines a log level to filter log outputs.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*log_filters*] # [*log_filters*]
# Defines a log filter to select a different logging level for # Defines a log filter to select a different logging level for
# for a given category log outputs. # for a given category log outputs.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*log_outputs*] # [*log_outputs*]
# (optional) Defines log outputs, as specified in # (optional) Defines log outputs, as specified in
# https://libvirt.org/logging.html # https://libvirt.org/logging.html
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_clients*] # [*max_clients*]
# The maximum number of concurrent client connections to allow # The maximum number of concurrent client connections to allow
# on primary socket. # on primary socket.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*admin_max_clients*] # [*admin_max_clients*]
# The maximum number of concurrent client connections to allow # The maximum number of concurrent client connections to allow
# on administrative socket. # on administrative socket.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_client_requests*] # [*max_client_requests*]
# Limit on concurrent requests from a single client connection. # Limit on concurrent requests from a single client connection.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*admin_max_client_requests*] # [*admin_max_client_requests*]
# Limit on concurrent requests from a single client connection # Limit on concurrent requests from a single client connection
# for the admin interface. # for the admin interface.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*ovs_timeout*] # [*ovs_timeout*]
# (optional) A timeout for openvswitch calls made by libvirt # (optional) A timeout for openvswitch calls made by libvirt
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class nova::compute::libvirt::virtnodedevd ( class nova::compute::libvirt::virtnodedevd (
$log_level = $::os_service_default, $log_level = $facts['os_service_default'],
$log_filters = $::os_service_default, $log_filters = $facts['os_service_default'],
$log_outputs = $::os_service_default, $log_outputs = $facts['os_service_default'],
$max_clients = $::os_service_default, $max_clients = $facts['os_service_default'],
$admin_max_clients = $::os_service_default, $admin_max_clients = $facts['os_service_default'],
$max_client_requests = $::os_service_default, $max_client_requests = $facts['os_service_default'],
$admin_max_client_requests = $::os_service_default, $admin_max_client_requests = $facts['os_service_default'],
$ovs_timeout = $::os_service_default, $ovs_timeout = $facts['os_service_default'],
) { ) {
include nova::deps include nova::deps

View File

@ -6,58 +6,58 @@
# #
# [*log_level*] # [*log_level*]
# Defines a log level to filter log outputs. # Defines a log level to filter log outputs.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*log_filters*] # [*log_filters*]
# Defines a log filter to select a different logging level for # Defines a log filter to select a different logging level for
# for a given category log outputs. # for a given category log outputs.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*log_outputs*] # [*log_outputs*]
# (optional) Defines log outputs, as specified in # (optional) Defines log outputs, as specified in
# https://libvirt.org/logging.html # https://libvirt.org/logging.html
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_clients*] # [*max_clients*]
# The maximum number of concurrent client connections to allow # The maximum number of concurrent client connections to allow
# on primary socket. # on primary socket.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*admin_max_clients*] # [*admin_max_clients*]
# The maximum number of concurrent client connections to allow # The maximum number of concurrent client connections to allow
# on administrative socket. # on administrative socket.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_client_requests*] # [*max_client_requests*]
# Limit on concurrent requests from a single client connection. # Limit on concurrent requests from a single client connection.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*admin_max_client_requests*] # [*admin_max_client_requests*]
# Limit on concurrent requests from a single client connection # Limit on concurrent requests from a single client connection
# for the admin interface. # for the admin interface.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*ovs_timeout*] # [*ovs_timeout*]
# (optional) A timeout for openvswitch calls made by libvirt # (optional) A timeout for openvswitch calls made by libvirt
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*tls_priority*] # [*tls_priority*]
# (optional) Override the compile time default TLS priority string. The # (optional) Override the compile time default TLS priority string. The
# default is usually "NORMAL" unless overridden at build time. # default is usually "NORMAL" unless overridden at build time.
# Only set this if it is desired for libvirt to deviate from # Only set this if it is desired for libvirt to deviate from
# the global default settings. # the global default settings.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class nova::compute::libvirt::virtproxyd ( class nova::compute::libvirt::virtproxyd (
$log_level = $::os_service_default, $log_level = $facts['os_service_default'],
$log_filters = $::os_service_default, $log_filters = $facts['os_service_default'],
$log_outputs = $::os_service_default, $log_outputs = $facts['os_service_default'],
$max_clients = $::os_service_default, $max_clients = $facts['os_service_default'],
$admin_max_clients = $::os_service_default, $admin_max_clients = $facts['os_service_default'],
$max_client_requests = $::os_service_default, $max_client_requests = $facts['os_service_default'],
$admin_max_client_requests = $::os_service_default, $admin_max_client_requests = $facts['os_service_default'],
$ovs_timeout = $::os_service_default, $ovs_timeout = $facts['os_service_default'],
$tls_priority = $::os_service_default, $tls_priority = $facts['os_service_default'],
) { ) {
include nova::deps include nova::deps

View File

@ -6,51 +6,51 @@
# #
# [*log_level*] # [*log_level*]
# Defines a log level to filter log outputs. # Defines a log level to filter log outputs.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*log_filters*] # [*log_filters*]
# Defines a log filter to select a different logging level for # Defines a log filter to select a different logging level for
# for a given category log outputs. # for a given category log outputs.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*log_outputs*] # [*log_outputs*]
# (optional) Defines log outputs, as specified in # (optional) Defines log outputs, as specified in
# https://libvirt.org/logging.html # https://libvirt.org/logging.html
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_clients*] # [*max_clients*]
# The maximum number of concurrent client connections to allow # The maximum number of concurrent client connections to allow
# on primary socket. # on primary socket.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*admin_max_clients*] # [*admin_max_clients*]
# The maximum number of concurrent client connections to allow # The maximum number of concurrent client connections to allow
# on administrative socket. # on administrative socket.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_client_requests*] # [*max_client_requests*]
# Limit on concurrent requests from a single client connection. # Limit on concurrent requests from a single client connection.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*admin_max_client_requests*] # [*admin_max_client_requests*]
# Limit on concurrent requests from a single client connection # Limit on concurrent requests from a single client connection
# for the admin interface. # for the admin interface.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*ovs_timeout*] # [*ovs_timeout*]
# (optional) A timeout for openvswitch calls made by libvirt # (optional) A timeout for openvswitch calls made by libvirt
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# #
class nova::compute::libvirt::virtqemud ( class nova::compute::libvirt::virtqemud (
$log_level = $::os_service_default, $log_level = $facts['os_service_default'],
$log_filters = $::os_service_default, $log_filters = $facts['os_service_default'],
$log_outputs = $::os_service_default, $log_outputs = $facts['os_service_default'],
$max_clients = $::os_service_default, $max_clients = $facts['os_service_default'],
$admin_max_clients = $::os_service_default, $admin_max_clients = $facts['os_service_default'],
$max_client_requests = $::os_service_default, $max_client_requests = $facts['os_service_default'],
$admin_max_client_requests = $::os_service_default, $admin_max_client_requests = $facts['os_service_default'],
$ovs_timeout = $::os_service_default, $ovs_timeout = $facts['os_service_default'],
) { ) {
include nova::deps include nova::deps

View File

@ -6,50 +6,50 @@
# #
# [*log_level*] # [*log_level*]
# Defines a log level to filter log outputs. # Defines a log level to filter log outputs.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*log_filters*] # [*log_filters*]
# Defines a log filter to select a different logging level for # Defines a log filter to select a different logging level for
# for a given category log outputs. # for a given category log outputs.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*log_outputs*] # [*log_outputs*]
# (optional) Defines log outputs, as specified in # (optional) Defines log outputs, as specified in
# https://libvirt.org/logging.html # https://libvirt.org/logging.html
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_clients*] # [*max_clients*]
# The maximum number of concurrent client connections to allow # The maximum number of concurrent client connections to allow
# on primary socket. # on primary socket.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*admin_max_clients*] # [*admin_max_clients*]
# The maximum number of concurrent client connections to allow # The maximum number of concurrent client connections to allow
# on administrative socket. # on administrative socket.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_client_requests*] # [*max_client_requests*]
# Limit on concurrent requests from a single client connection. # Limit on concurrent requests from a single client connection.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*admin_max_client_requests*] # [*admin_max_client_requests*]
# Limit on concurrent requests from a single client connection # Limit on concurrent requests from a single client connection
# for the admin interface. # for the admin interface.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*ovs_timeout*] # [*ovs_timeout*]
# (optional) A timeout for openvswitch calls made by libvirt # (optional) A timeout for openvswitch calls made by libvirt
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class nova::compute::libvirt::virtsecretd ( class nova::compute::libvirt::virtsecretd (
$log_level = $::os_service_default, $log_level = $facts['os_service_default'],
$log_filters = $::os_service_default, $log_filters = $facts['os_service_default'],
$log_outputs = $::os_service_default, $log_outputs = $facts['os_service_default'],
$max_clients = $::os_service_default, $max_clients = $facts['os_service_default'],
$admin_max_clients = $::os_service_default, $admin_max_clients = $facts['os_service_default'],
$max_client_requests = $::os_service_default, $max_client_requests = $facts['os_service_default'],
$admin_max_client_requests = $::os_service_default, $admin_max_client_requests = $facts['os_service_default'],
$ovs_timeout = $::os_service_default, $ovs_timeout = $facts['os_service_default'],
) { ) {
include nova::deps include nova::deps

View File

@ -6,27 +6,27 @@
# #
# [*log_level*] # [*log_level*]
# Defines a log level to filter log outputs. # Defines a log level to filter log outputs.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*log_filters*] # [*log_filters*]
# Defines a log filter to select a different logging level for # Defines a log filter to select a different logging level for
# for a given category log outputs. # for a given category log outputs.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*log_outputs*] # [*log_outputs*]
# (optional) Defines log outputs, as specified in # (optional) Defines log outputs, as specified in
# https://libvirt.org/logging.html # https://libvirt.org/logging.html
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*ovs_timeout*] # [*ovs_timeout*]
# (optional) A timeout for openvswitch calls made by libvirt # (optional) A timeout for openvswitch calls made by libvirt
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class nova::compute::libvirt::virtstoraged ( class nova::compute::libvirt::virtstoraged (
$log_level = $::os_service_default, $log_level = $facts['os_service_default'],
$log_filters = $::os_service_default, $log_filters = $facts['os_service_default'],
$log_outputs = $::os_service_default, $log_outputs = $facts['os_service_default'],
$ovs_timeout = $::os_service_default, $ovs_timeout = $facts['os_service_default'],
) { ) {
include nova::deps include nova::deps

View File

@ -62,7 +62,7 @@ class nova::compute::libvirt_guests (
-> File_line<| tag == 'libvirt-guests-file_line'|> -> File_line<| tag == 'libvirt-guests-file_line'|>
-> Anchor['nova::config::end'] -> Anchor['nova::config::end']
case $::osfamily { case $facts['os']['family'] {
'RedHat': { 'RedHat': {
# NOTE(tkajinam): Since libvirt 8.1.0, the sysconfig files are # NOTE(tkajinam): Since libvirt 8.1.0, the sysconfig files are
# no longer provided by packages. # no longer provided by packages.
@ -102,7 +102,7 @@ class nova::compute::libvirt_guests (
} }
} }
default: { default: {
warning("Unsupported osfamily: ${::osfamily}, make sure you are configuring this yourself") warning("Unsupported osfamily: ${facts['os']['family']}, make sure you are configuring this yourself")
} }
} }
} }

View File

@ -11,22 +11,22 @@
# [*device_addresses*] # [*device_addresses*]
# (Optional) A list of PCI addresses corresponding to the physical GPU(s) or # (Optional) A list of PCI addresses corresponding to the physical GPU(s) or
# mdev-capable hardware. # mdev-capable hardware.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*mdev_class*] # [*mdev_class*]
# (Optional) Class of mediated device to manage used to differentiate between # (Optional) Class of mediated device to manage used to differentiate between
# device type. # device type.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
define nova::compute::mdev_type ( define nova::compute::mdev_type (
$mdev_type = $name, $mdev_type = $name,
$device_addresses = $::os_service_default, $device_addresses = $facts['os_service_default'],
$mdev_class = $::os_service_default, $mdev_class = $facts['os_service_default'],
) { ) {
if empty($device_addresses) { if empty($device_addresses) {
nova_config { nova_config {
"mdev_${mdev_type}/device_addresses": value => $::os_service_default "mdev_${mdev_type}/device_addresses": value => $facts['os_service_default']
} }
} else { } else {
nova_config { nova_config {

View File

@ -6,13 +6,13 @@
# #
# [*passthrough*] # [*passthrough*]
# (optional) Pci passthrough list of hash. # (optional) Pci passthrough list of hash.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# Example of format: # Example of format:
# [ { "vendor_id" => "1234","product_id" => "5678" }, # [ { "vendor_id" => "1234","product_id" => "5678" },
# { "vendor_id" => "4321","product_id" => "8765", "physical_network" => "default" } ] # { "vendor_id" => "4321","product_id" => "8765", "physical_network" => "default" } ]
class nova::compute::pci( class nova::compute::pci(
$passthrough = $::os_service_default $passthrough = $facts['os_service_default']
) { ) {
include nova::deps include nova::deps
@ -21,7 +21,7 @@ class nova::compute::pci(
!empty($passthrough) { !empty($passthrough) {
$passthrough_real = to_array_of_json_strings($passthrough) $passthrough_real = to_array_of_json_strings($passthrough)
} else { } else {
$passthrough_real = $::os_service_default $passthrough_real = $facts['os_service_default']
} }
nova_config { nova_config {
'pci/device_spec': value => $passthrough_real; 'pci/device_spec': value => $passthrough_real;

View File

@ -35,17 +35,17 @@
# If set, this will allow Nova to request that Glance copy an image from # If set, this will allow Nova to request that Glance copy an image from
# an existing non-local store into the one named by this option before # an existing non-local store into the one named by this option before
# booting so that proper Copy-on-Write behavior is maintained. # booting so that proper Copy-on-Write behavior is maintained.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*libvirt_images_rbd_glance_copy_poll_interval*] # [*libvirt_images_rbd_glance_copy_poll_interval*]
# (optional) The interval in seconds with which to poll Glance after asking # (optional) The interval in seconds with which to poll Glance after asking
# for it to copy an image to the local rbd store. # for it to copy an image to the local rbd store.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*libvirt_images_rbd_glance_copy_timeout*] # [*libvirt_images_rbd_glance_copy_timeout*]
# (optional) The overall maximum time we will wait for Glance to complete # (optional) The overall maximum time we will wait for Glance to complete
# an image copy to our local rbd store. # an image copy to our local rbd store.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*libvirt_rbd_user*] # [*libvirt_rbd_user*]
# (Required) The RADOS client name for accessing rbd volumes. # (Required) The RADOS client name for accessing rbd volumes.
@ -90,9 +90,9 @@ class nova::compute::rbd (
$libvirt_rbd_secret_key = undef, $libvirt_rbd_secret_key = undef,
$libvirt_images_rbd_pool = 'rbd', $libvirt_images_rbd_pool = 'rbd',
$libvirt_images_rbd_ceph_conf = '/etc/ceph/ceph.conf', $libvirt_images_rbd_ceph_conf = '/etc/ceph/ceph.conf',
$libvirt_images_rbd_glance_store_name = $::os_service_default, $libvirt_images_rbd_glance_store_name = $facts['os_service_default'],
$libvirt_images_rbd_glance_copy_poll_interval = $::os_service_default, $libvirt_images_rbd_glance_copy_poll_interval = $facts['os_service_default'],
$libvirt_images_rbd_glance_copy_timeout = $::os_service_default, $libvirt_images_rbd_glance_copy_timeout = $facts['os_service_default'],
$rbd_keyring = 'client.nova', $rbd_keyring = 'client.nova',
$ephemeral_storage = true, $ephemeral_storage = true,
$manage_ceph_client = true, $manage_ceph_client = true,
@ -112,7 +112,7 @@ class nova::compute::rbd (
} }
} }
if $::osfamily == 'Debian' { if $facts['os']['family'] == 'Debian' {
package { 'qemu-block-extra': package { 'qemu-block-extra':
ensure => $package_ensure, ensure => $package_ensure,
tag => ['openstack', 'nova-support-package'], tag => ['openstack', 'nova-support-package'],

View File

@ -10,7 +10,7 @@
# #
# [*server_listen*] # [*server_listen*]
# (optional) IP address on which instance spice servers should listen # (optional) IP address on which instance spice servers should listen
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*server_proxyclient_address*] # [*server_proxyclient_address*]
# (optional) Management IP Address on which instance spiceservers will # (optional) Management IP Address on which instance spiceservers will
@ -35,7 +35,7 @@
# #
class nova::compute::spice( class nova::compute::spice(
$agent_enabled = true, $agent_enabled = true,
$server_listen = $::os_service_default, $server_listen = $facts['os_service_default'],
$server_proxyclient_address = '127.0.0.1', $server_proxyclient_address = '127.0.0.1',
$proxy_host = false, $proxy_host = false,
$proxy_protocol = 'http', $proxy_protocol = 'http',
@ -52,7 +52,7 @@ class nova::compute::spice(
} }
} else { } else {
nova_config { nova_config {
'spice/html5proxy_base_url': value => $::os_service_default; 'spice/html5proxy_base_url': value => $facts['os_service_default'];
} }
} }

View File

@ -19,7 +19,7 @@
# [*api_retry_count*] # [*api_retry_count*]
# (optional) The number of times we retry on failures, # (optional) The number of times we retry on failures,
# e.g., socket error, etc. # e.g., socket error, etc.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*maximum_objects*] # [*maximum_objects*]
# (optional) The maximum number of ObjectContent data objects that should # (optional) The maximum number of ObjectContent data objects that should
@ -28,15 +28,15 @@
# objects reaches the specified maximum. The server may still # objects reaches the specified maximum. The server may still
# limit the count to something less than the configured value. # limit the count to something less than the configured value.
# Any remaining objects may be retrieved with additional requests. # Any remaining objects may be retrieved with additional requests.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*task_poll_interval*] # [*task_poll_interval*]
# (optional) The interval in seconds used for polling of remote tasks. # (optional) The interval in seconds used for polling of remote tasks.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*use_linked_clone*] # [*use_linked_clone*]
# (optional) Whether to use linked clone strategy while creating VM's. # (optional) Whether to use linked clone strategy while creating VM's.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*compute_driver*] # [*compute_driver*]
# (optional) Compute driver. # (optional) Compute driver.
@ -47,30 +47,30 @@
# If true, the vCenter server certificate is not verified. If # If true, the vCenter server certificate is not verified. If
# false, then the default CA truststore is used for verification. This # false, then the default CA truststore is used for verification. This
# option is ignored if 'ca_file' is set. # option is ignored if 'ca_file' is set.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*ca_file*] # [*ca_file*]
# (optional) Specify a CA bundle file to use in verifying the vCenter server # (optional) Specify a CA bundle file to use in verifying the vCenter server
# certificate. # certificate.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*datastore_regex*] # [*datastore_regex*]
# (optional) Regex to match the name of a datastore. # (optional) Regex to match the name of a datastore.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class nova::compute::vmware( class nova::compute::vmware(
$host_ip, $host_ip,
$host_username, $host_username,
$host_password, $host_password,
$cluster_name, $cluster_name,
$api_retry_count = $::os_service_default, $api_retry_count = $facts['os_service_default'],
$maximum_objects = $::os_service_default, $maximum_objects = $facts['os_service_default'],
$task_poll_interval = $::os_service_default, $task_poll_interval = $facts['os_service_default'],
$use_linked_clone = $::os_service_default, $use_linked_clone = $facts['os_service_default'],
$compute_driver = 'vmwareapi.VMwareVCDriver', $compute_driver = 'vmwareapi.VMwareVCDriver',
$insecure = $::os_service_default, $insecure = $facts['os_service_default'],
$ca_file = $::os_service_default, $ca_file = $facts['os_service_default'],
$datastore_regex = $::os_service_default, $datastore_regex = $facts['os_service_default'],
) { ) {
include nova::deps include nova::deps

View File

@ -18,21 +18,21 @@
# #
# [*workers*] # [*workers*]
# (optional) Number of workers for OpenStack Conductor service # (optional) Number of workers for OpenStack Conductor service
# Defaults to $::os_workers # Defaults to $facts['os_workers']
# #
# [*enable_new_services*] # [*enable_new_services*]
# (optional) When a new service (for example "nova-compute") start up, it gets # (optional) When a new service (for example "nova-compute") start up, it gets
# registered in the database as an enabled service. Setting this to false will # registered in the database as an enabled service. Setting this to false will
# cause new services to be disabled when added. This config option is only used # cause new services to be disabled when added. This config option is only used
# by the conductor service which is responsible for creating the service entries. # by the conductor service which is responsible for creating the service entries.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class nova::conductor( class nova::conductor(
$enabled = true, $enabled = true,
$manage_service = true, $manage_service = true,
$ensure_package = 'present', $ensure_package = 'present',
$workers = $::os_workers, $workers = $facts['os_workers'],
$enable_new_services = $::os_service_default, $enable_new_services = $facts['os_service_default'],
) { ) {
include nova::deps include nova::deps

View File

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

View File

@ -23,99 +23,99 @@
# #
# [*database_connection*] # [*database_connection*]
# (optional) Connection url to connect to nova database. # (optional) Connection url to connect to nova database.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*slave_connection*] # [*slave_connection*]
# (optional) Connection url to connect to nova slave database (read-only). # (optional) Connection url to connect to nova slave database (read-only).
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*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']
# #
# [*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']
# #
# [*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']
# #
# [*api_database_connection*] # [*api_database_connection*]
# (optional) Connection url to connect to nova api database. # (optional) Connection url to connect to nova api database.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*api_slave_connection*] # [*api_slave_connection*]
# (optional) Connection url to connect to nova api slave database (read-only). # (optional) Connection url to connect to nova api slave database (read-only).
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*api_database_connection_recycle_time*] # [*api_database_connection_recycle_time*]
# Timeout when nova api db connections should be reaped. # Timeout when nova api db connections should be reaped.
# (Optional) Defaults to $::os_service_default # (Optional) Defaults to $facts['os_service_default']
# #
# [*api_database_max_pool_size*] # [*api_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']
# #
# [*api_database_max_retries*] # [*api_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']
# #
# [*api_database_retry_interval*] # [*api_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']
# #
# [*api_database_max_overflow*] # [*api_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']
# #
# [*api_database_pool_timeout*] # [*api_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']
# #
class nova::db ( class nova::db (
$database_connection = $::os_service_default, $database_connection = $facts['os_service_default'],
$slave_connection = $::os_service_default, $slave_connection = $facts['os_service_default'],
$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'],
$database_db_max_retries = $::os_service_default, $database_db_max_retries = $facts['os_service_default'],
$mysql_enable_ndb = $::os_service_default, $mysql_enable_ndb = $facts['os_service_default'],
$api_database_connection = $::os_service_default, $api_database_connection = $facts['os_service_default'],
$api_slave_connection = $::os_service_default, $api_slave_connection = $facts['os_service_default'],
$api_database_connection_recycle_time = $::os_service_default, $api_database_connection_recycle_time = $facts['os_service_default'],
$api_database_max_pool_size = $::os_service_default, $api_database_max_pool_size = $facts['os_service_default'],
$api_database_max_retries = $::os_service_default, $api_database_max_retries = $facts['os_service_default'],
$api_database_retry_interval = $::os_service_default, $api_database_retry_interval = $facts['os_service_default'],
$api_database_max_overflow = $::os_service_default, $api_database_max_overflow = $facts['os_service_default'],
$api_database_pool_timeout = $::os_service_default, $api_database_pool_timeout = $facts['os_service_default'],
) { ) {
include nova::deps include nova::deps

View File

@ -6,53 +6,53 @@
# #
# [*endpoint_override*] # [*endpoint_override*]
# (optional) Override the endpoint to use to talk to Glance. # (optional) Override the endpoint to use to talk to Glance.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*valid_interfaces*] # [*valid_interfaces*]
# (optional) List of interfaces, in order of preference. # (optional) List of interfaces, in order of preference.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*num_retries*] # [*num_retries*]
# (optional) Number of retries in glance operation # (optional) Number of retries in glance operation
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*verify_glance_signatures*] # [*verify_glance_signatures*]
# (optional) Whether to verify image signatures. (boolean value) # (optional) Whether to verify image signatures. (boolean value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*enable_rbd_download*] # [*enable_rbd_download*]
# (optional) Enable download of Glance images directly via RBD # (optional) Enable download of Glance images directly via RBD
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rbd_user*] # [*rbd_user*]
# (optional) The RADOS client name for accessing Glance images stored as # (optional) The RADOS client name for accessing Glance images stored as
# rbd volumes. # rbd volumes.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rbd_connect_timeout*] # [*rbd_connect_timeout*]
# (optional) THe RADOS client timeout in seconds when initially connecting # (optional) THe RADOS client timeout in seconds when initially connecting
# to the cluster. # to the cluster.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rbd_pool*] # [*rbd_pool*]
# (optional) The RADOS pool in which the Glance images are stored as rbd # (optional) The RADOS pool in which the Glance images are stored as rbd
# volumes. # volumes.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rbd_ceph_conf*] # [*rbd_ceph_conf*]
# (optional) Path to the ceph configuration file to use. # (optional) Path to the ceph configuration file to use.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class nova::glance ( class nova::glance (
$endpoint_override = $::os_service_default, $endpoint_override = $facts['os_service_default'],
$valid_interfaces = $::os_service_default, $valid_interfaces = $facts['os_service_default'],
$num_retries = $::os_service_default, $num_retries = $facts['os_service_default'],
$verify_glance_signatures = $::os_service_default, $verify_glance_signatures = $facts['os_service_default'],
$enable_rbd_download = $::os_service_default, $enable_rbd_download = $facts['os_service_default'],
$rbd_user = $::os_service_default, $rbd_user = $facts['os_service_default'],
$rbd_connect_timeout = $::os_service_default, $rbd_connect_timeout = $facts['os_service_default'],
$rbd_pool = $::os_service_default, $rbd_pool = $facts['os_service_default'],
$rbd_ceph_conf = $::os_service_default, $rbd_ceph_conf = $facts['os_service_default'],
) { ) {
include nova::deps include nova::deps

View File

@ -13,30 +13,30 @@
# (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. (integer value) # (Optional) Seconds to wait for a response from a call. (integer value)
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*long_rpc_timeout*] # [*long_rpc_timeout*]
# (Optional) An alternative timeout value for RPC calls that have # (Optional) An alternative timeout value for RPC calls that have
# the potential to take a long time. # the potential to take a long time.
# 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']
# #
# [*rabbit_use_ssl*] # [*rabbit_use_ssl*]
# (optional) Boolean. Connect over SSL for RabbitMQ. (boolean value) # (optional) Boolean. Connect over SSL for RabbitMQ. (boolean value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rabbit_ha_queues*] # [*rabbit_ha_queues*]
# (optional) Use HA queues in RabbitMQ. (boolean value) # (optional) Use HA queues in RabbitMQ. (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 RabbitMQ broker is considered # (optional) Number of seconds after which the RabbitMQ broker is considered
@ -44,14 +44,14 @@
# Heartbeating helps to ensure the TCP connection to RabbitMQ isn't silently # Heartbeating helps to ensure the TCP connection to RabbitMQ isn't silently
# closed, resulting in missed or lost messages from the queue. # closed, resulting in missed or lost messages from the queue.
# Requires kombu >= 3.0.7 and amqp >= 1.4.0. (integer value) # Requires kombu >= 3.0.7 and amqp >= 1.4.0. (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 # (optional) How often during the rabbit_heartbeat_timeout_threshold period
# to check the heartbeat on RabbitMQ connection. # to check the heartbeat on RabbitMQ connection.
# i.e. rabbit_heartbeat_rate=2 when rabbit_heartbeat_timeout_threshold=60, # i.e. rabbit_heartbeat_rate=2 when rabbit_heartbeat_timeout_threshold=60,
# the heartbeat will be checked every 30 seconds. (integer value) # the heartbeat will be checked every 30 seconds. (integer value)
# 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
@ -61,117 +61,117 @@
# 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_retry_interval*] # [*rabbit_retry_interval*]
# (Optional) How frequently to retry connecting with RabbitMQ. # (Optional) How frequently to retry connecting with RabbitMQ.
# (integer value) # (integer value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*kombu_ssl_ca_certs*] # [*kombu_ssl_ca_certs*]
# (optional) SSL certification authority file (valid only if SSL enabled). # (optional) SSL certification authority file (valid only if SSL enabled).
# (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, SSLv23 and SSLv3. SSLv2 may be # Valid values are TLSv1, SSLv23 and SSLv3. SSLv2 may be
# available on some distributions. (string value) # 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 to an AMQP # (optional) How long to wait before reconnecting in response to an AMQP
# consumer cancel notification. (floating point value) # 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']
# #
# [*kombu_compression*] # [*kombu_compression*]
# (optional) Possible values are: gzip, bz2. If not set compression will not # (optional) Possible values are: gzip, bz2. If not set compression will not
# be used. This option may not be available in future versions. EXPERIMENTAL. # be used. This option may not be available in future versions. EXPERIMENTAL.
# (string value) # (string value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*amqp_durable_queues*] # [*amqp_durable_queues*]
# (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']
# #
# [*amqp_server_request_prefix*] # [*amqp_server_request_prefix*]
# (Optional) Address prefix used when sending to a specific server # (Optional) Address prefix used when sending to a specific server
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_broadcast_prefix*] # [*amqp_broadcast_prefix*]
# (Optional) address prefix used when broadcasting to all servers # (Optional) address prefix used when broadcasting to all servers
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_group_request_prefix*] # [*amqp_group_request_prefix*]
# (Optional) address prefix when sending to any server in group # (Optional) address prefix when sending to any server in group
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_container_name*] # [*amqp_container_name*]
# (Optional) Name for the AMQP container # (Optional) Name for the AMQP container
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_idle_timeout*] # [*amqp_idle_timeout*]
# (Optional) Timeout for inactive connections # (Optional) Timeout for inactive connections
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_trace*] # [*amqp_trace*]
# (Optional) Debug: dump AMQP frames to stdout # (Optional) Debug: dump AMQP frames to stdout
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_ssl_ca_file*] # [*amqp_ssl_ca_file*]
# (Optional) CA certificate PEM file to verify server certificate # (Optional) CA certificate PEM file to verify server certificate
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_ssl_cert_file*] # [*amqp_ssl_cert_file*]
# (Optional) Identifying certificate PEM file to present to clients # (Optional) Identifying certificate PEM file to present to clients
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_ssl_key_file*] # [*amqp_ssl_key_file*]
# (Optional) Private key PEM file used to sign cert_file certificate # (Optional) Private key PEM file used to sign cert_file certificate
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_ssl_key_password*] # [*amqp_ssl_key_password*]
# (Optional) Password for decrypting ssl_key_file (if encrypted) # (Optional) Password for decrypting ssl_key_file (if encrypted)
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_sasl_mechanisms*] # [*amqp_sasl_mechanisms*]
# (Optional) Space separated list of acceptable SASL mechanisms # (Optional) Space separated list of acceptable SASL mechanisms
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_sasl_config_dir*] # [*amqp_sasl_config_dir*]
# (Optional) Path to directory that contains the SASL configuration # (Optional) Path to directory that contains the SASL configuration
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_sasl_config_name*] # [*amqp_sasl_config_name*]
# (Optional) Name of configuration file (without .conf suffix) # (Optional) Name of configuration file (without .conf suffix)
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_username*] # [*amqp_username*]
# (Optional) User name for message broker authentication # (Optional) User name for message broker authentication
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*amqp_password*] # [*amqp_password*]
# (Optional) Password for message broker authentication # (Optional) Password for message broker authentication
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*host*] # [*host*]
# (Optional) Name of this node. This is typically a hostname, FQDN, or # (Optional) Name of this node. This is typically a hostname, FQDN, or
# IP address. # IP address.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*service_down_time*] # [*service_down_time*]
# (optional) Maximum time since last check-in for up service. # (optional) Maximum time since last check-in for up service.
@ -237,43 +237,43 @@
# #
# [*cert*] # [*cert*]
# (optional) Path to SSL certificate file. # (optional) Path to SSL certificate file.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*key*] # [*key*]
# (optional) SSL key file (if separate from cert). # (optional) SSL key file (if separate from cert).
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*console_ssl_ciphers*] # [*console_ssl_ciphers*]
# (optional) OpenSSL cipher preference string that specifies what ciphers to # (optional) OpenSSL cipher preference string that specifies what ciphers to
# allow for TLS connections from clients. See the man page for the OpenSSL # allow for TLS connections from clients. See the man page for the OpenSSL
# 'ciphers' command for details of the cipher preference string format and # 'ciphers' command for details of the cipher preference string format and
# allowed values. # allowed values.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*console_ssl_minimum_version*] # [*console_ssl_minimum_version*]
# (optional) Minimum allowed SSL/TLS protocol version. Valid values are # (optional) Minimum allowed SSL/TLS protocol version. Valid values are
# 'default', 'tlsv1_1', 'tlsv1_2', and 'tlsv1_3'. A value of 'default' will # 'default', 'tlsv1_1', 'tlsv1_2', and 'tlsv1_3'. A value of 'default' will
# use the underlying system OpenSSL defaults. # use the underlying system OpenSSL defaults.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*notification_transport_url*] # [*notification_transport_url*]
# (optional) A URL representing the messaging driver to use for notifications # (optional) A URL representing the messaging driver to use for notifications
# and its full configuration. Transport URLs take the form: # and its full configuration. Transport URLs take the form:
# transport://user:pass@host1:port[,hostN:portN]/virtual_host # transport://user:pass@host1:port[,hostN:portN]/virtual_host
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*notification_driver*] # [*notification_driver*]
# (optional) Driver or drivers to handle sending notifications. # (optional) Driver or drivers to handle sending notifications.
# Value can be a string or a list. # Value can be a string or a list.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*notification_topics*] # [*notification_topics*]
# (optional) AMQP topic used for OpenStack notifications # (optional) AMQP topic used for OpenStack notifications
# Defaults to ::os_service_default # Defaults to facts['os_service_default']
# #
# [*notification_format*] # [*notification_format*]
# (optional) Format used for OpenStack notifications # (optional) Format used for OpenStack notifications
# Defaults to ::os_service_default # Defaults to facts['os_service_default']
# #
# [*notify_on_state_change*] # [*notify_on_state_change*]
# (optional) If set, send compute.instance.update notifications # (optional) If set, send compute.instance.update notifications
@ -285,27 +285,27 @@
# [*ovsdb_connection*] # [*ovsdb_connection*]
# (optional) Sets the ovsdb connection string. This is used by os-vif # (optional) Sets the ovsdb connection string. This is used by os-vif
# to interact with openvswitch on the host. # to interact with openvswitch on the host.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*upgrade_level_cells*] # [*upgrade_level_cells*]
# (optional) Sets a version cap for messages sent to local cells services # (optional) Sets a version cap for messages sent to local cells services
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*upgrade_level_compute*] # [*upgrade_level_compute*]
# (optional) Sets a version cap for messages sent to compute services # (optional) Sets a version cap for messages sent to compute services
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*upgrade_level_conductor*] # [*upgrade_level_conductor*]
# (optional) Sets a version cap for messages sent to conductor services # (optional) Sets a version cap for messages sent to conductor services
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*upgrade_level_intercell*] # [*upgrade_level_intercell*]
# (optional) Sets a version cap for messages sent between cells services # (optional) Sets a version cap for messages sent between cells services
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*upgrade_level_scheduler*] # [*upgrade_level_scheduler*]
# (optional) Sets a version cap for messages sent to scheduler services # (optional) Sets a version cap for messages sent to scheduler services
# 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
@ -316,41 +316,41 @@
# (optional) Virtual CPU to physical CPU allocation ratio which affects all # (optional) Virtual CPU to physical CPU allocation ratio which affects all
# CPU filters. This can be set on the scheduler, or can be overridden # CPU filters. This can be set on the scheduler, or can be overridden
# per compute node. # per compute node.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*ram_allocation_ratio*] # [*ram_allocation_ratio*]
# (optional) Virtual ram to physical ram allocation ratio which affects all # (optional) Virtual ram to physical ram allocation ratio which affects all
# ram filters. This can be set on the scheduler, or can be overridden # ram filters. This can be set on the scheduler, or can be overridden
# per compute node. # per compute node.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*disk_allocation_ratio*] # [*disk_allocation_ratio*]
# (optional) Virtual disk to physical disk allocation ratio which is used # (optional) Virtual disk to physical disk allocation ratio which is used
# by the disk filter. This can be set on the scheduler, or can be overridden # by the disk filter. This can be set on the scheduler, or can be overridden
# per compute node. # per compute node.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*initial_cpu_allocation_ratio*] # [*initial_cpu_allocation_ratio*]
# (optional) Initial virtual CPU to physical CPU allocation ratio. # (optional) Initial virtual CPU to physical CPU allocation ratio.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*initial_ram_allocation_ratio*] # [*initial_ram_allocation_ratio*]
# (optional) Initial virtual RAM to physical RAM allocation ratio. # (optional) Initial virtual RAM to physical RAM allocation ratio.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*initial_disk_allocation_ratio*] # [*initial_disk_allocation_ratio*]
# (optional) Initial virtual disk to physical disk allocation ratio. # (optional) Initial virtual disk to physical disk allocation ratio.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*my_ip*] # [*my_ip*]
# (optional) IP address of this host on the management network. # (optional) IP address of this host on the management network.
# If unset, will determine the IP programmatically based on the default route. # If unset, will determine the IP programmatically based on the default route.
# If unable to do so, will use "127.0.0.1". # If unable to do so, will use "127.0.0.1".
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*dhcp_domain*] # [*dhcp_domain*]
# (optional) domain to use for building the hostnames # (optional) domain to use for building the hostnames
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*instance_name_template*] # [*instance_name_template*]
# (optional) Template string to be used to generate instance names # (optional) Template string to be used to generate instance names
@ -368,44 +368,44 @@
# #
# [*upgrade_level_network*] # [*upgrade_level_network*]
# (optional) Sets a version cap for messages sent to network services # (optional) Sets a version cap for messages sent to network services
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class nova( class nova(
$ensure_package = 'present', $ensure_package = 'present',
$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'],
$long_rpc_timeout = $::os_service_default, $long_rpc_timeout = $facts['os_service_default'],
$control_exchange = $::os_service_default, $control_exchange = $facts['os_service_default'],
$rabbit_use_ssl = $::os_service_default, $rabbit_use_ssl = $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_ha_queues = $::os_service_default, $rabbit_ha_queues = $facts['os_service_default'],
$rabbit_retry_interval = $::os_service_default, $rabbit_retry_interval = $facts['os_service_default'],
$kombu_ssl_ca_certs = $::os_service_default, $kombu_ssl_ca_certs = $facts['os_service_default'],
$kombu_ssl_certfile = $::os_service_default, $kombu_ssl_certfile = $facts['os_service_default'],
$kombu_ssl_keyfile = $::os_service_default, $kombu_ssl_keyfile = $facts['os_service_default'],
$kombu_ssl_version = $::os_service_default, $kombu_ssl_version = $facts['os_service_default'],
$kombu_reconnect_delay = $::os_service_default, $kombu_reconnect_delay = $facts['os_service_default'],
$kombu_failover_strategy = $::os_service_default, $kombu_failover_strategy = $facts['os_service_default'],
$kombu_compression = $::os_service_default, $kombu_compression = $facts['os_service_default'],
$amqp_durable_queues = $::os_service_default, $amqp_durable_queues = $facts['os_service_default'],
$amqp_server_request_prefix = $::os_service_default, $amqp_server_request_prefix = $facts['os_service_default'],
$amqp_broadcast_prefix = $::os_service_default, $amqp_broadcast_prefix = $facts['os_service_default'],
$amqp_group_request_prefix = $::os_service_default, $amqp_group_request_prefix = $facts['os_service_default'],
$amqp_container_name = $::os_service_default, $amqp_container_name = $facts['os_service_default'],
$amqp_idle_timeout = $::os_service_default, $amqp_idle_timeout = $facts['os_service_default'],
$amqp_trace = $::os_service_default, $amqp_trace = $facts['os_service_default'],
$amqp_ssl_ca_file = $::os_service_default, $amqp_ssl_ca_file = $facts['os_service_default'],
$amqp_ssl_cert_file = $::os_service_default, $amqp_ssl_cert_file = $facts['os_service_default'],
$amqp_ssl_key_file = $::os_service_default, $amqp_ssl_key_file = $facts['os_service_default'],
$amqp_ssl_key_password = $::os_service_default, $amqp_ssl_key_password = $facts['os_service_default'],
$amqp_sasl_mechanisms = $::os_service_default, $amqp_sasl_mechanisms = $facts['os_service_default'],
$amqp_sasl_config_dir = $::os_service_default, $amqp_sasl_config_dir = $facts['os_service_default'],
$amqp_sasl_config_name = $::os_service_default, $amqp_sasl_config_name = $facts['os_service_default'],
$amqp_username = $::os_service_default, $amqp_username = $facts['os_service_default'],
$amqp_password = $::os_service_default, $amqp_password = $facts['os_service_default'],
$host = $::os_service_default, $host = $facts['os_service_default'],
$service_down_time = 60, $service_down_time = 60,
$state_path = '/var/lib/nova', $state_path = '/var/lib/nova',
$lock_path = $::nova::params::lock_path, $lock_path = $::nova::params::lock_path,
@ -420,30 +420,30 @@ class nova(
$nova_public_key = undef, $nova_public_key = undef,
$nova_private_key = undef, $nova_private_key = undef,
$ssl_only = false, $ssl_only = false,
$cert = $::os_service_default, $cert = $facts['os_service_default'],
$key = $::os_service_default, $key = $facts['os_service_default'],
$console_ssl_ciphers = $::os_service_default, $console_ssl_ciphers = $facts['os_service_default'],
$console_ssl_minimum_version = $::os_service_default, $console_ssl_minimum_version = $facts['os_service_default'],
$notification_transport_url = $::os_service_default, $notification_transport_url = $facts['os_service_default'],
$notification_driver = $::os_service_default, $notification_driver = $facts['os_service_default'],
$notification_topics = $::os_service_default, $notification_topics = $facts['os_service_default'],
$notification_format = $::os_service_default, $notification_format = $facts['os_service_default'],
$notify_on_state_change = undef, $notify_on_state_change = undef,
$ovsdb_connection = $::os_service_default, $ovsdb_connection = $facts['os_service_default'],
$upgrade_level_cells = $::os_service_default, $upgrade_level_cells = $facts['os_service_default'],
$upgrade_level_compute = $::os_service_default, $upgrade_level_compute = $facts['os_service_default'],
$upgrade_level_conductor = $::os_service_default, $upgrade_level_conductor = $facts['os_service_default'],
$upgrade_level_intercell = $::os_service_default, $upgrade_level_intercell = $facts['os_service_default'],
$upgrade_level_scheduler = $::os_service_default, $upgrade_level_scheduler = $facts['os_service_default'],
$cpu_allocation_ratio = $::os_service_default, $cpu_allocation_ratio = $facts['os_service_default'],
$ram_allocation_ratio = $::os_service_default, $ram_allocation_ratio = $facts['os_service_default'],
$disk_allocation_ratio = $::os_service_default, $disk_allocation_ratio = $facts['os_service_default'],
$initial_cpu_allocation_ratio = $::os_service_default, $initial_cpu_allocation_ratio = $facts['os_service_default'],
$initial_ram_allocation_ratio = $::os_service_default, $initial_ram_allocation_ratio = $facts['os_service_default'],
$initial_disk_allocation_ratio = $::os_service_default, $initial_disk_allocation_ratio = $facts['os_service_default'],
$purge_config = false, $purge_config = false,
$my_ip = $::os_service_default, $my_ip = $facts['os_service_default'],
$dhcp_domain = $::os_service_default, $dhcp_domain = $facts['os_service_default'],
$instance_name_template = undef, $instance_name_template = undef,
# DEPRECATED PARAMETERS # DEPRECATED PARAMETERS
$auth_strategy = undef, $auth_strategy = undef,
@ -550,7 +550,7 @@ but should be one of: ssh-rsa, ssh-dsa, ssh-ecdsa.")
warning('The auth_strategy parameter is deprecated, and will be removed in a future release.') warning('The auth_strategy parameter is deprecated, and will be removed in a future release.')
} }
nova_config { nova_config {
'api/auth_strategy': value => pick($auth_strategy, $::os_service_default) 'api/auth_strategy': value => pick($auth_strategy, $facts['os_service_default'])
} }
nova_config { nova_config {
@ -570,7 +570,7 @@ but should be one of: ssh-rsa, ssh-dsa, ssh-ecdsa.")
'DEFAULT/dhcp_domain': value => $dhcp_domain; 'DEFAULT/dhcp_domain': value => $dhcp_domain;
} }
# TODO(tkajinam): Change the default value to $::os_service_default when we # TODO(tkajinam): Change the default value to $facts['os_service_default'] when we
# remove nova::api::instance_name_template after Antelope. # remove nova::api::instance_name_template after Antelope.
if $instance_name_template != undef { if $instance_name_template != undef {
nova_config { nova_config {
@ -685,11 +685,11 @@ but should be one of: ssh-rsa, ssh-dsa, ssh-ecdsa.")
nova_config { nova_config {
'upgrade_levels/cells': value => $upgrade_level_cells; 'upgrade_levels/cells': value => $upgrade_level_cells;
'upgrade_levels/cert': value => pick($upgrade_level_cert, $::os_service_default); 'upgrade_levels/cert': value => pick($upgrade_level_cert, $facts['os_service_default']);
'upgrade_levels/compute': value => $upgrade_level_compute; 'upgrade_levels/compute': value => $upgrade_level_compute;
'upgrade_levels/conductor': value => $upgrade_level_conductor; 'upgrade_levels/conductor': value => $upgrade_level_conductor;
'upgrade_levels/intercell': value => $upgrade_level_intercell; 'upgrade_levels/intercell': value => $upgrade_level_intercell;
'upgrade_levels/network': value => pick($upgrade_level_network, $::os_service_default); 'upgrade_levels/network': value => pick($upgrade_level_network, $facts['os_service_default']);
'upgrade_levels/scheduler': value => $upgrade_level_scheduler; 'upgrade_levels/scheduler': value => $upgrade_level_scheduler;
} }
} }

View File

@ -14,7 +14,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']
# #
# [*password*] # [*password*]
# The admin password for Ironic to connect to Nova. # The admin password for Ironic to connect to Nova.
@ -26,7 +26,7 @@
# #
# [*endpoint_override*] # [*endpoint_override*]
# (optional) Override the endpoint to use to talk to Ironic. # (optional) Override the endpoint to use to talk to Ironic.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*region_name*] # [*region_name*]
# (optional) Region name for connecting to ironic in admin context # (optional) Region name for connecting to ironic in admin context
@ -48,32 +48,32 @@
# #
# [*service_type*] # [*service_type*]
# (optional) The default service_type for endpoint URL discovery. # (optional) The default service_type for endpoint URL discovery.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*valid_interfaces*] # [*valid_interfaces*]
# (Optional) The endpoint type to lookup when talking to Ironic. # (Optional) The endpoint type to lookup when talking to Ironic.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*timeout*] # [*timeout*]
# (Optional) Timeout value for connecting to ironic in seconds. # (Optional) Timeout value for connecting to ironic in seconds.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class nova::ironic::common ( class nova::ironic::common (
$auth_plugin = 'password', $auth_plugin = 'password',
$auth_url = 'http://127.0.0.1:5000/', $auth_url = 'http://127.0.0.1:5000/',
$password = 'ironic', $password = 'ironic',
$project_name = 'services', $project_name = 'services',
$system_scope = $::os_service_default, $system_scope = $facts['os_service_default'],
$username = 'admin', $username = 'admin',
$endpoint_override = $::os_service_default, $endpoint_override = $facts['os_service_default'],
$region_name = $::os_service_default, $region_name = $facts['os_service_default'],
$api_max_retries = $::os_service_default, $api_max_retries = $facts['os_service_default'],
$api_retry_interval = $::os_service_default, $api_retry_interval = $facts['os_service_default'],
$user_domain_name = 'Default', $user_domain_name = 'Default',
$project_domain_name = 'Default', $project_domain_name = 'Default',
$service_type = $::os_service_default, $service_type = $facts['os_service_default'],
$valid_interfaces = $::os_service_default, $valid_interfaces = $facts['os_service_default'],
$timeout = $::os_service_default, $timeout = $facts['os_service_default'],
) { ) {
include nova::deps include nova::deps
@ -82,8 +82,8 @@ class nova::ironic::common (
$project_name_real = $project_name $project_name_real = $project_name
$project_domain_name_real = $project_domain_name $project_domain_name_real = $project_domain_name
} else { } else {
$project_name_real = $::os_service_default $project_name_real = $facts['os_service_default']
$project_domain_name_real = $::os_service_default $project_domain_name_real = $facts['os_service_default']
} }
nova_config { nova_config {

View File

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

View File

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

View File

@ -16,28 +16,28 @@
# (optional) Points to the OpenStack Identity server IP and port. # (optional) Points to the OpenStack Identity server IP and port.
# This is the Identity (keystone) admin API server IP and port value, # This is the Identity (keystone) admin API server IP and port value,
# and not the Identity service API IP and port. # and not the Identity service API IP and port.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*timeout*] # [*timeout*]
# (optional) Timeout value for connecting to keystone in seconds. # (optional) Timeout value for connecting to keystone in seconds.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*service_type*] # [*service_type*]
# (optional) The default service_type for endpoint URL discovery. # (optional) The default service_type for endpoint URL discovery.
# 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) Region name for connecting to keystone in admin context # (optional) Region name for connecting to keystone in admin context
# through the OpenStack Identity service. # through the OpenStack Identity service.
# 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']
# #
# [*project_name*] # [*project_name*]
# (optional) Project name for connecting to Keystone services in # (optional) Project name for connecting to Keystone services in
@ -51,7 +51,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']
# #
# [*username*] # [*username*]
# (optional) Username for connecting to Keystone services in admin context # (optional) Username for connecting to Keystone services in admin context
@ -69,14 +69,14 @@ class nova::keystone (
$password, $password,
$auth_type = 'password', $auth_type = 'password',
$auth_url = 'http://127.0.0.1:5000', $auth_url = 'http://127.0.0.1:5000',
$timeout = $::os_service_default, $timeout = $facts['os_service_default'],
$service_type = $::os_service_default, $service_type = $facts['os_service_default'],
$valid_interfaces = $::os_service_default, $valid_interfaces = $facts['os_service_default'],
$endpoint_override = $::os_service_default, $endpoint_override = $facts['os_service_default'],
$region_name = $::os_service_default, $region_name = $facts['os_service_default'],
$project_name = 'services', $project_name = 'services',
$project_domain_name = 'Default', $project_domain_name = 'Default',
$system_scope = $::os_service_default, $system_scope = $facts['os_service_default'],
$username = 'nova', $username = 'nova',
$user_domain_name = 'Default', $user_domain_name = 'Default',
) { ) {
@ -87,8 +87,8 @@ class nova::keystone (
$project_name_real = $project_name $project_name_real = $project_name
$project_domain_name_real = $project_domain_name $project_domain_name_real = $project_domain_name
} else { } else {
$project_name_real = $::os_service_default $project_name_real = $facts['os_service_default']
$project_domain_name_real = $::os_service_default $project_domain_name_real = $facts['os_service_default']
} }
nova_config { nova_config {

View File

@ -10,7 +10,7 @@
# #
# [*password*] # [*password*]
# (Optional) Password to create for the service user # (Optional) Password to create for the service user
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*auth_url*] # [*auth_url*]
# (Optional) The URL to use for authentication. # (Optional) The URL to use for authentication.
@ -30,21 +30,21 @@
# #
# [*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
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*www_authenticate_uri*] # [*www_authenticate_uri*]
# (Optional) Complete public Identity API endpoint. # (Optional) Complete public Identity API endpoint.
@ -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 in the # 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, auth_token will # cache. If the value is not one of these options or empty, auth_token will
# raise an exception on initialization. # raise an exception on initialization.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*memcache_use_advanced_pool*] # [*memcache_use_advanced_pool*]
# (Optional) Use the advanced (eventlet safe) memcached client pool. The # (Optional) Use the advanced (eventlet safe) memcached client pool. The
# advanced pool will only work under python 2.x Boolean value # advanced pool will only work under python 2.x Boolean value
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*memcached_servers*] # [*memcached_servers*]
# (Optional) Optionally specify a list of memcached server(s) to use for # (Optional) Optionally specify a list of memcached server(s) to use for
# caching. If left undefined, tokens will instead be cached in-process. # caching. If left undefined, tokens will instead be cached in-process.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*manage_memcache_package*] # [*manage_memcache_package*]
# (Optional) Whether to install the python-memcache package. # (Optional) Whether to install the python-memcache package.
@ -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 nova::keystone::authtoken( class nova::keystone::authtoken(
$username = 'nova', $username = 'nova',
$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 = {},
) { ) {

View File

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

View File

@ -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 nova::limit( class nova::limit(
$endpoint_id, $endpoint_id,
@ -63,12 +63,12 @@ class nova::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 nova::deps include nova::deps

View File

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

View File

@ -10,7 +10,7 @@
# #
# [*metadata_cache_expiration*] # [*metadata_cache_expiration*]
# (optional) This option is the time (in seconds) to cache metadata. # (optional) This option is the time (in seconds) to cache metadata.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*local_metadata_per_cell*] # [*local_metadata_per_cell*]
# (optional) Indicates that the nova-metadata API service has been deployed # (optional) Indicates that the nova-metadata API service has been deployed
@ -22,17 +22,17 @@
# When running nova-metadata API service per cell, you should also configure # When running nova-metadata API service per cell, you should also configure
# each Neutron metadata-agent to point to the corresponding nova-metadata API # each Neutron metadata-agent to point to the corresponding nova-metadata API
# service. # service.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*dhcp_domain*] # [*dhcp_domain*]
# (optional) domain to use for building the hostnames # (optional) domain to use for building the hostnames
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class nova::metadata( class nova::metadata(
$neutron_metadata_proxy_shared_secret = undef, $neutron_metadata_proxy_shared_secret = undef,
$metadata_cache_expiration = $::os_service_default, $metadata_cache_expiration = $facts['os_service_default'],
$local_metadata_per_cell = $::os_service_default, $local_metadata_per_cell = $facts['os_service_default'],
$dhcp_domain = $::os_service_default, $dhcp_domain = $facts['os_service_default'],
) inherits nova::params { ) inherits nova::params {
include nova::deps include nova::deps

View File

@ -16,12 +16,12 @@
# #
# [*listen_address*] # [*listen_address*]
# (optional) Bind libvirtd tcp/tls socket to the given address. # (optional) Bind libvirtd tcp/tls socket to the given address.
# Defaults to $::os_service_default (bind to all addresses) # Defaults to $facts['os_service_default'] (bind to all addresses)
# #
# [*live_migration_inbound_addr*] # [*live_migration_inbound_addr*]
# (optional) The IP address or hostname to be used as the target for live # (optional) The IP address or hostname to be used as the target for live
# migration traffic. # migration traffic.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*live_migration_tunnelled*] # [*live_migration_tunnelled*]
# (optional) Whether to use tunnelled migration, where migration data is # (optional) Whether to use tunnelled migration, where migration data is
@ -32,7 +32,7 @@
# If False, use the native transport. # If False, use the native transport.
# If not set, Nova will choose a sensible default based on, for example # If not set, Nova will choose a sensible default based on, for example
# the availability of native encryption support in the hypervisor. # the availability of native encryption support in the hypervisor.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*live_migration_with_native_tls*] # [*live_migration_with_native_tls*]
# (optional) This option will allow both migration stream (guest RAM plus # (optional) This option will allow both migration stream (guest RAM plus
@ -42,30 +42,30 @@
# Compute nodes. This means, Certificate Authority (CA), server, client # Compute nodes. This means, Certificate Authority (CA), server, client
# certificates, their corresponding keys, and their file permissions are # certificates, their corresponding keys, and their file permissions are
# in place, and are validated. # in place, and are validated.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*live_migration_downtime*] # [*live_migration_downtime*]
# (optional) Target maximum period of time Nova will try to keep the instance paused # (optional) Target maximum period of time Nova will try to keep the instance paused
# during the last part of the memory copy, in miliseconds. # during the last part of the memory copy, in miliseconds.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*live_migration_downtime_steps*] # [*live_migration_downtime_steps*]
# (optional) Number of incremental steps to reach max downtime value. # (optional) Number of incremental steps to reach max downtime value.
# Minimum number of steps is 3. # Minimum number of steps is 3.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*live_migration_downtime_delay*] # [*live_migration_downtime_delay*]
# (optional) Time to wait, in seconds, between each step increase of the migration # (optional) Time to wait, in seconds, between each step increase of the migration
# downtime. Value is per GiB of guest RAM + disk to be transferred, with lower bound # downtime. Value is per GiB of guest RAM + disk to be transferred, with lower bound
# of a minimum of 2 GiB per device. Minimum delay is 3 seconds. # of a minimum of 2 GiB per device. Minimum delay is 3 seconds.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*live_migration_completion_timeout*] # [*live_migration_completion_timeout*]
# (optional) Time to wait, in seconds, for migration to successfully complete # (optional) Time to wait, in seconds, for migration to successfully complete
# transferring data before aborting the operation. Value is per GiB of guest # transferring data before aborting the operation. Value is per GiB of guest
# RAM + disk to be transferred, with lower bound of a minimum of 2 GiB. Set # RAM + disk to be transferred, with lower bound of a minimum of 2 GiB. Set
# to 0 to disable timeouts. # to 0 to disable timeouts.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*live_migration_timeout_action*] # [*live_migration_timeout_action*]
# (optional) This option will be used to determine what action will be taken # (optional) This option will be used to determine what action will be taken
@ -73,7 +73,7 @@
# the live migrate operation will be aborted after completion timeout. # the live migrate operation will be aborted after completion timeout.
# If it is set to force_complete, the compute service will either pause the # If it is set to force_complete, the compute service will either pause the
# VM or trigger post-copy depending on if post copy is enabled and available # VM or trigger post-copy depending on if post copy is enabled and available
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*live_migration_permit_post_copy*] # [*live_migration_permit_post_copy*]
# (optional) This option allows nova to switch an on-going live migration # (optional) This option allows nova to switch an on-going live migration
@ -81,7 +81,7 @@
# node before the migration is complete, therefore ensuring an upper bound # node before the migration is complete, therefore ensuring an upper bound
# on the memory that needs to be transferred. # on the memory that needs to be transferred.
# Post-copy requires libvirt>=1.3.3 and QEMU>=2.5.0. # Post-copy requires libvirt>=1.3.3 and QEMU>=2.5.0.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*live_migration_permit_auto_converge*] # [*live_migration_permit_auto_converge*]
# (optional) This option allows nova to start live migration with auto # (optional) This option allows nova to start live migration with auto
@ -89,7 +89,7 @@
# live migration is slow. Auto converge will only be used if this flag is # live migration is slow. Auto converge will only be used if this flag is
# set to True and post copy is not permitted or post copy is unavailable # set to True and post copy is not permitted or post copy is unavailable
# due to the version of libvirt and QEMU in use. # due to the version of libvirt and QEMU in use.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*override_uuid*] # [*override_uuid*]
# (optional) Set uuid not equal to output from dmidecode (boolean) # (optional) Set uuid not equal to output from dmidecode (boolean)
@ -126,13 +126,13 @@
# (optional) Specifies the CA certificate that the TLS transport will use. # (optional) Specifies the CA certificate that the TLS transport will use.
# Note that this is only used if the TLS transport is enabled via the # Note that this is only used if the TLS transport is enabled via the
# "transport" option. # "transport" option.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*crl_file*] # [*crl_file*]
# (optional) Specifies the CRL file that the TLS transport will use. # (optional) Specifies the CRL file that the TLS transport will use.
# Note that this is only used if the TLS transport is enabled via the # Note that this is only used if the TLS transport is enabled via the
# "transport" option. # "transport" option.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*libvirt_version*] # [*libvirt_version*]
# (optional) installed libvirt version. Default is automatic detected depending # (optional) installed libvirt version. Default is automatic detected depending
@ -147,17 +147,17 @@
class nova::migration::libvirt( class nova::migration::libvirt(
$transport = undef, $transport = undef,
$auth = 'none', $auth = 'none',
$listen_address = $::os_service_default, $listen_address = $facts['os_service_default'],
$live_migration_inbound_addr = $::os_service_default, $live_migration_inbound_addr = $facts['os_service_default'],
$live_migration_tunnelled = $::os_service_default, $live_migration_tunnelled = $facts['os_service_default'],
$live_migration_with_native_tls = $::os_service_default, $live_migration_with_native_tls = $facts['os_service_default'],
$live_migration_downtime = $::os_service_default, $live_migration_downtime = $facts['os_service_default'],
$live_migration_downtime_steps = $::os_service_default, $live_migration_downtime_steps = $facts['os_service_default'],
$live_migration_downtime_delay = $::os_service_default, $live_migration_downtime_delay = $facts['os_service_default'],
$live_migration_completion_timeout = $::os_service_default, $live_migration_completion_timeout = $facts['os_service_default'],
$live_migration_timeout_action = $::os_service_default, $live_migration_timeout_action = $facts['os_service_default'],
$live_migration_permit_post_copy = $::os_service_default, $live_migration_permit_post_copy = $facts['os_service_default'],
$live_migration_permit_auto_converge = $::os_service_default, $live_migration_permit_auto_converge = $facts['os_service_default'],
$override_uuid = false, $override_uuid = false,
$host_uuid = undef, $host_uuid = undef,
$configure_libvirt = true, $configure_libvirt = true,
@ -165,8 +165,8 @@ class nova::migration::libvirt(
$client_user = undef, $client_user = undef,
$client_port = undef, $client_port = undef,
$client_extraparams = {}, $client_extraparams = {},
$ca_file = $::os_service_default, $ca_file = $facts['os_service_default'],
$crl_file = $::os_service_default, $crl_file = $facts['os_service_default'],
$libvirt_version = $::nova::compute::libvirt::version::default, $libvirt_version = $::nova::compute::libvirt::version::default,
$modular_libvirt = undef, $modular_libvirt = undef,
) inherits nova::compute::libvirt::version { ) inherits nova::compute::libvirt::version {
@ -251,7 +251,7 @@ class nova::migration::libvirt(
File_line<| tag == 'libvirt-file_line' |> ~> Service['libvirt'] File_line<| tag == 'libvirt-file_line' |> ~> Service['libvirt']
if $override_uuid { if $override_uuid {
if ! $::libvirt_uuid { if ! $facts['libvirt_uuid'] {
$host_uuid_real = pick( $host_uuid_real = pick(
$host_uuid, $host_uuid,
generate('/bin/cat', '/proc/sys/kernel/random/uuid')) generate('/bin/cat', '/proc/sys/kernel/random/uuid'))
@ -260,7 +260,7 @@ class nova::migration::libvirt(
require => Package['libvirt'], require => Package['libvirt'],
} }
} else { } else {
$host_uuid_real = $::libvirt_uuid $host_uuid_real = $facts['libvirt_uuid']
} }
if $modular_libvirt_real { if $modular_libvirt_real {
@ -284,19 +284,19 @@ class nova::migration::libvirt(
if $transport_real == 'tls' { if $transport_real == 'tls' {
$auth_tls_real = $auth $auth_tls_real = $auth
$auth_tcp_real = $::os_service_default $auth_tcp_real = $facts['os_service_default']
$ca_file_real = $ca_file $ca_file_real = $ca_file
$crl_file_real = $crl_file $crl_file_real = $crl_file
} elsif $transport_real == 'tcp' { } elsif $transport_real == 'tcp' {
$auth_tls_real = $::os_service_default $auth_tls_real = $facts['os_service_default']
$auth_tcp_real = $auth $auth_tcp_real = $auth
$ca_file_real = $::os_service_default $ca_file_real = $facts['os_service_default']
$crl_file_real = $::os_service_default $crl_file_real = $facts['os_service_default']
} else { } else {
$auth_tls_real = $::os_service_default $auth_tls_real = $facts['os_service_default']
$auth_tcp_real = $::os_service_default $auth_tcp_real = $facts['os_service_default']
$ca_file_real = $::os_service_default $ca_file_real = $facts['os_service_default']
$crl_file_real = $::os_service_default $crl_file_real = $facts['os_service_default']
} }
$libvirt_listen_config = $modular_libvirt_real ? { $libvirt_listen_config = $modular_libvirt_real ? {
@ -343,7 +343,7 @@ class nova::migration::libvirt(
} }
} }
case $::osfamily { case $facts['os']['family'] {
'RedHat': { 'RedHat': {
# NOTE(tkajinam): Since libvirt 8.1.0, the sysconfig files are # NOTE(tkajinam): Since libvirt 8.1.0, the sysconfig files are
# no longer provided by packages. # no longer provided by packages.
@ -365,7 +365,7 @@ class nova::migration::libvirt(
} }
} }
default: { default: {
warning("Unsupported osfamily: ${::osfamily}, make sure you are configuring this yourself") warning("Unsupported osfamily: ${facts['os']['family']}, make sure you are configuring this yourself")
} }
} }
} }

View File

@ -24,7 +24,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']
# #
# [*username*] # [*username*]
# (optional) Username for connecting to Neutron network services in admin context # (optional) Username for connecting to Neutron network services in admin context
@ -44,11 +44,11 @@
# #
# [*valid_interfaces*] # [*valid_interfaces*]
# (optional) The endpoint type to lookup when talking to Neutron. # (optional) The endpoint type to lookup when talking to Neutron.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*endpoint_override*] # [*endpoint_override*]
# (optional) Override the endpoint to use to talk to Neutron. # (optional) Override the endpoint to use to talk to Neutron.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*timeout*] # [*timeout*]
# (optional) Timeout value for connecting to neutron in seconds. # (optional) Timeout value for connecting to neutron in seconds.
@ -62,56 +62,56 @@
# [*http_retries*] # [*http_retries*]
# (optional) Number of times neutronclient should retry on any failed http # (optional) Number of times neutronclient should retry on any failed http
# call. # call.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*service_type*] # [*service_type*]
# (optional) The default service_type for endpoint URL discovery. # (optional) The default service_type for endpoint URL discovery.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*ovs_bridge*] # [*ovs_bridge*]
# (optional) Name of Integration Bridge used by Open vSwitch # (optional) Name of Integration Bridge used by Open vSwitch
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*extension_sync_interval*] # [*extension_sync_interval*]
# (optional) Number of seconds before querying neutron for extensions # (optional) Number of seconds before querying neutron for extensions
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*vif_plugging_is_fatal*] # [*vif_plugging_is_fatal*]
# (optional) Fail to boot instance if vif plugging fails. # (optional) Fail to boot instance if vif plugging fails.
# This prevents nova from booting an instance if vif plugging notification # This prevents nova from booting an instance if vif plugging notification
# is not received from neutron. # is not received from neutron.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*vif_plugging_timeout*] # [*vif_plugging_timeout*]
# (optional) Number of seconds to wait for neutron vif plugging events. # (optional) Number of seconds to wait for neutron vif plugging events.
# Set to '0' and vif_plugging_is_fatal to 'False' if vif plugging # Set to '0' and vif_plugging_is_fatal to 'False' if vif plugging
# notification is not being used. # notification is not being used.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*default_floating_pool*] # [*default_floating_pool*]
# (optional) Default pool for floating IPs # (optional) Default pool for floating IPs
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class nova::network::neutron ( class nova::network::neutron (
$password, $password,
$auth_type = 'v3password', $auth_type = 'v3password',
$project_name = 'services', $project_name = 'services',
$project_domain_name = 'Default', $project_domain_name = 'Default',
$system_scope = $::os_service_default, $system_scope = $facts['os_service_default'],
$username = 'neutron', $username = 'neutron',
$user_domain_name = 'Default', $user_domain_name = 'Default',
$auth_url = 'http://127.0.0.1:5000/v3', $auth_url = 'http://127.0.0.1:5000/v3',
$valid_interfaces = $::os_service_default, $valid_interfaces = $facts['os_service_default'],
$endpoint_override = $::os_service_default, $endpoint_override = $facts['os_service_default'],
$timeout = '30', $timeout = '30',
$region_name = 'RegionOne', $region_name = 'RegionOne',
$http_retries = $::os_service_default, $http_retries = $facts['os_service_default'],
$service_type = $::os_service_default, $service_type = $facts['os_service_default'],
$ovs_bridge = $::os_service_default, $ovs_bridge = $facts['os_service_default'],
$extension_sync_interval = $::os_service_default, $extension_sync_interval = $facts['os_service_default'],
$vif_plugging_is_fatal = $::os_service_default, $vif_plugging_is_fatal = $facts['os_service_default'],
$vif_plugging_timeout = $::os_service_default, $vif_plugging_timeout = $facts['os_service_default'],
$default_floating_pool = $::os_service_default, $default_floating_pool = $facts['os_service_default'],
) { ) {
include nova::deps include nova::deps
@ -120,8 +120,8 @@ class nova::network::neutron (
$project_name_real = $project_name $project_name_real = $project_name
$project_domain_name_real = $project_domain_name $project_domain_name_real = $project_domain_name
} else { } else {
$project_name_real = $::os_service_default $project_name_real = $facts['os_service_default']
$project_domain_name_real = $::os_service_default $project_domain_name_real = $facts['os_service_default']
} }
nova_config { nova_config {

View File

@ -13,7 +13,7 @@ class nova::params {
$nova_user = $user $nova_user = $user
$nova_group = $group $nova_group = $group
case $::osfamily { case $facts['os']['family'] {
'RedHat': { 'RedHat': {
# package names # package names
$api_package_name = 'openstack-nova-api' $api_package_name = 'openstack-nova-api'
@ -90,7 +90,7 @@ class nova::params {
# debian specific nova config # debian specific nova config
$root_helper = 'sudo nova-rootwrap' $root_helper = 'sudo nova-rootwrap'
$lock_path = '/var/lock/nova' $lock_path = '/var/lock/nova'
case $::operatingsystem { case $facts['os']['name'] {
'Debian': { 'Debian': {
$api_metadata_service_name = 'nova-api-metadata' $api_metadata_service_name = 'nova-api-metadata'
$spicehtml5proxy_package_name = 'nova-consoleproxy' $spicehtml5proxy_package_name = 'nova-consoleproxy'
@ -127,8 +127,7 @@ class nova::params {
$libvirt_service_name = 'libvirtd' $libvirt_service_name = 'libvirtd'
} }
default: { default: {
fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, \ fail("Unsupported osfamily: ${facts['os']['family']}")
module ${module_name} only support osfamily RedHat and Debian")
} }
} }

View File

@ -10,16 +10,16 @@
# #
# [*monkey_patch_modules*] # [*monkey_patch_modules*]
# (optional) List of modules/decorators to monkey patch # (optional) List of modules/decorators to monkey patch
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class nova::patch::config ( class nova::patch::config (
$monkey_patch = false, $monkey_patch = false,
$monkey_patch_modules = $::os_service_default, $monkey_patch_modules = $facts['os_service_default'],
) { ) {
include nova::deps include nova::deps
$monkey_patch_modules_real = pick(join(any2array($monkey_patch_modules), ','), $::os_service_default) $monkey_patch_modules_real = pick(join(any2array($monkey_patch_modules), ','), $facts['os_service_default'])
nova_config { nova_config {
'DEFAULT/monkey_patch': value => $monkey_patch; 'DEFAULT/monkey_patch': value => $monkey_patch;

View File

@ -6,13 +6,13 @@
# #
# [*aliases*] # [*aliases*]
# (optional) A list of pci alias hashes # (optional) A list of pci alias hashes
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# Example: # Example:
# [{"vendor_id" => "1234", "product_id" => "5678", "name" => "default"}, # [{"vendor_id" => "1234", "product_id" => "5678", "name" => "default"},
# {"vendor_id" => "1234", "product_id" => "6789", "name" => "other"}] # {"vendor_id" => "1234", "product_id" => "6789", "name" => "other"}]
class nova::pci( class nova::pci(
$aliases = $::os_service_default $aliases = $facts['os_service_default']
) { ) {
include nova::deps include nova::deps
@ -21,7 +21,7 @@ class nova::pci(
!empty($aliases) { !empty($aliases) {
$aliases_real = to_array_of_json_strings($aliases) $aliases_real = to_array_of_json_strings($aliases)
} else { } else {
$aliases_real = $::os_service_default $aliases_real = $facts['os_service_default']
} }
nova_config { nova_config {
'pci/alias': value => $aliases_real; 'pci/alias': value => $aliases_real;

View File

@ -24,7 +24,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']
# #
# [*user_domain_name*] # [*user_domain_name*]
# (optional) User Domain name for connecting to Placement API service in # (optional) User Domain name for connecting to Placement API service in
@ -44,7 +44,7 @@
# [*valid_interfaces*] # [*valid_interfaces*]
# (optional) Interface names used for getting the keystone endpoint for # (optional) Interface names used for getting the keystone endpoint for
# the placement API. Comma separated if multiple. # the placement API. Comma separated if multiple.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*auth_url*] # [*auth_url*]
# (optional) Points to the OpenStack Identity server IP and port. # (optional) Points to the OpenStack Identity server IP and port.
@ -57,10 +57,10 @@ class nova::placement(
$auth_type = 'password', $auth_type = 'password',
$auth_url = 'http://127.0.0.1:5000/v3', $auth_url = 'http://127.0.0.1:5000/v3',
$region_name = 'RegionOne', $region_name = 'RegionOne',
$valid_interfaces = $::os_service_default, $valid_interfaces = $facts['os_service_default'],
$project_domain_name = 'Default', $project_domain_name = 'Default',
$project_name = 'services', $project_name = 'services',
$system_scope = $::os_service_default, $system_scope = $facts['os_service_default'],
$user_domain_name = 'Default', $user_domain_name = 'Default',
$username = 'placement', $username = 'placement',
) inherits nova::params { ) inherits nova::params {
@ -71,8 +71,8 @@ class nova::placement(
$project_name_real = $project_name $project_name_real = $project_name
$project_domain_name_real = $project_domain_name $project_domain_name_real = $project_domain_name
} else { } else {
$project_name_real = $::os_service_default $project_name_real = $facts['os_service_default']
$project_domain_name_real = $::os_service_default $project_domain_name_real = $facts['os_service_default']
} }
nova_config { nova_config {

View File

@ -6,12 +6,12 @@
# #
# [*enforce_scope*] # [*enforce_scope*]
# (Optional) Whether or not to enforce scope when evaluating policies. # (Optional) Whether or not to enforce scope when evaluating policies.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*enforce_new_defaults*] # [*enforce_new_defaults*]
# (Optional) Whether or not to use old deprecated defaults when evaluating # (Optional) Whether or not to use old deprecated defaults when evaluating
# policies. # policies.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*policies*] # [*policies*]
# (Optional) Set of policies to configure for nova # (Optional) Set of policies to configure for nova
@ -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 nova policy folder # (Optional) Path to the nova 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 nova::policy ( class nova::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/nova/policy.yaml', $policy_path = '/etc/nova/policy.yaml',
$policy_default_rule = $::os_service_default, $policy_default_rule = $facts['os_service_default'],
$policy_dirs = $::os_service_default, $policy_dirs = $facts['os_service_default'],
$purge_config = false, $purge_config = false,
) { ) {

View File

@ -6,71 +6,71 @@
# #
# [*driver*] # [*driver*]
# (optional) Driver to use for quota checks. # (optional) Driver to use for quota checks.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*instances*] # [*instances*]
# (optional) Number of instances # (optional) Number of instances
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*cores*] # [*cores*]
# (optional) Number of cores # (optional) Number of cores
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*ram*] # [*ram*]
# (optional) Ram in MB # (optional) Ram in MB
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*metadata_items*] # [*metadata_items*]
# (optional) Number of metadata items per instance # (optional) Number of metadata items per instance
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*injected_files*] # [*injected_files*]
# (optional) Number of files that can be injected per instance # (optional) Number of files that can be injected per instance
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*injected_file_content_bytes*] # [*injected_file_content_bytes*]
# (optional) Maximum size in bytes of injected files # (optional) Maximum size in bytes of injected files
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*injected_file_path_length*] # [*injected_file_path_length*]
# (optional) Maximum size in bytes of injected file path # (optional) Maximum size in bytes of injected file path
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*key_pairs*] # [*key_pairs*]
# (optional) Number of key pairs # (optional) Number of key pairs
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*server_groups*] # [*server_groups*]
# (optional) Number of server groups per project # (optional) Number of server groups per project
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*server_group_members*] # [*server_group_members*]
# (optional) Number of servers per server group # (optional) Number of servers per server group
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*recheck_quota*] # [*recheck_quota*]
# (optional) Recheck quota after resource creation to prevent allowing # (optional) Recheck quota after resource creation to prevent allowing
# quota to be exceeded. # quota to be exceeded.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*count_usage_from_placement*] # [*count_usage_from_placement*]
# (optional Enable the counting of quota usage from the placement service. # (optional Enable the counting of quota usage from the placement service.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class nova::quota( class nova::quota(
$driver = $::os_service_default, $driver = $facts['os_service_default'],
$instances = $::os_service_default, $instances = $facts['os_service_default'],
$cores = $::os_service_default, $cores = $facts['os_service_default'],
$ram = $::os_service_default, $ram = $facts['os_service_default'],
$metadata_items = $::os_service_default, $metadata_items = $facts['os_service_default'],
$injected_files = $::os_service_default, $injected_files = $facts['os_service_default'],
$injected_file_content_bytes = $::os_service_default, $injected_file_content_bytes = $facts['os_service_default'],
$injected_file_path_length = $::os_service_default, $injected_file_path_length = $facts['os_service_default'],
$key_pairs = $::os_service_default, $key_pairs = $facts['os_service_default'],
$server_groups = $::os_service_default, $server_groups = $facts['os_service_default'],
$server_group_members = $::os_service_default, $server_group_members = $facts['os_service_default'],
$recheck_quota = $::os_service_default, $recheck_quota = $facts['os_service_default'],
$count_usage_from_placement = $::os_service_default, $count_usage_from_placement = $facts['os_service_default'],
) { ) {
include nova::deps include nova::deps

View File

@ -18,28 +18,28 @@
# #
# [*workers*] # [*workers*]
# (Optional) The amount of scheduler workers. # (Optional) The amount of scheduler workers.
# Defaults to $::os_workers # Defaults to $facts['os_workers']
# #
# [*max_attempts*] # [*max_attempts*]
# (optional) Maximum number of attempts to schedule an instance # (optional) Maximum number of attempts to schedule an instance
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*discover_hosts_in_cells_interval*] # [*discover_hosts_in_cells_interval*]
# (Optional) This value controls how often (in seconds) the scheduler should # (Optional) This value controls how often (in seconds) the scheduler should
# attempt to discover new hosts that have been added to cells. # attempt to discover new hosts that have been added to cells.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*query_placement_for_image_type_support*] # [*query_placement_for_image_type_support*]
# (Optional) This setting causes the scheduler to ask placement only for # (Optional) This setting causes the scheduler to ask placement only for
# compute hosts that support the ``disk_format`` of the image used in the # compute hosts that support the ``disk_format`` of the image used in the
# request. # request.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*limit_tenants_to_placement_aggregate*] # [*limit_tenants_to_placement_aggregate*]
# (Optional) This setting allows to have tenant isolation with placement. # (Optional) This setting allows to have tenant isolation with placement.
# It ensures hosts in tenant-isolated host aggregate and availability # It ensures hosts in tenant-isolated host aggregate and availability
# zones will only be available to specific set of tenants. # zones will only be available to specific set of tenants.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*placement_aggregate_required_for_tenants*] # [*placement_aggregate_required_for_tenants*]
# (Optional) This setting controls if a tenant with no aggregate affinity # (Optional) This setting controls if a tenant with no aggregate affinity
@ -48,23 +48,23 @@
# If aggregates are used to limit some tenants but not all, then this should # If aggregates are used to limit some tenants but not all, then this should
# be False. # be False.
# If all tenants should be confined via aggregate, then this should be True. # If all tenants should be confined via aggregate, then this should be True.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_placement_results*] # [*max_placement_results*]
# (Optional) This setting determines the maximum limit on results received # (Optional) This setting determines the maximum limit on results received
# from the placement service during a scheduling operation. # from the placement service during a scheduling operation.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*enable_isolated_aggregate_filtering*] # [*enable_isolated_aggregate_filtering*]
# (Optional) This setting allows the scheduler to restrict hosts in aggregates # (Optional) This setting allows the scheduler to restrict hosts in aggregates
# based on matching required traits in the aggregate metadata and the instance # based on matching required traits in the aggregate metadata and the instance
# flavor/image. # flavor/image.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*query_placement_for_routed_network_aggregates*] # [*query_placement_for_routed_network_aggregates*]
# (Optional) This setting allows to enable the scheduler to filter # (Optional) This setting allows to enable the scheduler to filter
# compute hosts affined to routed network segment aggregates. # compute hosts affined to routed network segment aggregates.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# DEPRECATED PARAMETERS # DEPRECATED PARAMETERS
# #
@ -79,15 +79,15 @@ class nova::scheduler(
$enabled = true, $enabled = true,
$manage_service = true, $manage_service = true,
$ensure_package = 'present', $ensure_package = 'present',
$workers = $::os_workers, $workers = $facts['os_workers'],
$max_attempts = $::os_service_default, $max_attempts = $facts['os_service_default'],
$discover_hosts_in_cells_interval = $::os_service_default, $discover_hosts_in_cells_interval = $facts['os_service_default'],
$query_placement_for_image_type_support = $::os_service_default, $query_placement_for_image_type_support = $facts['os_service_default'],
$limit_tenants_to_placement_aggregate = $::os_service_default, $limit_tenants_to_placement_aggregate = $facts['os_service_default'],
$placement_aggregate_required_for_tenants = $::os_service_default, $placement_aggregate_required_for_tenants = $facts['os_service_default'],
$max_placement_results = $::os_service_default, $max_placement_results = $facts['os_service_default'],
$enable_isolated_aggregate_filtering = $::os_service_default, $enable_isolated_aggregate_filtering = $facts['os_service_default'],
$query_placement_for_routed_network_aggregates = $::os_service_default, $query_placement_for_routed_network_aggregates = $facts['os_service_default'],
# DEPRECATED PARAMETERS # DEPRECATED PARAMETERS
$query_placement_for_availability_zone = undef, $query_placement_for_availability_zone = undef,
) { ) {
@ -100,7 +100,7 @@ class nova::scheduler(
if $query_placement_for_availability_zone != undef { if $query_placement_for_availability_zone != undef {
warning('The query_placement_for_availability_zone parameter is deprecated.') warning('The query_placement_for_availability_zone parameter is deprecated.')
} }
$query_placement_for_availability_zone_real = pick($query_placement_for_availability_zone, $::os_service_default) $query_placement_for_availability_zone_real = pick($query_placement_for_availability_zone, $facts['os_service_default'])
nova::generic_service { 'scheduler': nova::generic_service { 'scheduler':
enabled => $enabled, enabled => $enabled,

View File

@ -6,23 +6,23 @@
# #
# [*scheduler_host_subset_size*] # [*scheduler_host_subset_size*]
# (optional) defines the subset size that a host is chosen from # (optional) defines the subset size that a host is chosen from
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_io_ops_per_host*] # [*max_io_ops_per_host*]
# (optional) Ignore hosts that have too many builds/resizes/snaps/migrations # (optional) Ignore hosts that have too many builds/resizes/snaps/migrations
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_instances_per_host*] # [*max_instances_per_host*]
# (optional) Ignore hosts that have too many instances # (optional) Ignore hosts that have too many instances
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*isolated_images*] # [*isolated_images*]
# (optional) An array of images to run on isolated host # (optional) An array of images to run on isolated host
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*isolated_hosts*] # [*isolated_hosts*]
# (optional) An array of hosts reserved for specific images # (optional) An array of hosts reserved for specific images
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*scheduler_available_filters*] # [*scheduler_available_filters*]
# (optional) An array with filter classes available to the scheduler. # (optional) An array with filter classes available to the scheduler.
@ -31,7 +31,7 @@
# #
# [*scheduler_enabled_filters*] # [*scheduler_enabled_filters*]
# (optional) An array of filters to be used by default # (optional) An array of filters to be used by default
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*scheduler_weight_classes*] # [*scheduler_weight_classes*]
# (optional) Which weight class names to use for weighing hosts # (optional) Which weight class names to use for weighing hosts
@ -39,91 +39,91 @@
# #
# [*track_instance_changes*] # [*track_instance_changes*]
# (optional) Enable querying of individual hosts for instance information. # (optional) Enable querying of individual hosts for instance information.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*ram_weight_multiplier*] # [*ram_weight_multiplier*]
# (optional) Ram weight multiplier ratio. This option determines how hosts # (optional) Ram weight multiplier ratio. This option determines how hosts
# with more or less available RAM are weighed. # with more or less available RAM are weighed.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*cpu_weight_multiplier*] # [*cpu_weight_multiplier*]
# (optional) CPU weight multiplier ratio. This options determines how hosts # (optional) CPU weight multiplier ratio. This options determines how hosts
# with more or less available CPU cores are weighed. Negative numbers mean # with more or less available CPU cores are weighed. Negative numbers mean
# to stack vs spread. # to stack vs spread.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*disk_weight_multiplier*] # [*disk_weight_multiplier*]
# (optional) Disk weight multiplier ratio. Multiplier used for weighing free # (optional) Disk weight multiplier ratio. Multiplier used for weighing free
# disk space. Negative numbers mean to stack vs spread. # disk space. Negative numbers mean to stack vs spread.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*io_ops_weight_multiplier*] # [*io_ops_weight_multiplier*]
# (optional) IO operations weight multiplier ratio. This option determines # (optional) IO operations weight multiplier ratio. This option determines
# how hosts with differing workloads are weighed # how hosts with differing workloads are weighed
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*soft_affinity_weight_multiplier*] # [*soft_affinity_weight_multiplier*]
# (optional) Multiplier used for weighing hosts for group soft-affinity # (optional) Multiplier used for weighing hosts for group soft-affinity
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*soft_anti_affinity_weight_multiplier*] # [*soft_anti_affinity_weight_multiplier*]
# (optional) Multiplier used for weighing hosts for group soft-anti-affinity # (optional) Multiplier used for weighing hosts for group soft-anti-affinity
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*build_failure_weight_multiplier*] # [*build_failure_weight_multiplier*]
# (optional) Multiplier used for weighing hosts that have had recent build # (optional) Multiplier used for weighing hosts that have had recent build
# failures # failures
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*cross_cell_move_weight_multiplier*] # [*cross_cell_move_weight_multiplier*]
# (optional) Multiplier used for weighing hosts during a cross-cell move # (optional) Multiplier used for weighing hosts during a cross-cell move
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*shuffle_best_same_weighed_hosts*] # [*shuffle_best_same_weighed_hosts*]
# (Optional) Enabled spreading the instances between hosts with the same # (Optional) Enabled spreading the instances between hosts with the same
# best weight # best weight
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*restrict_isolated_hosts_to_isolated_images*] # [*restrict_isolated_hosts_to_isolated_images*]
# (optional) Prevent non-isolated images from being built on isolated hosts. # (optional) Prevent non-isolated images from being built on isolated hosts.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*aggregate_image_properties_isolation_namespace*] # [*aggregate_image_properties_isolation_namespace*]
# (optional) Image property namespace for use in the host aggregate # (optional) Image property namespace for use in the host aggregate
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*aggregate_image_properties_isolation_separator*] # [*aggregate_image_properties_isolation_separator*]
# (optional) Separator character(s) for image property namespace and name # (optional) Separator character(s) for image property namespace and name
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class nova::scheduler::filter ( class nova::scheduler::filter (
$scheduler_host_subset_size = $::os_service_default, $scheduler_host_subset_size = $facts['os_service_default'],
$max_io_ops_per_host = $::os_service_default, $max_io_ops_per_host = $facts['os_service_default'],
$max_instances_per_host = $::os_service_default, $max_instances_per_host = $facts['os_service_default'],
$isolated_images = $::os_service_default, $isolated_images = $facts['os_service_default'],
$isolated_hosts = $::os_service_default, $isolated_hosts = $facts['os_service_default'],
$scheduler_available_filters = ['nova.scheduler.filters.all_filters'], $scheduler_available_filters = ['nova.scheduler.filters.all_filters'],
$scheduler_enabled_filters = $::os_service_default, $scheduler_enabled_filters = $facts['os_service_default'],
$scheduler_weight_classes = 'nova.scheduler.weights.all_weighers', $scheduler_weight_classes = 'nova.scheduler.weights.all_weighers',
$track_instance_changes = $::os_service_default, $track_instance_changes = $facts['os_service_default'],
$ram_weight_multiplier = $::os_service_default, $ram_weight_multiplier = $facts['os_service_default'],
$cpu_weight_multiplier = $::os_service_default, $cpu_weight_multiplier = $facts['os_service_default'],
$disk_weight_multiplier = $::os_service_default, $disk_weight_multiplier = $facts['os_service_default'],
$io_ops_weight_multiplier = $::os_service_default, $io_ops_weight_multiplier = $facts['os_service_default'],
$soft_affinity_weight_multiplier = $::os_service_default, $soft_affinity_weight_multiplier = $facts['os_service_default'],
$soft_anti_affinity_weight_multiplier = $::os_service_default, $soft_anti_affinity_weight_multiplier = $facts['os_service_default'],
$build_failure_weight_multiplier = $::os_service_default, $build_failure_weight_multiplier = $facts['os_service_default'],
$cross_cell_move_weight_multiplier = $::os_service_default, $cross_cell_move_weight_multiplier = $facts['os_service_default'],
$shuffle_best_same_weighed_hosts = $::os_service_default, $shuffle_best_same_weighed_hosts = $facts['os_service_default'],
$restrict_isolated_hosts_to_isolated_images = $::os_service_default, $restrict_isolated_hosts_to_isolated_images = $facts['os_service_default'],
$aggregate_image_properties_isolation_namespace = $::os_service_default, $aggregate_image_properties_isolation_namespace = $facts['os_service_default'],
$aggregate_image_properties_isolation_separator = $::os_service_default, $aggregate_image_properties_isolation_separator = $facts['os_service_default'],
) { ) {
include nova::deps include nova::deps
# The following values are following this rule: # The following values are following this rule:
# - default is $::os_service_default so Puppet won't try to configure it. # - default is $facts['os_service_default'] so Puppet won't try to configure it.
# - if set, we'll validate it's an array that is not empty and configure the parameter. # - if set, we'll validate it's an array that is not empty and configure the parameter.
# - Otherwise, fallback to default. # - Otherwise, fallback to default.
@ -131,12 +131,12 @@ class nova::scheduler::filter (
validate_legacy(Array, 'validate_array', $scheduler_enabled_filters) validate_legacy(Array, 'validate_array', $scheduler_enabled_filters)
$scheduler_enabled_filters_real = join($scheduler_enabled_filters, ',') $scheduler_enabled_filters_real = join($scheduler_enabled_filters, ',')
} else { } else {
$scheduler_enabled_filters_real = $::os_service_default $scheduler_enabled_filters_real = $facts['os_service_default']
} }
if $scheduler_available_filters =~ Array { if $scheduler_available_filters =~ Array {
if empty($scheduler_available_filters) { if empty($scheduler_available_filters) {
$scheduler_available_filters_real = $::os_service_default $scheduler_available_filters_real = $facts['os_service_default']
} else { } else {
$scheduler_available_filters_real = $scheduler_available_filters $scheduler_available_filters_real = $scheduler_available_filters
} }
@ -149,13 +149,13 @@ class nova::scheduler::filter (
validate_legacy(Array, 'validate_array', $isolated_images) validate_legacy(Array, 'validate_array', $isolated_images)
$isolated_images_real = join($isolated_images, ',') $isolated_images_real = join($isolated_images, ',')
} else { } else {
$isolated_images_real = $::os_service_default $isolated_images_real = $facts['os_service_default']
} }
if !is_service_default($isolated_hosts) and !empty($isolated_hosts){ if !is_service_default($isolated_hosts) and !empty($isolated_hosts){
validate_legacy(Array, 'validate_array', $isolated_hosts) validate_legacy(Array, 'validate_array', $isolated_hosts)
$isolated_hosts_real = join($isolated_hosts, ',') $isolated_hosts_real = join($isolated_hosts, ',')
} else { } else {
$isolated_hosts_real = $::os_service_default $isolated_hosts_real = $facts['os_service_default']
} }
nova_config { nova_config {

View File

@ -56,7 +56,7 @@ class nova::spicehtml5proxy(
# 3/ Start the service # 3/ Start the service
# Other OS don't need this scheduling and can use # Other OS don't need this scheduling and can use
# the standard nova::generic_service # the standard nova::generic_service
if $::operatingsystem == 'Debian' { if $facts['os']['name'] == 'Debian' {
if $enabled { if $enabled {
file_line { '/etc/default/nova-consoleproxy:NOVA_CONSOLE_PROXY_TYPE': file_line { '/etc/default/nova-consoleproxy:NOVA_CONSOLE_PROXY_TYPE':
path => '/etc/default/nova-consoleproxy', path => '/etc/default/nova-consoleproxy',

View File

@ -10,48 +10,48 @@
# available to the instances via the metadata service, and to the rendering of # available to the instances via the metadata service, and to the rendering of
# config-drive. The default class for this, JsonFileVendorData, loads this # config-drive. The default class for this, JsonFileVendorData, loads this
# information from a JSON file, whose path is configured by this option # information from a JSON file, whose path is configured by this option
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*vendordata_providers*] # [*vendordata_providers*]
# (optional) vendordata providers are how deployers can provide metadata via # (optional) vendordata providers are how deployers can provide metadata via
# configdrive and metadata that is specific to their deployment. There are # configdrive and metadata that is specific to their deployment. There are
# currently two supported providers: StaticJSON and DynamicJSON. # currently two supported providers: StaticJSON and DynamicJSON.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*vendordata_dynamic_targets*] # [*vendordata_dynamic_targets*]
# (optional) A list of targets for the dynamic vendordata provider. These # (optional) A list of targets for the dynamic vendordata provider. These
# targets are of the form <name>@<url>. # targets are of the form <name>@<url>.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*vendordata_dynamic_connect_timeout*] # [*vendordata_dynamic_connect_timeout*]
# (optional) Maximum wait time for an external REST service to connect. # (optional) Maximum wait time for an external REST service to connect.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*vendordata_dynamic_read_timeout*] # [*vendordata_dynamic_read_timeout*]
# (optional) Maximum wait time for an external REST service to return data # (optional) Maximum wait time for an external REST service to return data
# once connected. # once connected.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*vendordata_dynamic_failure_fatal*] # [*vendordata_dynamic_failure_fatal*]
# (optional) Should failures to fetch dynamic vendordata be fatal to # (optional) Should failures to fetch dynamic vendordata be fatal to
# instance boot? # instance boot?
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*vendordata_dynamic_auth_auth_type*] # [*vendordata_dynamic_auth_auth_type*]
# (optional) Authentication type to load for vendordata dynamic plugins. # (optional) Authentication type to load for vendordata dynamic plugins.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*vendordata_dynamic_auth_auth_url*] # [*vendordata_dynamic_auth_auth_url*]
# (optional) URL to use for authenticating. # (optional) URL to use for authenticating.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*vendordata_dynamic_auth_os_region_name*] # [*vendordata_dynamic_auth_os_region_name*]
# (optional) Region name for the vendordata dynamic plugin credentials. # (optional) Region name for the vendordata dynamic plugin credentials.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*vendordata_dynamic_auth_password*] # [*vendordata_dynamic_auth_password*]
# (optional) Password for the vendordata dynamic plugin credentials. # (optional) Password for the vendordata dynamic plugin credentials.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*vendordata_dynamic_auth_project_domain_name*] # [*vendordata_dynamic_auth_project_domain_name*]
# (optional) Project domain name for the vendordata dynamic plugin # (optional) Project domain name for the vendordata dynamic plugin
@ -60,11 +60,11 @@
# #
# [*vendordata_dynamic_auth_project_name*] # [*vendordata_dynamic_auth_project_name*]
# (optional) Project name for the vendordata dynamic plugin credentials. # (optional) Project name for the vendordata dynamic plugin credentials.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*vendordata_dynamic_auth_system_scope*] # [*vendordata_dynamic_auth_system_scope*]
# (optional) Scope for system operations. # (optional) Scope for system operations.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*vendordata_dynamic_auth_user_domain_name*] # [*vendordata_dynamic_auth_user_domain_name*]
# (optional) User domain name for the vendordata dynamic plugin credentials. # (optional) User domain name for the vendordata dynamic plugin credentials.
@ -72,24 +72,24 @@
# #
# [*vendordata_dynamic_auth_username*] # [*vendordata_dynamic_auth_username*]
# (optional) User name for the vendordata dynamic plugin credentials. # (optional) User name for the vendordata dynamic plugin credentials.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class nova::vendordata( class nova::vendordata(
$vendordata_jsonfile_path = $::os_service_default, $vendordata_jsonfile_path = $facts['os_service_default'],
$vendordata_providers = $::os_service_default, $vendordata_providers = $facts['os_service_default'],
$vendordata_dynamic_targets = $::os_service_default, $vendordata_dynamic_targets = $facts['os_service_default'],
$vendordata_dynamic_connect_timeout = $::os_service_default, $vendordata_dynamic_connect_timeout = $facts['os_service_default'],
$vendordata_dynamic_read_timeout = $::os_service_default, $vendordata_dynamic_read_timeout = $facts['os_service_default'],
$vendordata_dynamic_failure_fatal = $::os_service_default, $vendordata_dynamic_failure_fatal = $facts['os_service_default'],
$vendordata_dynamic_auth_auth_type = $::os_service_default, $vendordata_dynamic_auth_auth_type = $facts['os_service_default'],
$vendordata_dynamic_auth_auth_url = $::os_service_default, $vendordata_dynamic_auth_auth_url = $facts['os_service_default'],
$vendordata_dynamic_auth_os_region_name = $::os_service_default, $vendordata_dynamic_auth_os_region_name = $facts['os_service_default'],
$vendordata_dynamic_auth_password = $::os_service_default, $vendordata_dynamic_auth_password = $facts['os_service_default'],
$vendordata_dynamic_auth_project_domain_name = 'Default', $vendordata_dynamic_auth_project_domain_name = 'Default',
$vendordata_dynamic_auth_project_name = $::os_service_default, $vendordata_dynamic_auth_project_name = $facts['os_service_default'],
$vendordata_dynamic_auth_system_scope = $::os_service_default, $vendordata_dynamic_auth_system_scope = $facts['os_service_default'],
$vendordata_dynamic_auth_user_domain_name = 'Default', $vendordata_dynamic_auth_user_domain_name = 'Default',
$vendordata_dynamic_auth_username = $::os_service_default, $vendordata_dynamic_auth_username = $facts['os_service_default'],
) inherits nova::params { ) inherits nova::params {
include nova::deps include nova::deps
@ -97,22 +97,22 @@ class nova::vendordata(
validate_legacy(Array, 'validate_array', $vendordata_providers) validate_legacy(Array, 'validate_array', $vendordata_providers)
$vendordata_providers_real = join($vendordata_providers, ',') $vendordata_providers_real = join($vendordata_providers, ',')
} else { } else {
$vendordata_providers_real = $::os_service_default $vendordata_providers_real = $facts['os_service_default']
} }
if !is_service_default($vendordata_dynamic_targets) and !empty($vendordata_dynamic_targets){ if !is_service_default($vendordata_dynamic_targets) and !empty($vendordata_dynamic_targets){
validate_legacy(Array, 'validate_array', $vendordata_dynamic_targets) validate_legacy(Array, 'validate_array', $vendordata_dynamic_targets)
$vendordata_dynamic_targets_real = join($vendordata_dynamic_targets, ',') $vendordata_dynamic_targets_real = join($vendordata_dynamic_targets, ',')
} else { } else {
$vendordata_dynamic_targets_real = $::os_service_default $vendordata_dynamic_targets_real = $facts['os_service_default']
} }
if is_service_default($vendordata_dynamic_auth_system_scope) { if is_service_default($vendordata_dynamic_auth_system_scope) {
$vendordata_dynamic_auth_project_name_real = $vendordata_dynamic_auth_project_name $vendordata_dynamic_auth_project_name_real = $vendordata_dynamic_auth_project_name
$vendordata_dynamic_auth_project_domain_name_real = $vendordata_dynamic_auth_project_domain_name $vendordata_dynamic_auth_project_domain_name_real = $vendordata_dynamic_auth_project_domain_name
} else { } else {
$vendordata_dynamic_auth_project_name_real = $::os_service_default $vendordata_dynamic_auth_project_name_real = $facts['os_service_default']
$vendordata_dynamic_auth_project_domain_name_real = $::os_service_default $vendordata_dynamic_auth_project_domain_name_real = $facts['os_service_default']
} }
nova_config { nova_config {

View File

@ -126,7 +126,7 @@ class nova::vncproxy(
# 3/ Start the service # 3/ Start the service
# Other OS don't need this scheduling and can use # Other OS don't need this scheduling and can use
# the standard nova::generic_service # the standard nova::generic_service
if $::operatingsystem == 'Debian' { if $facts['os']['name'] == 'Debian' {
if $enabled { if $enabled {
file_line { '/etc/default/nova-consoleproxy:NOVA_CONSOLE_PROXY_TYPE': file_line { '/etc/default/nova-consoleproxy:NOVA_CONSOLE_PROXY_TYPE':
path => '/etc/default/nova-consoleproxy', path => '/etc/default/nova-consoleproxy',

View File

@ -7,36 +7,36 @@
# [*never_download_image_if_on_rbd*] # [*never_download_image_if_on_rbd*]
# (Optional) refuse to boot an instance if it would require downloading from # (Optional) refuse to boot an instance if it would require downloading from
# glance and uploading to ceph instead of a COW clone # glance and uploading to ceph instead of a COW clone
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*ensure_libvirt_rbd_instance_dir_cleanup*] # [*ensure_libvirt_rbd_instance_dir_cleanup*]
# (Optional) Ensure the instance directory is removed during clean up when using # (Optional) Ensure the instance directory is removed during clean up when using
# rbd. When enabled this workaround will ensure that the instance directory is # rbd. When enabled this workaround will ensure that the instance directory is
# always removed during cleanup on hosts using ``[libvirt]/images_type=rbd`` # always removed during cleanup on hosts using ``[libvirt]/images_type=rbd``
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*enable_qemu_monitor_announce_self*] # [*enable_qemu_monitor_announce_self*]
# (Optional) If it is set to True the libvirt driver will try as a best effort to # (Optional) If it is set to True the libvirt driver will try as a best effort to
# send the announce-self command to the QEMU monitor so that it generates RARP frames # send the announce-self command to the QEMU monitor so that it generates RARP frames
# to update network switches in the post live migration phase on the destination. # to update network switches in the post live migration phase on the destination.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*wait_for_vif_plugged_event_during_hard_reboot*] # [*wait_for_vif_plugged_event_during_hard_reboot*]
# (Optional) If set Nova will wait for the Neutron ML2 backend to sent vif # (Optional) If set Nova will wait for the Neutron ML2 backend to sent vif
# plugged events when performing hard reboot. # plugged events when performing hard reboot.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*disable_compute_service_check_for_ffu*] # [*disable_compute_service_check_for_ffu*]
# (Optional) If this is set, the normal safety check for old compute services will # (Optional) If this is set, the normal safety check for old compute services will
# be treated as a warning instead of an error. This is only to be enabled to # be treated as a warning instead of an error. This is only to be enabled to
# facilitate a Fast-Forward upgrade where new control services are being started # facilitate a Fast-Forward upgrade where new control services are being started
# before compute nodes have been able to update their service record. # before compute nodes have been able to update their service record.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*skip_hypervisor_version_check_on_lm*] # [*skip_hypervisor_version_check_on_lm*]
# (Optional) When this is enabled, it will skip version-checking of # (Optional) When this is enabled, it will skip version-checking of
# hypervisors during live migration. # hypervisors during live migration.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# DEPRECATED # DEPRECATED
# #
@ -45,12 +45,12 @@
# Defaults to undef # Defaults to undef
# #
class nova::workarounds ( class nova::workarounds (
$never_download_image_if_on_rbd = $::os_service_default, $never_download_image_if_on_rbd = $facts['os_service_default'],
$ensure_libvirt_rbd_instance_dir_cleanup = $::os_service_default, $ensure_libvirt_rbd_instance_dir_cleanup = $facts['os_service_default'],
$enable_qemu_monitor_announce_self = $::os_service_default, $enable_qemu_monitor_announce_self = $facts['os_service_default'],
$wait_for_vif_plugged_event_during_hard_reboot = $::os_service_default, $wait_for_vif_plugged_event_during_hard_reboot = $facts['os_service_default'],
$disable_compute_service_check_for_ffu = $::os_service_default, $disable_compute_service_check_for_ffu = $facts['os_service_default'],
$skip_hypervisor_version_check_on_lm = $::os_service_default, $skip_hypervisor_version_check_on_lm = $facts['os_service_default'],
# DEPRECATED PARAMETER # DEPRECATED PARAMETER
$enable_numa_live_migration = undef, $enable_numa_live_migration = undef,
) { ) {

View File

@ -26,7 +26,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 for Nova API service. # (Optional) The port for Nova API service.
@ -46,7 +46,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.
@ -138,12 +138,12 @@
# class { 'nova::wsgi::apache': } # class { 'nova::wsgi::apache': }
# #
class nova::wsgi::apache_api ( class nova::wsgi::apache_api (
$servername = $::fqdn, $servername = $facts['networking']['fqdn'],
$port = 8774, $port = 8774,
$bind_host = undef, $bind_host = undef,
$path = '/', $path = '/',
$ssl = false, $ssl = false,
$workers = $::os_workers, $workers = $facts['os_workers'],
$ssl_cert = undef, $ssl_cert = undef,
$ssl_key = undef, $ssl_key = undef,
$ssl_chain = undef, $ssl_chain = undef,

View File

@ -25,7 +25,7 @@
# #
# [*servername*] # [*servername*]
# (Optional) The servername for the virtualhost. # (Optional) The servername for the virtualhost.
# Defaults to $::fqdn # Defaults to $facts['networking']['fqdn']
# #
# [*ensure_package*] # [*ensure_package*]
# (Optional) Control the ensure parameter for the Nova Metadata API package # (Optional) Control the ensure parameter for the Nova Metadata API package
@ -50,7 +50,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.
@ -142,12 +142,12 @@
# class { 'nova::wsgi::apache_metadata': } # class { 'nova::wsgi::apache_metadata': }
# #
class nova::wsgi::apache_metadata ( class nova::wsgi::apache_metadata (
$servername = $::fqdn, $servername = $facts['networking']['fqdn'],
$port = 8775, $port = 8775,
$bind_host = undef, $bind_host = undef,
$path = '/', $path = '/',
$ssl = false, $ssl = false,
$workers = $::os_workers, $workers = $facts['os_workers'],
$ssl_cert = undef, $ssl_cert = undef,
$ssl_key = undef, $ssl_key = undef,
$ssl_chain = undef, $ssl_chain = undef,

View File

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

View File

@ -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 nova::wsgi::uwsgi_api_metadata ( class nova::wsgi::uwsgi_api_metadata (
$processes = $::os_workers, $processes = $facts['os_workers'],
$threads = 1, $threads = 1,
$listen_queue_size = 100, $listen_queue_size = 100,
){ ){
include nova::deps include nova::deps
if $::operatingsystem != 'Debian'{ if $facts['os']['name'] != 'Debian'{
warning('This class is only valid for Debian, as other operating systems are not using uwsgi by default.') warning('This class is only valid for Debian, as other operating systems are not using uwsgi by default.')
} }

View File

@ -288,7 +288,7 @@ describe 'nova::api' do
end end
let (:platform_params) do let (:platform_params) do
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
{ :nova_api_package => 'nova-api', { :nova_api_package => 'nova-api',
:nova_api_service => 'nova-api' } :nova_api_service => 'nova-api' }
@ -298,7 +298,7 @@ describe 'nova::api' do
end end
end end
it_behaves_like 'nova-api' it_behaves_like 'nova-api'
if facts[:operatingsystem] == 'Debian' if facts[:os]['name'] == 'Debian'
it_behaves_like 'nova-api on Debian' it_behaves_like 'nova-api on Debian'
end end
end end

View File

@ -25,7 +25,7 @@ describe 'nova::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-novaclient' } { :client_package_name => 'python3-novaclient' }
when 'RedHat' when 'RedHat'

View File

@ -35,14 +35,11 @@ describe 'nova::compute::ironic' do
}).each do |os,facts| }).each do |os,facts|
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge!(OSDefaults.get_facts({ facts.merge!(OSDefaults.get_facts())
:fqdn => 'some.host.tld',
:concat_basedir => '/var/lib/puppet/concat'
}))
end end
let(:platform_params) do let(:platform_params) do
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
{} {}
when 'RedHat' when 'RedHat'

View File

@ -364,7 +364,7 @@ describe 'nova::compute::libvirt' do
facts.merge!(OSDefaults.get_facts()) facts.merge!(OSDefaults.get_facts())
end end
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
it_behaves_like 'debian-nova-compute-libvirt' it_behaves_like 'debian-nova-compute-libvirt'
when 'RedHat' when 'RedHat'

View File

@ -192,7 +192,7 @@ describe 'nova::compute::rbd' do
end end
let (:platform_params) do let (:platform_params) do
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
{ :ceph_client_package => 'ceph-common' } { :ceph_client_package => 'ceph-common' }
when 'RedHat' when 'RedHat'
@ -200,8 +200,8 @@ describe 'nova::compute::rbd' do
end end
end end
it_configures 'nova::compute::rbd' it_configures 'nova::compute::rbd'
if facts[:osfamily] == 'Debian' if facts[:os]['family'] == 'Debian'
it_configures "nova::compute::rbd in #{facts[:osfamily]}" it_configures "nova::compute::rbd in #{facts[:os]['family']}"
end end
end end
end end

View File

@ -355,7 +355,7 @@ describe 'nova::compute' do
let (:facts) do let (:facts) do
facts.merge!(OSDefaults.get_facts()) facts.merge!(OSDefaults.get_facts())
end end
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
let (:platform_params) do let (:platform_params) do
{ {

View File

@ -71,7 +71,7 @@ describe 'nova::conductor' do
end end
let (:platform_params) do let (:platform_params) do
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
{ :conductor_package_name => 'nova-conductor', { :conductor_package_name => 'nova-conductor',
:conductor_service_name => 'nova-conductor' } :conductor_service_name => 'nova-conductor' }

View File

@ -79,10 +79,7 @@ describe 'nova::db::online_data_migrations' do
}).each do |os,facts| }).each do |os,facts|
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge(OSDefaults.get_facts({ facts.merge(OSDefaults.get_facts())
:processorcount => 8,
:concat_basedir => '/var/lib/puppet/concat'
}))
end end
it_configures 'nova-db-online-data-migrations' it_configures 'nova-db-online-data-migrations'

View File

@ -79,9 +79,7 @@ describe 'nova::db::sync_api' do
}).each do |os,facts| }).each do |os,facts|
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge(OSDefaults.get_facts({ facts.merge(OSDefaults.get_facts())
:os_workers => 8,
}))
end end
it_configures 'nova-dbsync-api' it_configures 'nova-dbsync-api'

View File

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

View File

@ -484,7 +484,7 @@ describe 'nova' do
facts.merge!(OSDefaults.get_facts()) facts.merge!(OSDefaults.get_facts())
end end
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
let (:platform_params) do let (:platform_params) do
{ :nova_common_package => 'nova-common', { :nova_common_package => 'nova-common',

View File

@ -61,7 +61,7 @@ describe 'nova::metadata' do
end end
let (:platform_params) do let (:platform_params) do
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
{ :nova_api_package => 'nova-api', { :nova_api_package => 'nova-api',
:nova_api_service => 'nova-api' } :nova_api_service => 'nova-api' }

View File

@ -505,11 +505,11 @@ describe 'nova::migration::libvirt' do
}).each do |os,facts| }).each do |os,facts|
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge!(OSDefaults.get_facts({ :os_workers => 5 })) facts.merge!(OSDefaults.get_facts())
end end
it_behaves_like 'nova migration with libvirt' it_behaves_like 'nova migration with libvirt'
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
it_behaves_like 'nova migration with libvirt in Debian' it_behaves_like 'nova migration with libvirt in Debian'
when 'RedHat' when 'RedHat'

View File

@ -140,7 +140,7 @@ describe 'nova::scheduler' do
end end
let (:platform_params) do let (:platform_params) do
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
{ :scheduler_package_name => 'nova-scheduler', { :scheduler_package_name => 'nova-scheduler',
:scheduler_service_name => 'nova-scheduler' } :scheduler_service_name => 'nova-scheduler' }

View File

@ -57,9 +57,9 @@ describe 'nova::serialproxy' do
end end
let (:platform_params) do let (:platform_params) do
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
if facts[:operatingsystem] == 'Debian' if facts[:os]['name'] == 'Debian'
{ :serialproxy_package_name => 'nova-consoleproxy', { :serialproxy_package_name => 'nova-consoleproxy',
:serialproxy_service_name => 'nova-serialproxy' } :serialproxy_service_name => 'nova-serialproxy' }
else else

View File

@ -71,9 +71,9 @@ describe 'nova::spicehtml5proxy' do
end end
let (:platform_params) do let (:platform_params) do
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
if facts[:operatingsystem] == 'Debian' then if facts[:os]['name'] == 'Debian' then
package_name = 'nova-consoleproxy' package_name = 'nova-consoleproxy'
service_name = 'nova-spicehtml5proxy' service_name = 'nova-spicehtml5proxy'
else else
@ -94,7 +94,7 @@ describe 'nova::spicehtml5proxy' do
it_behaves_like 'nova::spicehtml5proxy' it_behaves_like 'nova::spicehtml5proxy'
if facts[:operatingsystem] == 'Debian' if facts[:os]['name'] == 'Debian'
it_behaves_like 'nova::spicehtml5proxy on Debian' it_behaves_like 'nova::spicehtml5proxy on Debian'
end end
end end

View File

@ -91,11 +91,11 @@ describe 'nova::vendordata' do
}).each do |os,facts| }).each do |os,facts|
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge!(OSDefaults.get_facts({ :os_workers => 5 })) facts.merge!(OSDefaults.get_facts())
end end
let (:platform_params) do let (:platform_params) do
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
{ :nova_api_package => 'nova-api', { :nova_api_package => 'nova-api',
:nova_api_service => 'nova-api' } :nova_api_service => 'nova-api' }

View File

@ -156,9 +156,9 @@ describe 'nova::vncproxy' do
end end
let (:platform_params) do let (:platform_params) do
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
if facts[:operatingsystem] == 'Debian' if facts[:os]['name'] == 'Debian'
{ :nova_vncproxy_package => 'nova-consoleproxy', { :nova_vncproxy_package => 'nova-consoleproxy',
:nova_vncproxy_service => 'nova-novncproxy' } :nova_vncproxy_service => 'nova-novncproxy' }
else else
@ -173,7 +173,7 @@ describe 'nova::vncproxy' do
it_behaves_like 'nova_vnc_proxy' it_behaves_like 'nova_vnc_proxy'
if facts[:operatingsystem] == 'Debian' if facts[:os]['name'] == 'Debian'
it_behaves_like 'nova_vnc_proxy debian package' it_behaves_like 'nova_vnc_proxy debian package'
end end

View File

@ -19,7 +19,7 @@ describe 'nova::wsgi::apache_api' do
:group => 'nova', :group => 'nova',
:path => '/', :path => '/',
:priority => 10, :priority => 10,
:servername => facts[:fqdn], :servername => 'foo.example.com',
:ssl => false, :ssl => false,
:threads => 1, :threads => 1,
:user => 'nova', :user => 'nova',
@ -226,14 +226,12 @@ describe 'nova::wsgi::apache_api' do
context "on #{os}" do context "on #{os}" do
let (:facts) do let (:facts) do
facts.merge!(OSDefaults.get_facts({ facts.merge!(OSDefaults.get_facts({
:os_workers => 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/nova', :wsgi_script_path => '/usr/lib/cgi-bin/nova',

View File

@ -17,7 +17,7 @@ describe 'nova::wsgi::apache_metadata' do
:group => 'nova', :group => 'nova',
:path => '/', :path => '/',
:priority => 10, :priority => 10,
:servername => facts[:fqdn], :servername => 'foo.example.com',
:ssl => false, :ssl => false,
:threads => 1, :threads => 1,
:user => 'nova', :user => 'nova',
@ -212,14 +212,12 @@ describe 'nova::wsgi::apache_metadata' 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/nova', :wsgi_script_path => '/usr/lib/cgi-bin/nova',