Replace legacy facts and use fact hash

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

Change-Id: I60600b673171f0e616d48680001dbc1e17c2a3aa
This commit is contained in:
Takashi Kajinami 2023-03-02 11:11:54 +09:00
parent b8137be3b0
commit e7200ad4e0
32 changed files with 319 additions and 321 deletions

View File

@ -53,21 +53,21 @@
# [*ssl_cert_file*] # [*ssl_cert_file*]
# (Optional) Location of the SSL certificate file to use for SSL mode. # (Optional) Location of the SSL certificate file to use for SSL mode.
# Required when $enabled_ssl is set to 'true'. # Required when $enabled_ssl is set to 'true'.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*ssl_key_file*] # [*ssl_key_file*]
# (Optional) Location of the SSL key file to use for enabling SSL mode. # (Optional) Location of the SSL key file to use for enabling SSL mode.
# Required when $enabled_ssl is set to 'true'. # Required when $enabled_ssl is set to 'true'.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*workers*] # [*workers*]
# (Optional) Number of API workers. # (Optional) Number of API workers.
# Defaults to $::os_workers # Defaults to $facts['os_workers']
# #
# [*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']
# #
class magnum::api( class magnum::api(
$package_ensure = 'present', $package_ensure = 'present',
@ -80,10 +80,10 @@ class magnum::api(
$sync_db = true, $sync_db = true,
$auth_strategy = 'keystone', $auth_strategy = 'keystone',
$enabled_ssl = false, $enabled_ssl = false,
$ssl_cert_file = $::os_service_default, $ssl_cert_file = $facts['os_service_default'],
$ssl_key_file = $::os_service_default, $ssl_key_file = $facts['os_service_default'],
$workers = $::os_workers, $workers = $facts['os_workers'],
$enable_proxy_headers_parsing = $::os_service_default, $enable_proxy_headers_parsing = $facts['os_service_default'],
) inherits magnum::params { ) inherits magnum::params {
include magnum::deps include magnum::deps

View File

@ -9,7 +9,7 @@
# Defaults to 'barbican' # Defaults to 'barbican'
# #
class magnum::certificates ( class magnum::certificates (
$cert_manager_type = $::os_service_default, $cert_manager_type = $facts['os_service_default'],
) { ) {
include magnum::deps include magnum::deps

View File

@ -6,25 +6,25 @@
# #
# [*default_docker_volume_type*] # [*default_docker_volume_type*]
# (optional) Default cinder volume_type for docker storage # (optional) Default cinder volume_type for docker storage
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*default_etcd_volume_type*] # [*default_etcd_volume_type*]
# (optional) Default cinder volume_type for etcd storage # (optional) Default cinder volume_type for etcd storage
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*default_boot_volume_type*] # [*default_boot_volume_type*]
# (optional) Default cinder volume_type for boot disk # (optional) Default cinder volume_type for boot disk
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*default_boot_volume_size*] # [*default_boot_volume_size*]
# (optional) Default volume size for boot disk # (optional) Default volume size for boot disk
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class magnum::cinder ( class magnum::cinder (
$default_docker_volume_type = $::os_service_default, $default_docker_volume_type = $facts['os_service_default'],
$default_etcd_volume_type = $::os_service_default, $default_etcd_volume_type = $facts['os_service_default'],
$default_boot_volume_type = $::os_service_default, $default_boot_volume_type = $facts['os_service_default'],
$default_boot_volume_size = $::os_service_default, $default_boot_volume_size = $facts['os_service_default'],
) { ) {
include magnum::deps include magnum::deps

View File

@ -16,15 +16,15 @@
# #
# [*ca_file*] # [*ca_file*]
# (optional) CA cert file to use in SSL connections. # (optional) CA cert file to use in SSL connections.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*cert_file*] # [*cert_file*]
# (optional) PEM-formatted certificate chain file. # (optional) PEM-formatted certificate chain file.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*key_file*] # [*key_file*]
# (optional) PEM-formatted file that contains the private key. # (optional) PEM-formatted file that contains the private key.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*insecure*] # [*insecure*]
# (optional) If set, then the server's certificate will not be verified. # (optional) If set, then the server's certificate will not be verified.
@ -33,9 +33,9 @@
class magnum::clients ( class magnum::clients (
$region_name = 'RegionOne', $region_name = 'RegionOne',
$endpoint_type = 'publicURL', $endpoint_type = 'publicURL',
$ca_file = $::os_service_default, $ca_file = $facts['os_service_default'],
$cert_file = $::os_service_default, $cert_file = $facts['os_service_default'],
$key_file = $::os_service_default, $key_file = $facts['os_service_default'],
$insecure = false $insecure = false
) { ) {
include magnum::deps include magnum::deps

View File

@ -16,19 +16,19 @@
# #
# [*api_version*] # [*api_version*]
# (optional) Version of Cinder API to use in cinderclient. # (optional) Version of Cinder API to use in cinderclient.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*ca_file*] # [*ca_file*]
# (optional) CA cert file to use in SSL connections. # (optional) CA cert file to use in SSL connections.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*cert_file*] # [*cert_file*]
# (optional) PEM-formatted certificate chain file. # (optional) PEM-formatted certificate chain file.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*key_file*] # [*key_file*]
# (optional) PEM-formatted file that contains the private key. # (optional) PEM-formatted file that contains the private key.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*insecure*] # [*insecure*]
# (optional) If set, then the server's certificate will not be verified. # (optional) If set, then the server's certificate will not be verified.
@ -37,7 +37,7 @@
class magnum::clients::cinder( class magnum::clients::cinder(
$region_name = $magnum::clients::region_name, $region_name = $magnum::clients::region_name,
$endpoint_type = $magnum::clients::endpoint_type, $endpoint_type = $magnum::clients::endpoint_type,
$api_version = $::os_service_default, $api_version = $facts['os_service_default'],
$ca_file = $magnum::clients::ca_file, $ca_file = $magnum::clients::ca_file,
$cert_file = $magnum::clients::cert_file, $cert_file = $magnum::clients::cert_file,
$key_file = $magnum::clients::key_file, $key_file = $magnum::clients::key_file,

View File

@ -16,19 +16,19 @@
# #
# [*api_version*] # [*api_version*]
# (optional) Version of Glance API to use in glanceclient. # (optional) Version of Glance API to use in glanceclient.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*ca_file*] # [*ca_file*]
# (optional) CA cert file to use in SSL connections. # (optional) CA cert file to use in SSL connections.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*cert_file*] # [*cert_file*]
# (optional) PEM-formatted certificate chain file. # (optional) PEM-formatted certificate chain file.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*key_file*] # [*key_file*]
# (optional) PEM-formatted file that contains the private key. # (optional) PEM-formatted file that contains the private key.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*insecure*] # [*insecure*]
# (optional) If set, then the server's certificate will not be verified. # (optional) If set, then the server's certificate will not be verified.
@ -38,7 +38,7 @@
class magnum::clients::glance( class magnum::clients::glance(
$region_name = $magnum::clients::region_name, $region_name = $magnum::clients::region_name,
$endpoint_type = $magnum::clients::endpoint_type, $endpoint_type = $magnum::clients::endpoint_type,
$api_version = $::os_service_default, $api_version = $facts['os_service_default'],
$ca_file = $magnum::clients::ca_file, $ca_file = $magnum::clients::ca_file,
$cert_file = $magnum::clients::cert_file, $cert_file = $magnum::clients::cert_file,
$key_file = $magnum::clients::key_file, $key_file = $magnum::clients::key_file,

View File

@ -16,19 +16,19 @@
# #
# [*api_version*] # [*api_version*]
# (optional) Version of heat API to use in heatclient. # (optional) Version of heat API to use in heatclient.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*ca_file*] # [*ca_file*]
# (optional) CA cert file to use in SSL connections. # (optional) CA cert file to use in SSL connections.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*cert_file*] # [*cert_file*]
# (optional) PEM-formatted certificate chain file. # (optional) PEM-formatted certificate chain file.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*key_file*] # [*key_file*]
# (optional) PEM-formatted file that contains the private key. # (optional) PEM-formatted file that contains the private key.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*insecure*] # [*insecure*]
# (optional) If set, then the server's certificate will not be verified. # (optional) If set, then the server's certificate will not be verified.
@ -38,7 +38,7 @@
class magnum::clients::heat( class magnum::clients::heat(
$region_name = $magnum::clients::region_name, $region_name = $magnum::clients::region_name,
$endpoint_type = $magnum::clients::endpoint_type, $endpoint_type = $magnum::clients::endpoint_type,
$api_version = $::os_service_default, $api_version = $facts['os_service_default'],
$ca_file = $magnum::clients::ca_file, $ca_file = $magnum::clients::ca_file,
$cert_file = $magnum::clients::cert_file, $cert_file = $magnum::clients::cert_file,
$key_file = $magnum::clients::key_file, $key_file = $magnum::clients::key_file,

View File

@ -16,15 +16,15 @@
# #
# [*ca_file*] # [*ca_file*]
# (optional) CA cert file to use in SSL connections. # (optional) CA cert file to use in SSL connections.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*cert_file*] # [*cert_file*]
# (optional) PEM-formatted certificate chain file. # (optional) PEM-formatted certificate chain file.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*key_file*] # [*key_file*]
# (optional) PEM-formatted file that contains the private key. # (optional) PEM-formatted file that contains the private key.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*insecure*] # [*insecure*]
# (optional) If set, then the server's certificate will not be verified. # (optional) If set, then the server's certificate will not be verified.

View File

@ -16,19 +16,19 @@
# #
# [*api_version*] # [*api_version*]
# (optional) Version of nova API to use in novaclient. # (optional) Version of nova API to use in novaclient.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*ca_file*] # [*ca_file*]
# (optional) CA cert file to use in SSL connections. # (optional) CA cert file to use in SSL connections.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*cert_file*] # [*cert_file*]
# (optional) PEM-formatted certificate chain file. # (optional) PEM-formatted certificate chain file.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*key_file*] # [*key_file*]
# (optional) PEM-formatted file that contains the private key. # (optional) PEM-formatted file that contains the private key.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*insecure*] # [*insecure*]
# (optional) If set, then the server's certificate will not be verified. # (optional) If set, then the server's certificate will not be verified.
@ -38,7 +38,7 @@
class magnum::clients::nova( class magnum::clients::nova(
$region_name = $magnum::clients::region_name, $region_name = $magnum::clients::region_name,
$endpoint_type = $magnum::clients::endpoint_type, $endpoint_type = $magnum::clients::endpoint_type,
$api_version = $::os_service_default, $api_version = $facts['os_service_default'],
$ca_file = $magnum::clients::ca_file, $ca_file = $magnum::clients::ca_file,
$cert_file = $magnum::clients::cert_file, $cert_file = $magnum::clients::cert_file,
$key_file = $magnum::clients::key_file, $key_file = $magnum::clients::key_file,

View File

@ -16,15 +16,15 @@
# #
# [*ca_file*] # [*ca_file*]
# (optional) CA cert file to use in SSL connections. # (optional) CA cert file to use in SSL connections.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*cert_file*] # [*cert_file*]
# (optional) PEM-formatted certificate chain file. # (optional) PEM-formatted certificate chain file.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*key_file*] # [*key_file*]
# (optional) PEM-formatted file that contains the private key. # (optional) PEM-formatted file that contains the private key.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*insecure*] # [*insecure*]
# (optional) If set, then the server's certificate will not be verified. # (optional) If set, then the server's certificate will not be verified.

View File

@ -6,27 +6,27 @@
# #
# [*etcd_discovery_service_endpoint_format*] # [*etcd_discovery_service_endpoint_format*]
# (optional) Url for etcd public discovery endpoint. # (optional) Url for etcd public discovery endpoint.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*nodes_affinity_policy*] # [*nodes_affinity_policy*]
# (optional) Affinity policy for server group of cluster nodes. # (optional) Affinity policy for server group of cluster nodes.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*temp_cache_dir*] # [*temp_cache_dir*]
# (optional) Explicitly specify the temporary directory to hold cached TLS # (optional) Explicitly specify the temporary directory to hold cached TLS
# certs. # certs.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*pre_delete_lb_timeout*] # [*pre_delete_lb_timeout*]
# (optional) The timeout in seconds to wait for the load balancers to be # (optional) The timeout in seconds to wait for the load balancers to be
# deleted. # deleted.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class magnum::cluster ( class magnum::cluster (
$etcd_discovery_service_endpoint_format = $::os_service_default, $etcd_discovery_service_endpoint_format = $facts['os_service_default'],
$nodes_affinity_policy = $::os_service_default, $nodes_affinity_policy = $facts['os_service_default'],
$temp_cache_dir = $::os_service_default, $temp_cache_dir = $facts['os_service_default'],
$pre_delete_lb_timeout = $::os_service_default, $pre_delete_lb_timeout = $facts['os_service_default'],
) { ) {
include magnum::deps include magnum::deps

View File

@ -6,15 +6,15 @@
# #
# [*kubernetes_allowed_network_drivers*] # [*kubernetes_allowed_network_drivers*]
# (optional) Allowed network drivers for kubernetes cluster-templates. # (optional) Allowed network drivers for kubernetes cluster-templates.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*kubernetes_default_network_driver*] # [*kubernetes_default_network_driver*]
# (optional) Default network driver for kubernetes. # (optional) Default network driver for kubernetes.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class magnum::cluster_template ( class magnum::cluster_template (
$kubernetes_allowed_network_drivers = $::os_service_default, $kubernetes_allowed_network_drivers = $facts['os_service_default'],
$kubernetes_default_network_driver = $::os_service_default, $kubernetes_default_network_driver = $facts['os_service_default'],
) { ) {
include magnum::deps include magnum::deps

View File

@ -19,7 +19,7 @@
# [*conductor_life_check_timeout*] # [*conductor_life_check_timeout*]
# (optional) RPC timeout for the conductor liveness check that is # (optional) RPC timeout for the conductor liveness check that is
# used for bay locking. # used for bay locking.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*auth_strategy*] # [*auth_strategy*]
# (optional) Type of authentication to be used. # (optional) Type of authentication to be used.
@ -27,15 +27,15 @@
# #
# [*workers*] # [*workers*]
# (optional) Number of conductor workers. # (optional) Number of conductor workers.
# Defaults to $::os_workers # Defaults to $facts['os_workers']
# #
class magnum::conductor( class magnum::conductor(
$enabled = true, $enabled = true,
$manage_service = true, $manage_service = true,
$package_ensure = 'present', $package_ensure = 'present',
$conductor_life_check_timeout = $::os_service_default, $conductor_life_check_timeout = $facts['os_service_default'],
$auth_strategy = 'keystone', $auth_strategy = 'keystone',
$workers = $::os_workers, $workers = $facts['os_workers'],
) { ) {
include magnum::db include magnum::db

View File

@ -10,49 +10,49 @@
# #
# [*database_connection_recycle_time*] # [*database_connection_recycle_time*]
# (Optional) Timeout when db connections should be reaped. # (Optional) Timeout when db connections should be reaped.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*database_max_retries*] # [*database_max_retries*]
# (Optional) Maximum number of database connection retries during startup. # (Optional) Maximum number of database connection retries during startup.
# Setting -1 implies an infinite retry count. # Setting -1 implies an infinite retry count.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*database_retry_interval*] # [*database_retry_interval*]
# (Optional) Interval between retries of opening a database connection. # (Optional) Interval between retries of opening a database connection.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*database_max_pool_size*] # [*database_max_pool_size*]
# (Optional) Maximum number of SQL connections to keep open in a pool. # (Optional) Maximum number of SQL connections to keep open in a pool.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*database_max_overflow*] # [*database_max_overflow*]
# (Optional) If set, use this value for max_overflow with sqlalchemy. # (Optional) If set, use this value for max_overflow with sqlalchemy.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*database_pool_timeout*] # [*database_pool_timeout*]
# (Optional) If set, use this value for pool_timeout with SQLAlchemy. # (Optional) If set, use this value for pool_timeout with SQLAlchemy.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*mysql_enable_ndb*] # [*mysql_enable_ndb*]
# (Optional) If True, transparently enables support for handling MySQL # (Optional) If True, transparently enables support for handling MySQL
# Cluster (NDB). # Cluster (NDB).
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*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']
# #
class magnum::db ( class magnum::db (
$database_connection = 'mysql+pymysql://magnum:magnum@localhost:3306/magnum', $database_connection = 'mysql+pymysql://magnum:magnum@localhost:3306/magnum',
$database_connection_recycle_time = $::os_service_default, $database_connection_recycle_time = $facts['os_service_default'],
$database_max_pool_size = $::os_service_default, $database_max_pool_size = $facts['os_service_default'],
$database_max_retries = $::os_service_default, $database_max_retries = $facts['os_service_default'],
$database_retry_interval = $::os_service_default, $database_retry_interval = $facts['os_service_default'],
$database_max_overflow = $::os_service_default, $database_max_overflow = $facts['os_service_default'],
$database_pool_timeout = $::os_service_default, $database_pool_timeout = $facts['os_service_default'],
$mysql_enable_ndb = $::os_service_default, $mysql_enable_ndb = $facts['os_service_default'],
$database_db_max_retries = $::os_service_default, $database_db_max_retries = $facts['os_service_default'],
) { ) {
include magnum::deps include magnum::deps

View File

@ -6,16 +6,16 @@
# #
# [*swift_region*] # [*swift_region*]
# (optional) Region name of Swift. # (optional) Region name of Swift.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*swift_registry_container*] # [*swift_registry_container*]
# (optional) Name of the container in Swift which docker registry stores # (optional) Name of the container in Swift which docker registry stores
# images in. # images in.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class magnum::docker_registry ( class magnum::docker_registry (
$swift_region = $::os_service_default, $swift_region = $facts['os_service_default'],
$swift_registry_container = $::os_service_default, $swift_registry_container = $facts['os_service_default'],
) { ) {
magnum_config { magnum_config {

View File

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

View File

@ -12,36 +12,36 @@
# (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_topics*] # [*notification_topics*]
# (Optional) AMQP topics to publish to when using the RPC notification driver. # (Optional) AMQP topics to publish to when using the RPC notification driver.
# (list value) # (list value)
# Default to $::os_service_default # Default to $facts['os_service_default']
# #
# [*notification_driver*] # [*notification_driver*]
# (Optional) Notification driver to use # (Optional) Notification driver to use
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*default_transport_url*] # [*default_transport_url*]
# (Optional) A URL representing the messaging driver to use and its full # (Optional) A URL representing the messaging driver to use and its full
# configuration. Transport URLs take the form: # configuration. Transport URLs take the form:
# transport://user:pass@host1:port[,hostN:portN]/virtual_host # transport://user:pass@host1:port[,hostN:portN]/virtual_host
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rpc_response_timeout*] # [*rpc_response_timeout*]
# (Optional) Seconds to wait for a response from a call. # (Optional) Seconds to wait for a response from a call.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*control_exchange*] # [*control_exchange*]
# (Optional) The default exchange under which topics are scoped. May be # (Optional) The default exchange under which topics are scoped. May be
# overridden by an exchange name specified in the transport_url # overridden by an exchange name specified in the transport_url
# option. # option.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rabbit_ha_queues*] # [*rabbit_ha_queues*]
# (Optional) Use HA queues in RabbitMQ. # (Optional) Use HA queues in RabbitMQ.
# 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
@ -49,14 +49,14 @@
# Heartbeating helps to ensure the TCP connection to RabbitMQ isn't silently # Heartbeating helps to ensure the TCP connection to RabbitMQ isn't silently
# closed, resulting in missed or lost messages from the queue. # closed, resulting in missed or lost messages from the queue.
# (Requires kombu >= 3.0.7 and amqp >= 1.4.0) # (Requires kombu >= 3.0.7 and amqp >= 1.4.0)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rabbit_heartbeat_rate*] # [*rabbit_heartbeat_rate*]
# (optional) How often during the rabbit_heartbeat_timeout_threshold period to # (optional) How often during the rabbit_heartbeat_timeout_threshold period to
# check the heartbeat on RabbitMQ connection. (i.e. rabbit_heartbeat_rate=2 # check the heartbeat on RabbitMQ connection. (i.e. rabbit_heartbeat_rate=2
# when rabbit_heartbeat_timeout_threshold=60, the heartbeat will be checked # when rabbit_heartbeat_timeout_threshold=60, the heartbeat will be checked
# every 30 seconds. # every 30 seconds.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rabbit_heartbeat_in_pthread*] # [*rabbit_heartbeat_in_pthread*]
# (Optional) EXPERIMENTAL: Run the health check heartbeat thread # (Optional) EXPERIMENTAL: Run the health check heartbeat thread
@ -66,110 +66,110 @@
# example if the parent process have monkey patched the # example if the parent process have monkey patched the
# stdlib by using eventlet/greenlet then the heartbeat # stdlib by using eventlet/greenlet then the heartbeat
# will be run through a green thread. # will be run through a green thread.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rabbit_use_ssl*] # [*rabbit_use_ssl*]
# (Optional) Connect over SSL for rabbit # (Optional) Connect over SSL for rabbit
# 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 rabbit SSL is enabled) # (Optional) SSL certification authority file (valid only if rabbit SSL is enabled)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*kombu_ssl_certfile*] # [*kombu_ssl_certfile*]
# (Optional) SSL cert file (valid only if rabbit SSL is enabled) # (Optional) SSL cert file (valid only if rabbit SSL is enabled)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*kombu_ssl_keyfile*] # [*kombu_ssl_keyfile*]
# (Optional) SSL key file (valid only if rabbit SSL is enabled) # (Optional) SSL key file (valid only if rabbit SSL is enabled)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*kombu_ssl_version*] # [*kombu_ssl_version*]
# (Optional) SSL version to use (valid only if rabbit SSL is enabled). # (Optional) SSL version to use (valid only if rabbit SSL is enabled).
# Valid values are TLSv1, SSLv23 and SSLv3. SSLv2 may be available # Valid values are TLSv1, SSLv23 and SSLv3. SSLv2 may be available
# on some distributions. # on some distributions.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*kombu_reconnect_delay*] # [*kombu_reconnect_delay*]
# (Optional) How long to wait before reconnecting in response # (Optional) How long to wait before reconnecting in response
# to an AMQP consumer cancel notification. (floating point value) # to an AMQP consumer cancel notification. (floating point value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*kombu_failover_strategy*] # [*kombu_failover_strategy*]
# (Optional) Determines how the next RabbitMQ node is chosen in case the one # (Optional) Determines how the next RabbitMQ node is chosen in case the one
# we are currently connected to becomes unavailable. Takes effect only if # we are currently connected to becomes unavailable. Takes effect only if
# more than one RabbitMQ node is provided in config. (string value) # more than one RabbitMQ node is provided in config. (string value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*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) Use durable queues in amqp. # (Optional) Use durable queues in amqp.
# 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'].
# #
# [*purge_config*] # [*purge_config*]
# (Optional) Whether to set only the specified config options # (Optional) Whether to set only the specified config options
@ -178,40 +178,40 @@
# #
class magnum( class magnum(
$package_ensure = 'present', $package_ensure = 'present',
$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'],
$default_transport_url = $::os_service_default, $default_transport_url = $facts['os_service_default'],
$rpc_response_timeout = $::os_service_default, $rpc_response_timeout = $facts['os_service_default'],
$control_exchange = $::os_service_default, $control_exchange = $facts['os_service_default'],
$rabbit_ha_queues = $::os_service_default, $rabbit_ha_queues = $facts['os_service_default'],
$rabbit_heartbeat_timeout_threshold = $::os_service_default, $rabbit_heartbeat_timeout_threshold = $facts['os_service_default'],
$rabbit_heartbeat_rate = $::os_service_default, $rabbit_heartbeat_rate = $facts['os_service_default'],
$rabbit_heartbeat_in_pthread = $::os_service_default, $rabbit_heartbeat_in_pthread = $facts['os_service_default'],
$rabbit_use_ssl = $::os_service_default, $rabbit_use_ssl = $facts['os_service_default'],
$kombu_ssl_ca_certs = $::os_service_default, $kombu_ssl_ca_certs = $facts['os_service_default'],
$kombu_ssl_certfile = $::os_service_default, $kombu_ssl_certfile = $facts['os_service_default'],
$kombu_ssl_keyfile = $::os_service_default, $kombu_ssl_keyfile = $facts['os_service_default'],
$kombu_ssl_version = $::os_service_default, $kombu_ssl_version = $facts['os_service_default'],
$kombu_reconnect_delay = $::os_service_default, $kombu_reconnect_delay = $facts['os_service_default'],
$kombu_failover_strategy = $::os_service_default, $kombu_failover_strategy = $facts['os_service_default'],
$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'],
$purge_config = false, $purge_config = false,
) { ) {

View File

@ -10,7 +10,7 @@
# #
# [*password*] # [*password*]
# (Required) Password to create for the service user # (Required) Password to create for the service user
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*auth_url*] # [*auth_url*]
# (Optional) The URL to use for authentication. # (Optional) The URL to use for authentication.
@ -30,17 +30,17 @@
# #
# [*system_scope*] # [*system_scope*]
# (Optional) Scope for system operations # (Optional) Scope for system operations
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*insecure*] # [*insecure*]
# (Optional) If true, explicitly allow TLS without checking server cert # (Optional) If true, explicitly allow TLS without checking server cert
# against any certificate authorities. WARNING: not recommended. Use with # against any certificate authorities. WARNING: not recommended. Use with
# caution. # caution.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*auth_section*] # [*auth_section*]
# (Optional) Config Section from which to load plugin specific options # (Optional) Config Section from which to load plugin specific options
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*auth_type*] # [*auth_type*]
# (Optional) Authentication type to load # (Optional) Authentication type to load
@ -52,26 +52,26 @@
# #
# [*auth_version*] # [*auth_version*]
# (Optional) API version of the admin Identity API endpoint. # (Optional) API version of the admin Identity API endpoint.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*cache*] # [*cache*]
# (Optional) Env key for the swift cache. # (Optional) Env key for the swift cache.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*cafile*] # [*cafile*]
# (Optional) A PEM encoded Certificate Authority to use when verifying HTTPs # (Optional) A PEM encoded Certificate Authority to use when verifying HTTPs
# connections. # connections.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*certfile*] # [*certfile*]
# (Optional) Required if identity server requires client certificate # (Optional) Required if identity server requires client certificate
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*delay_auth_decision*] # [*delay_auth_decision*]
# (Optional) Do not handle authorization requests within the middleware, but # (Optional) Do not handle authorization requests within the middleware, but
# delegate the authorization decision to downstream WSGI components. Boolean # delegate the authorization decision to downstream WSGI components. Boolean
# value # value
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*enforce_token_bind*] # [*enforce_token_bind*]
# (Optional) Used to control the use and type of token binding. Can be set # (Optional) Used to control the use and type of token binding. Can be set
@ -81,56 +81,56 @@
# 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 server. # (Optional) Request timeout value for communicating with Identity API server.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*http_request_max_retries*] # [*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 not # middleware will not ask for service catalog on token validation and will not
# set the X-Service-Catalog header. Boolean value. # set the X-Service-Catalog header. Boolean value.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*keyfile*] # [*keyfile*]
# (Optional) Required if identity server requires client certificate # (Optional) Required if identity server requires client certificate
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*memcache_pool_conn_get_timeout*] # [*memcache_pool_conn_get_timeout*]
# (Optional) Number of seconds that an operation will wait to get a memcached # (Optional) Number of seconds that an operation will wait to get a memcached
# client connection from the pool. Integer value # client connection from the pool. Integer value
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*memcache_pool_dead_retry*] # [*memcache_pool_dead_retry*]
# (Optional) Number of seconds memcached server is considered dead before it # (Optional) Number of seconds memcached server is considered dead before it
# is tried again. Integer value # is tried again. Integer value
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*memcache_pool_maxsize*] # [*memcache_pool_maxsize*]
# (Optional) Maximum total number of open connections to every memcached # (Optional) Maximum total number of open connections to every memcached
# server. Integer value # server. Integer value
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*memcache_pool_socket_timeout*] # [*memcache_pool_socket_timeout*]
# (Optional) Number of seconds a connection to memcached is held unused in # (Optional) Number of seconds a connection to memcached is held unused in
# the 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
@ -138,17 +138,17 @@
# in the cache. If ENCRYPT, token data is encrypted and authenticated in the # in the cache. If ENCRYPT, token data is encrypted and authenticated in the
# cache. If the value is not one of these options or empty, auth_token will # cache. If the value is not one of these options or empty, auth_token will
# raise an exception on initialization. # raise an exception on initialization.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*memcache_use_advanced_pool*] # [*memcache_use_advanced_pool*]
# (Optional) Use the advanced (eventlet safe) memcached client pool. The # (Optional) Use the advanced (eventlet safe) memcached client pool. The
# advanced pool will only work under python 2.x Boolean value # advanced pool will only work under python 2.x Boolean value
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*memcached_servers*] # [*memcached_servers*]
# (Optional) Optionally specify a list of memcached server(s) to use for # (Optional) Optionally specify a list of memcached server(s) to use for
# caching. If left undefined, tokens will instead be cached in-process. # caching. If left undefined, tokens will instead be cached in-process.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*manage_memcache_package*] # [*manage_memcache_package*]
# (Optional) Whether to install the python-memcache package. # (Optional) Whether to install the python-memcache package.
@ -156,13 +156,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.
@ -172,62 +172,62 @@
# 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'].
# #
class magnum::keystone::authtoken( class magnum::keystone::authtoken(
$username = 'magnum', $username = 'magnum',
$password = $::os_service_default, $password = $facts['os_service_default'],
$auth_url = 'http://localhost:5000', $auth_url = 'http://localhost:5000',
$project_name = 'services', $project_name = 'services',
$user_domain_name = 'Default', $user_domain_name = 'Default',
$project_domain_name = 'Default', $project_domain_name = 'Default',
$system_scope = $::os_service_default, $system_scope = $facts['os_service_default'],
$insecure = $::os_service_default, $insecure = $facts['os_service_default'],
$auth_section = $::os_service_default, $auth_section = $facts['os_service_default'],
$auth_type = 'password', $auth_type = 'password',
$www_authenticate_uri = 'http://localhost:5000', $www_authenticate_uri = 'http://localhost:5000',
$auth_version = $::os_service_default, $auth_version = $facts['os_service_default'],
$cache = $::os_service_default, $cache = $facts['os_service_default'],
$cafile = $::os_service_default, $cafile = $facts['os_service_default'],
$certfile = $::os_service_default, $certfile = $facts['os_service_default'],
$delay_auth_decision = $::os_service_default, $delay_auth_decision = $facts['os_service_default'],
$enforce_token_bind = $::os_service_default, $enforce_token_bind = $facts['os_service_default'],
$http_connect_timeout = $::os_service_default, $http_connect_timeout = $facts['os_service_default'],
$http_request_max_retries = $::os_service_default, $http_request_max_retries = $facts['os_service_default'],
$include_service_catalog = $::os_service_default, $include_service_catalog = $facts['os_service_default'],
$keyfile = $::os_service_default, $keyfile = $facts['os_service_default'],
$memcache_pool_conn_get_timeout = $::os_service_default, $memcache_pool_conn_get_timeout = $facts['os_service_default'],
$memcache_pool_dead_retry = $::os_service_default, $memcache_pool_dead_retry = $facts['os_service_default'],
$memcache_pool_maxsize = $::os_service_default, $memcache_pool_maxsize = $facts['os_service_default'],
$memcache_pool_socket_timeout = $::os_service_default, $memcache_pool_socket_timeout = $facts['os_service_default'],
$memcache_pool_unused_timeout = $::os_service_default, $memcache_pool_unused_timeout = $facts['os_service_default'],
$memcache_secret_key = $::os_service_default, $memcache_secret_key = $facts['os_service_default'],
$memcache_security_strategy = $::os_service_default, $memcache_security_strategy = $facts['os_service_default'],
$memcache_use_advanced_pool = $::os_service_default, $memcache_use_advanced_pool = $facts['os_service_default'],
$memcached_servers = $::os_service_default, $memcached_servers = $facts['os_service_default'],
$manage_memcache_package = false, $manage_memcache_package = false,
$region_name = $::os_service_default, $region_name = $facts['os_service_default'],
$token_cache_time = $::os_service_default, $token_cache_time = $facts['os_service_default'],
$service_token_roles = $::os_service_default, $service_token_roles = $facts['os_service_default'],
$service_token_roles_required = $::os_service_default, $service_token_roles_required = $facts['os_service_default'],
$service_type = $::os_service_default, $service_type = $facts['os_service_default'],
$interface = $::os_service_default, $interface = $facts['os_service_default'],
) { ) {
include magnum::deps include magnum::deps

View File

@ -6,7 +6,7 @@
# #
# [*cluster_user_trust*] # [*cluster_user_trust*]
# enable creation of a user trust for clusters. # enable creation of a user trust for clusters.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*domain_name*] # [*domain_name*]
# magnum domain name. # magnum domain name.
@ -14,7 +14,7 @@
# #
# [*domain_id*] # [*domain_id*]
# id of the domain to create trustee for clusters. # id of the domain to create trustee for clusters.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*domain_admin*] # [*domain_admin*]
# Keystone domain admin user which will be created. # Keystone domain admin user which will be created.
@ -22,7 +22,7 @@
# #
# [*domain_admin_id*] # [*domain_admin_id*]
# Id of the admin with roles sufficient to manage users in the trustee_domain. # Id of the admin with roles sufficient to manage users in the trustee_domain.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*domain_admin_domain_name*] # [*domain_admin_domain_name*]
# Name of the domain admin user's domain. # Name of the domain admin user's domain.
@ -30,7 +30,7 @@
# #
# [*domain_admin_domain_id*] # [*domain_admin_domain_id*]
# Id of the domain admin user's domain. # Id of the domain admin user's domain.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*domain_admin_email*] # [*domain_admin_email*]
# Keystone domain admin user email address. # Keystone domain admin user email address.
@ -42,7 +42,7 @@
# #
# [*roles*] # [*roles*]
# The roles which are delegated to the trustee by the trustor. # The roles which are delegated to the trustee by the trustor.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*keystone_interface*] # [*keystone_interface*]
# Auth interface used by instances/trustee. # Auth interface used by instances/trustee.
@ -51,7 +51,7 @@
# [*keystone_region_name*] # [*keystone_region_name*]
# Region in Identity service catalog to use for # Region in Identity service catalog to use for
# communication with the OpenStack service. # communication with the OpenStack service.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*manage_domain*] # [*manage_domain*]
# Whether manage or not the domain creation. # Whether manage or not the domain creation.
@ -68,18 +68,18 @@
# Defaults to 'true'. # Defaults to 'true'.
# #
class magnum::keystone::domain ( class magnum::keystone::domain (
$cluster_user_trust = $::os_service_default, $cluster_user_trust = $facts['os_service_default'],
$domain_name = 'magnum', $domain_name = 'magnum',
$domain_id = $::os_service_default, $domain_id = $facts['os_service_default'],
$domain_admin = 'magnum_admin', $domain_admin = 'magnum_admin',
$domain_admin_id = $::os_service_default, $domain_admin_id = $facts['os_service_default'],
$domain_admin_email = 'magnum_admin@localhost', $domain_admin_email = 'magnum_admin@localhost',
$domain_password = 'changeme', $domain_password = 'changeme',
$domain_admin_domain_name = $::os_service_default, $domain_admin_domain_name = $facts['os_service_default'],
$domain_admin_domain_id = $::os_service_default, $domain_admin_domain_id = $facts['os_service_default'],
$roles = $::os_service_default, $roles = $facts['os_service_default'],
$keystone_interface = 'public', $keystone_interface = 'public',
$keystone_region_name = $::os_service_default, $keystone_region_name = $facts['os_service_default'],
$manage_domain = true, $manage_domain = true,
$manage_user = true, $manage_user = true,
$manage_role = true, $manage_role = true,

View File

@ -29,7 +29,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
@ -38,20 +38,20 @@
# [*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'].
# #
# [*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. # against any certificate authorities.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class magnum::keystone::keystone_auth( class magnum::keystone::keystone_auth(
$password, $password,
@ -60,12 +60,12 @@ class magnum::keystone::keystone_auth(
$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',
$cafile = $::os_service_default, $cafile = $facts['os_service_default'],
$keyfile = $::os_service_default, $keyfile = $facts['os_service_default'],
$certfile = $::os_service_default, $certfile = $facts['os_service_default'],
$insecure = $::os_service_default, $insecure = $facts['os_service_default'],
) { ) {
include magnum::deps include magnum::deps
@ -74,8 +74,8 @@ class magnum::keystone::keystone_auth(
$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']
} }
magnum_config { magnum_config {

View File

@ -6,27 +6,27 @@
# #
# [*debug*] # [*debug*]
# (Optional) Should the daemons log debug messages # (Optional) Should the daemons log debug messages
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*use_syslog*] # [*use_syslog*]
# (Optional) Use syslog for logging. # (Optional) Use syslog for logging.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*use_json*] # [*use_json*]
# (Optional) Use json for logging. # (Optional) Use json for logging.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*use_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.
@ -35,42 +35,42 @@
# #
# [*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', # 'sqlalchemy' => 'WARN', 'suds' => 'INFO',
@ -82,50 +82,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 magnum::logging( class magnum::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/magnum', $log_dir = '/var/log/magnum',
$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 magnum::deps include magnum::deps

View File

@ -8,7 +8,7 @@ class magnum::params {
$user = 'magnum' $user = 'magnum'
$group = 'magnum' $group = 'magnum'
case $::osfamily { case $facts['os']['family'] {
'RedHat': { 'RedHat': {
# package names # package names
$common_package = 'openstack-magnum-common' $common_package = 'openstack-magnum-common'
@ -34,8 +34,8 @@ class magnum::params {
$wsgi_script_source = '/usr/bin/magnum-api-wsgi' $wsgi_script_source = '/usr/bin/magnum-api-wsgi'
} }
default: { default: {
fail("Unsupported osfamily: ${::osfamily} operatingsystem") fail("Unsupported osfamily: ${facts['os']['family']}")
} }
} # Case $::osfamily } # Case $facts['os']['family']
} }

View File

@ -6,12 +6,12 @@
# #
# [*enforce_scope*] # [*enforce_scope*]
# (Optional) Whether or not to enforce scope when evaluating policies. # (Optional) Whether or not to enforce scope when evaluating policies.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*enforce_new_defaults*] # [*enforce_new_defaults*]
# (Optional) Whether or not to use old deprecated defaults when evaluating # (Optional) Whether or not to use old deprecated defaults when evaluating
# policies. # policies.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*policies*] # [*policies*]
# (Optional) Set of policies to configure for magnum # (Optional) Set of policies to configure for magnum
@ -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 magnum policy folder # (Optional) Path to the magnum 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 magnum::policy ( class magnum::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/magnum/policy.yaml', $policy_path = '/etc/magnum/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,10 +6,10 @@
# #
# [*max_clusters_per_project*] # [*max_clusters_per_project*]
# (optional) Number of clusters allowed per project. # (optional) Number of clusters allowed per project.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
class magnum::quota ( class magnum::quota (
$max_clusters_per_project = $::os_service_default $max_clusters_per_project = $facts['os_service_default']
) { ) {
magnum_config { magnum_config {

View File

@ -23,7 +23,7 @@
# #
# [*servername*] # [*servername*]
# (Optional) The servername for the virtualhost. # (Optional) The servername for the virtualhost.
# Defaults to $::fqdn # Defaults to $facts['networking']['fqdn']
# #
# [*port*] # [*port*]
# (Optional) The port. # (Optional) The port.
@ -43,7 +43,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.
@ -119,12 +119,12 @@
# class { 'magnum::wsgi::apache': } # class { 'magnum::wsgi::apache': }
# #
class magnum::wsgi::apache ( class magnum::wsgi::apache (
$servername = $::fqdn, $servername = $facts['networking']['fqdn'],
$port = 9511, $port = 9511,
$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 magnum::wsgi::uwsgi ( class magnum::wsgi::uwsgi (
$processes = $::os_workers, $processes = $facts['os_workers'],
$threads = 32, $threads = 32,
$listen_queue_size = 100, $listen_queue_size = 100,
){ ){
include magnum::deps include magnum::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

@ -6,30 +6,30 @@
# #
# [*allow_ca*] # [*allow_ca*]
# (optional) Certificate can get the CA flag in x509 extensions. # (optional) Certificate can get the CA flag in x509 extensions.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*allowed_extensions*] # [*allowed_extensions*]
# (optional) List of allowed x509 extensions. # (optional) List of allowed x509 extensions.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*allowed_key_usage*] # [*allowed_key_usage*]
# (optional) List of allowed x509 key usage. # (optional) List of allowed x509 key usage.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*term_of_validity*] # [*term_of_validity*]
# (optional) Number of days for which a certificate is valid. # (optional) Number of days for which a certificate is valid.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rsa_key_size*] # [*rsa_key_size*]
# (optional) Size of generated private key. # (optional) Size of generated private key.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class magnum::x509 ( class magnum::x509 (
$allow_ca = $::os_service_default, $allow_ca = $facts['os_service_default'],
$allowed_extensions = $::os_service_default, $allowed_extensions = $facts['os_service_default'],
$allowed_key_usage = $::os_service_default, $allowed_key_usage = $facts['os_service_default'],
$term_of_validity = $::os_service_default, $term_of_validity = $facts['os_service_default'],
$rsa_key_size = $::os_service_default, $rsa_key_size = $facts['os_service_default'],
) { ) {
include magnum::deps include magnum::deps

View File

@ -145,7 +145,7 @@ describe 'magnum::api' do
end end
let(:platform_params) do let(:platform_params) do
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
{ :api_package => 'magnum-api', { :api_package => 'magnum-api',
:api_service => 'magnum-api' } :api_service => 'magnum-api' }

View File

@ -23,7 +23,7 @@ describe 'magnum::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-magnumclient' } { :client_package_name => 'python3-magnumclient' }
when 'RedHat' when 'RedHat'

View File

@ -63,7 +63,7 @@ describe 'magnum::conductor' do
end end
let :platform_params do let :platform_params do
if facts[:osfamily] == 'Debian' if facts[:os]['family'] == 'Debian'
{ :conductor_package => 'magnum-conductor', { :conductor_package => 'magnum-conductor',
:conductor_service => 'magnum-conductor' } :conductor_service => 'magnum-conductor' }
else else

View File

@ -235,7 +235,7 @@ describe 'magnum' do
end end
let :platform_params do let :platform_params do
if facts[:osfamily] == 'Debian' if facts[:os]['family'] == 'Debian'
{ :magnum_common_package => 'magnum-common' } { :magnum_common_package => 'magnum-common' }
else else
{ :magnum_common_package => 'openstack-magnum-common' } { :magnum_common_package => 'openstack-magnum-common' }

View File

@ -10,7 +10,7 @@ describe 'magnum::wsgi::apache' do
:group => 'magnum', :group => 'magnum',
:path => '/', :path => '/',
:priority => 10, :priority => 10,
:servername => facts[:fqdn], :servername => 'foo.example.com',
:ssl => false, :ssl => false,
:threads => 1, :threads => 1,
:user => 'magnum', :user => 'magnum',
@ -146,13 +146,11 @@ describe 'magnum::wsgi::apache' do
let (:facts) do let (:facts) do
facts.merge!(OSDefaults.get_facts({ facts.merge!(OSDefaults.get_facts({
:os_workers => 8, :os_workers => 8,
: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/magnum', :wsgi_script_path => '/usr/lib/cgi-bin/magnum',