Replace legacy facts and use fact hash

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

Change-Id: Ica6edbc7077c0bb2021cc737f44f3ced84cd5f83
This commit is contained in:
Takashi Kajinami 2023-03-01 16:05:28 +09:00
parent bf0a7eca61
commit dd44ce031e
38 changed files with 382 additions and 386 deletions

View File

@ -27,15 +27,15 @@
# #
# [*workers*] # [*workers*]
# (optional) Number of agent worker process to spawn # (optional) Number of agent worker process to spawn
# Defaults to $::os_workers # Defaults to $facts['os_workers']
# #
# [*threads*] # [*threads*]
# (optional) Number of agent greenthreads to spawn # (optional) Number of agent greenthreads to spawn
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*listen*] # [*listen*]
# (optional) Agent host:port pairs to listen on. # (optional) Agent host:port pairs to listen on.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class designate::agent ( class designate::agent (
$package_ensure = present, $package_ensure = present,
@ -43,9 +43,9 @@ class designate::agent (
$enabled = true, $enabled = true,
$manage_service = true, $manage_service = true,
$backend_driver = 'bind9', $backend_driver = 'bind9',
$workers = $::os_workers, $workers = $facts['os_workers'],
$threads = $::os_service_default, $threads = $facts['os_service_default'],
$listen = $::os_service_default, $listen = $facts['os_service_default'],
) inherits designate::params { ) inherits designate::params {
include designate::deps include designate::deps

View File

@ -7,7 +7,7 @@
# #
# [*rndc_host*] # [*rndc_host*]
# (Optional) RNDC Host # (Optional) RNDC Host
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*rndc_port*] # [*rndc_port*]
# (Optional) RNDC Port. # (Optional) RNDC Port.
@ -23,24 +23,24 @@
# #
# [*rndc_timeout*] # [*rndc_timeout*]
# (Optional) RNDC command timeout. # (Optional) RNDC command timeout.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*zone_file_path*] # [*zone_file_path*]
# (Optional) Path where zone files are stored. # (Optional) Path where zone files are stored.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*query_destination*] # [*query_destination*]
# (Optional) Host to query when finding zones. # (Optional) Host to query when finding zones.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
class designate::agent::bind9 ( class designate::agent::bind9 (
$rndc_host = $::os_service_default, $rndc_host = $facts['os_service_default'],
$rndc_port = $::os_service_default, $rndc_port = $facts['os_service_default'],
$rndc_config_file = '/etc/rndc.conf', $rndc_config_file = '/etc/rndc.conf',
$rndc_key_file = '/etc/rndc.key', $rndc_key_file = '/etc/rndc.key',
$rndc_timeout = $::os_service_default, $rndc_timeout = $facts['os_service_default'],
$zone_file_path = $::os_service_default, $zone_file_path = $facts['os_service_default'],
$query_destination = $::os_service_default, $query_destination = $facts['os_service_default'],
) { ) {
include designate::deps include designate::deps

View File

@ -23,76 +23,76 @@
# [*auth_strategy*] # [*auth_strategy*]
# (optional) Authentication strategy to use, can be either "noauth" or # (optional) Authentication strategy to use, can be either "noauth" or
# "keystone". # "keystone".
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*enable_api_v2*] # [*enable_api_v2*]
# (optional) Enable Designate API Version 2. # (optional) Enable Designate API Version 2.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*enable_api_admin*] # [*enable_api_admin*]
# (optional) Enable Designate Admin API. # (optional) Enable Designate Admin API.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*api_base_uri*] # [*api_base_uri*]
# Set the base URI of the Designate API service. # Set the base URI of the Designate API service.
# #
# [*listen*] # [*listen*]
# (optional) API host:port pairs to listen on. # (optional) API host:port pairs to listen on.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*workers*] # [*workers*]
# (optional) Number of api worker processes to spawn. # (optional) Number of api worker processes to spawn.
# Defaults to $::os_workers # Defaults to $facts['os_workers']
# #
# [*threads*] # [*threads*]
# (optional) Number of api greenthreads to spawn. # (optional) Number of api greenthreads to spawn.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*enable_host_header*] # [*enable_host_header*]
# (optional) Enable host request headers. # (optional) Enable host request headers.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_header_line*] # [*max_header_line*]
# (optional) Maximum line size of message headers to be accepted. # (optional) Maximum line size of message headers to be accepted.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*default_limit_admin*] # [*default_limit_admin*]
# (optional) Default per-page limit for the Admin API. # (optional) Default per-page limit for the Admin API.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_limit_admin*] # [*max_limit_admin*]
# (optional) Max page size in the Admin API. # (optional) Max page size in the Admin API.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*default_limit_v2*] # [*default_limit_v2*]
# (optional) Default per-page limit for the V2 API. # (optional) Default per-page limit for the V2 API.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_limit_v2*] # [*max_limit_v2*]
# (optional) Max page size in the V2 API. # (optional) Max page size in the V2 API.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*pecan_debug*] # [*pecan_debug*]
# (optional) Show the pecan HTML based debug interface (v2 only). # (optional) Show the pecan HTML based debug interface (v2 only).
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*enabled_extensions_v2*] # [*enabled_extensions_v2*]
# (optional) API Version 2 extensions. # (optional) API Version 2 extensions.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*enabled_extensions_admin*] # [*enabled_extensions_admin*]
# (optional) Admin API extensions. # (optional) Admin API extensions.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*quotas_verify_project_id*] # [*quotas_verify_project_id*]
# (Optional) Verify that the requested Project ID for quota target is # (Optional) Verify that the requested Project ID for quota target is
# a valid project in Keystone. # a valid project in Keystone.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*enable_proxy_headers_parsing*] # [*enable_proxy_headers_parsing*]
# (Optional) Enable paste middleware to handle SSL requests through # (Optional) Enable paste middleware to handle SSL requests through
# HTTPProxyToWSGI middleware. # HTTPProxyToWSGI middleware.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*service_name*] # [*service_name*]
# (Optional) Name of the service that will be providing the server # (Optional) Name of the service that will be providing the server
@ -106,24 +106,24 @@ class designate::api (
$api_package_name = $::designate::params::api_package_name, $api_package_name = $::designate::params::api_package_name,
$enabled = true, $enabled = true,
$manage_service = true, $manage_service = true,
$auth_strategy = $::os_service_default, $auth_strategy = $facts['os_service_default'],
$enable_api_v2 = $::os_service_default, $enable_api_v2 = $facts['os_service_default'],
$enable_api_admin = $::os_service_default, $enable_api_admin = $facts['os_service_default'],
$api_base_uri = $::os_service_default, $api_base_uri = $facts['os_service_default'],
$listen = $::os_service_default, $listen = $facts['os_service_default'],
$workers = $::os_workers, $workers = $facts['os_workers'],
$threads = $::os_service_default, $threads = $facts['os_service_default'],
$enable_host_header = $::os_service_default, $enable_host_header = $facts['os_service_default'],
$max_header_line = $::os_service_default, $max_header_line = $facts['os_service_default'],
$default_limit_admin = $::os_service_default, $default_limit_admin = $facts['os_service_default'],
$max_limit_admin = $::os_service_default, $max_limit_admin = $facts['os_service_default'],
$default_limit_v2 = $::os_service_default, $default_limit_v2 = $facts['os_service_default'],
$max_limit_v2 = $::os_service_default, $max_limit_v2 = $facts['os_service_default'],
$pecan_debug = $::os_service_default, $pecan_debug = $facts['os_service_default'],
$enabled_extensions_v2 = $::os_service_default, $enabled_extensions_v2 = $facts['os_service_default'],
$enabled_extensions_admin = $::os_service_default, $enabled_extensions_admin = $facts['os_service_default'],
$quotas_verify_project_id = $::os_service_default, $quotas_verify_project_id = $facts['os_service_default'],
$enable_proxy_headers_parsing = $::os_service_default, $enable_proxy_headers_parsing = $facts['os_service_default'],
$service_name = $::designate::params::api_service_name, $service_name = $::designate::params::api_service_name,
) inherits designate { ) inherits designate {

View File

@ -26,36 +26,36 @@
# #
# [*managed_resource_tenant_id*] # [*managed_resource_tenant_id*]
# (optional) Tenant ID to own all managed resources - like auto-created records etc. # (optional) Tenant ID to own all managed resources - like auto-created records etc.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_zone_name_len*] # [*max_zone_name_len*]
# (optional) Maximum zone name length. # (optional) Maximum zone name length.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*max_recordset_name_len*] # [*max_recordset_name_len*]
# (optional) Maximum record name length. # (optional) Maximum record name length.
# warning('The max_record_name_len parameter is deprecated, use max_recordset_name_len instead.') # warning('The max_record_name_len parameter is deprecated, use max_recordset_name_len instead.')
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*min_ttl*] # [*min_ttl*]
# (optional) Minimum TTL. # (optional) Minimum TTL.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*workers*] # [*workers*]
# (optional) Number of central worker processes to spawn. # (optional) Number of central worker processes to spawn.
# Defaults to $::os_workers # Defaults to $facts['os_workers']
# #
# [*threads*] # [*threads*]
# (optional) Number of central greenthreads to spawn. # (optional) Number of central greenthreads to spawn.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*default_pool_id*] # [*default_pool_id*]
# (optional) The name of the default pool. # (optional) The name of the default pool.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*scheduler_filters*] # [*scheduler_filters*]
# (optional) Enabled pool scheduling filters. # (optional) Enabled pool scheduling filters.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class designate::central ( class designate::central (
$package_ensure = present, $package_ensure = present,
@ -63,14 +63,14 @@ class designate::central (
$enabled = true, $enabled = true,
$manage_service = true, $manage_service = true,
$managed_resource_email = 'hostmaster@example.com', $managed_resource_email = 'hostmaster@example.com',
$managed_resource_tenant_id = $::os_service_default, $managed_resource_tenant_id = $facts['os_service_default'],
$max_zone_name_len = $::os_service_default, $max_zone_name_len = $facts['os_service_default'],
$max_recordset_name_len = $::os_service_default, $max_recordset_name_len = $facts['os_service_default'],
$min_ttl = $::os_service_default, $min_ttl = $facts['os_service_default'],
$workers = $::os_workers, $workers = $facts['os_workers'],
$threads = $::os_service_default, $threads = $facts['os_service_default'],
$default_pool_id = $::os_service_default, $default_pool_id = $facts['os_service_default'],
$scheduler_filters = $::os_service_default, $scheduler_filters = $facts['os_service_default'],
) inherits designate::params { ) inherits designate::params {
include designate::deps include designate::deps

View File

@ -6,22 +6,22 @@
# #
# [*backend_url*] # [*backend_url*]
# (Optional) Coordination backend URL. # (Optional) Coordination backend URL.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*heartbeat_interval*] # [*heartbeat_interval*]
# (Optional) Number of seconds between heartbeats for distributed # (Optional) Number of seconds between heartbeats for distributed
# coordination. # coordination.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*run_watchers_interval*] # [*run_watchers_interval*]
# (Optional) Number of seconds between checks to see if group membership # (Optional) Number of seconds between checks to see if group membership
# has changed. # has changed.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class designate::coordination ( class designate::coordination (
$backend_url = $::os_service_default, $backend_url = $facts['os_service_default'],
$heartbeat_interval = $::os_service_default, $heartbeat_interval = $facts['os_service_default'],
$run_watchers_interval = $::os_service_default, $run_watchers_interval = $facts['os_service_default'],
) { ) {
include designate::deps include designate::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 designate::cors ( class designate::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 designate::deps include designate::deps

View File

@ -10,7 +10,7 @@
# [*database_db_max_retries*] # [*database_db_max_retries*]
# (optional) Maximum retries in case of connection error or deadlock error # (optional) Maximum retries in case of connection error or deadlock error
# before error is raised. Set to -1 to specify an infinite retry count. # before error is raised. Set to -1 to specify an infinite retry count.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*database_connection*] # [*database_connection*]
# Url used to connect to database. # Url used to connect to database.
@ -18,7 +18,7 @@
# #
# [*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.
@ -39,27 +39,27 @@
# #
# [*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']
# #
# [*sync_db*] # [*sync_db*]
# (Optional) Run db sync on nodes after connection setting has been set. # (Optional) Run db sync on nodes after connection setting has been set.
# Defaults to true # Defaults to true
# #
class designate::db ( class designate::db (
$database_db_max_retries = $::os_service_default, $database_db_max_retries = $facts['os_service_default'],
$database_connection = 'mysql://designate:designate@localhost/designate', $database_connection = 'mysql://designate:designate@localhost/designate',
$database_max_pool_size = $::os_service_default, $database_max_pool_size = $facts['os_service_default'],
$database_connection_recycle_time = $::os_service_default, $database_connection_recycle_time = $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'],
$sync_db = true, $sync_db = true,
) { ) {

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 designate::healthcheck ( class designate::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 designate::deps include designate::deps

View File

@ -14,7 +14,7 @@
# #
# [*host*] # [*host*]
# (Optional) Name of this node. # (Optional) Name of this node.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*root_helper*] # [*root_helper*]
# (optional) Command for designate rootwrap helper. # (optional) Command for designate rootwrap helper.
@ -28,31 +28,31 @@
# (optional) A URL representing the messaging driver to use and its full # (optional) A URL representing the messaging driver to use and its full
# configuration. Transport URLs take the form: # configuration. Transport URLs take the form:
# transport://user:pass@host1:port[,hostN:portN]/virtual_host # transport://user:pass@host1:port[,hostN:portN]/virtual_host
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rpc_response_timeout*] # [*rpc_response_timeout*]
# (Optional) Seconds to wait for a response from a call. # (Optional) Seconds to wait for a response from a call.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*control_exchange*] # [*control_exchange*]
# (Optional) The default exchange under which topics are scoped. May be # (Optional) The default exchange under which topics are scoped. May be
# overridden by an exchange name specified in the transport_url # overridden by an exchange name specified in the transport_url
# option. # option.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*notification_transport_url*] # [*notification_transport_url*]
# (optional) Connection url for oslo messaging notification backend. An # (optional) Connection url for oslo messaging notification backend. An
# example rabbit url would be, rabbit://user:pass@host:port/virtual_host # example rabbit url would be, rabbit://user:pass@host:port/virtual_host
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rabbit_use_ssl*] # [*rabbit_use_ssl*]
# (optional) Connect over SSL for RabbitMQ # (optional) Connect over SSL for RabbitMQ
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rabbit_ha_queues*] # [*rabbit_ha_queues*]
# (optional) Use HA queues in RabbitMQ (x-ha-policy: all). If you change this # (optional) Use HA queues in RabbitMQ (x-ha-policy: all). If you change this
# option, you must wipe the RabbitMQ database. (boolean value). # option, you must wipe the RabbitMQ database. (boolean value).
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*rabbit_heartbeat_in_pthread*] # [*rabbit_heartbeat_in_pthread*]
# (Optional) EXPERIMENTAL: Run the health check heartbeat thread # (Optional) EXPERIMENTAL: Run the health check heartbeat thread
@ -62,36 +62,36 @@
# 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']
# #
# [*kombu_ssl_ca_certs*] # [*kombu_ssl_ca_certs*]
# (optional) SSL certification authority file (valid only if SSL enabled). # (optional) SSL certification authority file (valid only if SSL enabled).
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*kombu_ssl_certfile*] # [*kombu_ssl_certfile*]
# (optional) SSL cert file (valid only if SSL enabled). # (optional) SSL cert file (valid only if SSL enabled).
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*kombu_ssl_keyfile*] # [*kombu_ssl_keyfile*]
# (optional) SSL key file (valid only if SSL enabled). # (optional) SSL key file (valid only if SSL enabled).
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*kombu_ssl_version*] # [*kombu_ssl_version*]
# (optional) SSL version to use (valid only if SSL enabled). # (optional) SSL version to use (valid only if SSL enabled).
# Valid values are TLSv1, SSLv23 and SSLv3. SSLv2 may be # Valid values are TLSv1, SSLv23 and SSLv3. SSLv2 may be
# available on some distributions. # available on some distributions.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*kombu_reconnect_delay*] # [*kombu_reconnect_delay*]
# (optional) How long to wait before reconnecting in response to an AMQP # (optional) How long to wait before reconnecting in response to an AMQP
# consumer cancel notification. # consumer cancel notification.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*kombu_failover_strategy*] # [*kombu_failover_strategy*]
# (Optional) Determines how the next RabbitMQ node is chosen in case the one # (Optional) Determines how the next RabbitMQ node is chosen in case the one
# we are currently connected to becomes unavailable. Takes effect only if # we are currently connected to becomes unavailable. Takes effect only if
# more than one RabbitMQ node is provided in config. (string value) # more than one RabbitMQ node is provided in config. (string value)
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*notification_driver*] # [*notification_driver*]
# (optional) Driver used for issuing notifications # (optional) Driver used for issuing notifications
@ -99,7 +99,7 @@
# #
# [*notification_topics*] # [*notification_topics*]
# (optional) Notification Topics # (optional) Notification Topics
# 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
@ -108,41 +108,41 @@
# #
# [*amqp_durable_queues*] # [*amqp_durable_queues*]
# (optional) Whether to use durable queues in AMQP. # (optional) Whether to use durable queues in AMQP.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*default_ttl*] # [*default_ttl*]
# (Optional) TTL Value. # (Optional) TTL Value.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*supported_record_type*] # [*supported_record_type*]
# (Optional) Supported record types. # (Optional) Supported record types.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
class designate( class designate(
$package_ensure = present, $package_ensure = present,
$common_package_name = $::designate::params::common_package_name, $common_package_name = $::designate::params::common_package_name,
$host = $::os_service_default, $host = $facts['os_service_default'],
$root_helper = 'sudo designate-rootwrap /etc/designate/rootwrap.conf', $root_helper = 'sudo designate-rootwrap /etc/designate/rootwrap.conf',
$state_path = $::designate::params::state_path, $state_path = $::designate::params::state_path,
$notification_transport_url = $::os_service_default, $notification_transport_url = $facts['os_service_default'],
$rabbit_use_ssl = $::os_service_default, $rabbit_use_ssl = $facts['os_service_default'],
$rabbit_ha_queues = $::os_service_default, $rabbit_ha_queues = $facts['os_service_default'],
$rabbit_heartbeat_in_pthread = $::os_service_default, $rabbit_heartbeat_in_pthread = $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'],
$notification_driver = 'messaging', $notification_driver = 'messaging',
$default_transport_url = $::os_service_default, $default_transport_url = $facts['os_service_default'],
$rpc_response_timeout = $::os_service_default, $rpc_response_timeout = $facts['os_service_default'],
$control_exchange = $::os_service_default, $control_exchange = $facts['os_service_default'],
$notification_topics = $::os_service_default, $notification_topics = $facts['os_service_default'],
$purge_config = false, $purge_config = false,
$amqp_durable_queues = $::os_service_default, $amqp_durable_queues = $facts['os_service_default'],
$default_ttl = $::os_service_default, $default_ttl = $facts['os_service_default'],
$supported_record_type = $::os_service_default, $supported_record_type = $facts['os_service_default'],
) inherits designate::params { ) inherits designate::params {
include designate::deps include designate::deps

View File

@ -6,55 +6,55 @@
# #
# [*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']
# #
# [*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']
# #
# [*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']
# #
# [*connect_retries*] # [*connect_retries*]
# (Optional) The maximum number o retries that should be attempted for # (Optional) The maximum number o retries that should be attempted for
# connection errors. # connection errors.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*connect_retry_delay*] # [*connect_retry_delay*]
# (Optional) Delay (in seconds) between two retries that should be attempted # (Optional) Delay (in seconds) between two retries that should be attempted
# for connection errors. # for connection errors.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*status_code_retries*] # [*status_code_retries*]
# (Optional) The maximum number of retries that should be attempted for # (Optional) The maximum number of retries that should be attempted for
# retriable HTTP status codes. # retriable HTTP status codes.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*status_code_retry_delay*] # [*status_code_retry_delay*]
# (Optional) Delay (in seconds) between two retries for retriable status # (Optional) Delay (in seconds) between two retries for retriable status
# codes. # codes.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class designate::keystone ( class designate::keystone (
$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'],
$connect_retries = $::os_service_default, $connect_retries = $facts['os_service_default'],
$connect_retry_delay = $::os_service_default, $connect_retry_delay = $facts['os_service_default'],
$status_code_retries = $::os_service_default, $status_code_retries = $facts['os_service_default'],
$status_code_retry_delay = $::os_service_default, $status_code_retry_delay = $facts['os_service_default'],
) { ) {
include designate::deps include designate::deps

View File

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

View File

@ -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 $::designate::params::log_dir # Defaults to $::designate::params::log_dir
# #
# [*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 designate::logging( class designate::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 = $::designate::params::log_dir, $log_dir = $::designate::params::log_dir,
$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'],
) inherits designate::params { ) inherits designate::params {
include designate::deps include designate::deps

View File

@ -22,64 +22,64 @@
# #
# [*workers*] # [*workers*]
# (Optional) Number of mdns worker processes to spawn. # (Optional) Number of mdns worker processes to spawn.
# Defaults to $::os_workers. # Defaults to $facts['os_workers'].
# #
# [*threads*] # [*threads*]
# (Optional) Number of mdns greenthreads to spawn. # (Optional) Number of mdns greenthreads to spawn.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*tcp_backlog*] # [*tcp_backlog*]
# (Optional) mDNS TCP Backlog. # (Optional) mDNS TCP Backlog.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*tcp_recv_timeout*] # [*tcp_recv_timeout*]
# (Optional) mDNS TCP Receive Timeout. # (Optional) mDNS TCP Receive Timeout.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*all_tcp*] # [*all_tcp*]
# (Optional) Send all traffic over TCP. # (Optional) Send all traffic over TCP.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*query_enforce_tsig*] # [*query_enforce_tsig*]
# (Optional) Enforce all incoming queries (including AXFR) are TSIG signed. # (Optional) Enforce all incoming queries (including AXFR) are TSIG signed.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*storage_driver*] # [*storage_driver*]
# (Optional) The storage driver to use. # (Optional) The storage driver to use.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*max_message_size*] # [*max_message_size*]
# (Optional) Maximum message size to emit. # (Optional) Maximum message size to emit.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*listen*] # [*listen*]
# (Optional) mDNS host:port pairs to listen on. # (Optional) mDNS host:port pairs to listen on.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*topic*] # [*topic*]
# (Optional) RPC topic name for mdns. # (Optional) RPC topic name for mdns.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*xfr_timeout*] # [*xfr_timeout*]
# (Optional) Timeout in seconds for XFR's. # (Optional) Timeout in seconds for XFR's.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
class designate::mdns ( class designate::mdns (
$package_ensure = present, $package_ensure = present,
$mdns_package_name = $::designate::params::mdns_package_name, $mdns_package_name = $::designate::params::mdns_package_name,
$enabled = true, $enabled = true,
$manage_service = true, $manage_service = true,
$workers = $::os_workers, $workers = $facts['os_workers'],
$threads = $::os_service_default, $threads = $facts['os_service_default'],
$tcp_backlog = $::os_service_default, $tcp_backlog = $facts['os_service_default'],
$tcp_recv_timeout = $::os_service_default, $tcp_recv_timeout = $facts['os_service_default'],
$all_tcp = $::os_service_default, $all_tcp = $facts['os_service_default'],
$query_enforce_tsig = $::os_service_default, $query_enforce_tsig = $facts['os_service_default'],
$storage_driver = $::os_service_default, $storage_driver = $facts['os_service_default'],
$max_message_size = $::os_service_default, $max_message_size = $facts['os_service_default'],
$listen = $::os_service_default, $listen = $facts['os_service_default'],
$topic = $::os_service_default, $topic = $facts['os_service_default'],
$xfr_timeout = $::os_service_default, $xfr_timeout = $facts['os_service_default'],
) inherits designate::params { ) inherits designate::params {
include designate::deps include designate::deps

View File

@ -6,20 +6,20 @@
# #
# [*endpoints*] # [*endpoints*]
# (Optional) URL to use. Format: <retion>|<url> # (Optional) URL to use. Format: <retion>|<url>
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*endpoint_type*] # [*endpoint_type*]
# (Optional) Endpoint type to use # (Optional) Endpoint type to use
# 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.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
class designate::network_api::neutron ( class designate::network_api::neutron (
$endpoints = $::os_service_default, $endpoints = $facts['os_service_default'],
$endpoint_type = $::os_service_default, $endpoint_type = $facts['os_service_default'],
$timeout = $::os_service_default, $timeout = $facts['os_service_default'],
) { ) {
include designate::deps include designate::deps
include designate::params include designate::params

View File

@ -18,7 +18,7 @@ class designate::params {
$group = 'designate' $group = 'designate'
$user = 'designate' $user = 'designate'
case $::osfamily { case $facts['os']['family'] {
'RedHat': { 'RedHat': {
# package name # package name
$common_package_name = 'openstack-designate-common' $common_package_name = 'openstack-designate-common'
@ -46,7 +46,7 @@ class designate::params {
$designate_wsgi_script_source = '/usr/bin/designate-api-wsgi' $designate_wsgi_script_source = '/usr/bin/designate-api-wsgi'
} }
default: { default: {
fail("Unsupported osfamily: ${::osfamily} operatingsystem") fail("Unsupported osfamily: ${facts['os']['family']}")
} }
} }
} }

View File

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

@ -22,24 +22,24 @@
# #
# [*workers*] # [*workers*]
# (optional) Number of workers to spawn. # (optional) Number of workers to spawn.
# Defaults to $::os_workers. # Defaults to $facts['os_workers'].
# #
# [*threads*] # [*threads*]
# (optional) Number of greenthreads to spawn # (optional) Number of greenthreads to spawn
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
# [*enabled_tasks*] # [*enabled_tasks*]
# (optional) List of tasks to enable, the default enables all tasks. # (optional) List of tasks to enable, the default enables all tasks.
# Defaults to $::os_service_default. # Defaults to $facts['os_service_default'].
# #
class designate::producer ( class designate::producer (
$package_ensure = 'present', $package_ensure = 'present',
$package_name = $::designate::params::producer_package_name, $package_name = $::designate::params::producer_package_name,
$enabled = true, $enabled = true,
$manage_service = true, $manage_service = true,
$workers = $::os_workers, $workers = $facts['os_workers'],
$threads = $::os_service_default, $threads = $facts['os_service_default'],
$enabled_tasks = $::os_service_default, $enabled_tasks = $facts['os_service_default'],
) inherits designate::params { ) inherits designate::params {
designate_config { designate_config {

View File

@ -6,20 +6,20 @@
# #
# [*interval*] # [*interval*]
# (optional) Run interval in seconds. # (optional) Run interval in seconds.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*per_page*] # [*per_page*]
# (optional) Default amount of results returned per page. # (optional) Default amount of results returned per page.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*batch_size*] # [*batch_size*]
# (optional) How many zones to receive NOTIFY on each run. # (optional) How many zones to receive NOTIFY on each run.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class designate::producer_task::delayed_notify ( class designate::producer_task::delayed_notify (
$interval = $::os_service_default, $interval = $facts['os_service_default'],
$per_page = $::os_service_default, $per_page = $facts['os_service_default'],
$batch_size = $::os_service_default, $batch_size = $facts['os_service_default'],
) { ) {
include designate::deps include designate::deps

View File

@ -6,15 +6,15 @@
# #
# [*interval*] # [*interval*]
# (optional) Run interval in seconds. # (optional) Run interval in seconds.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*per_page*] # [*per_page*]
# (optional) Default amount of results returned per page. # (optional) Default amount of results returned per page.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class designate::producer_task::periodic_exists ( class designate::producer_task::periodic_exists (
$interval = $::os_service_default, $interval = $facts['os_service_default'],
$per_page = $::os_service_default, $per_page = $facts['os_service_default'],
) { ) {
include designate::deps include designate::deps

View File

@ -6,15 +6,15 @@
# #
# [*interval*] # [*interval*]
# (optional) Run interval in seconds. # (optional) Run interval in seconds.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*per_page*] # [*per_page*]
# (optional) Default amount of results returned per page. # (optional) Default amount of results returned per page.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class designate::producer_task::periodic_secondary_refresh ( class designate::producer_task::periodic_secondary_refresh (
$interval = $::os_service_default, $interval = $facts['os_service_default'],
$per_page = $::os_service_default, $per_page = $facts['os_service_default'],
) { ) {
include designate::deps include designate::deps

View File

@ -6,15 +6,15 @@
# #
# [*interval*] # [*interval*]
# (optional) Run interval in seconds. # (optional) Run interval in seconds.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*per_page*] # [*per_page*]
# (optional) Default amount of results returned per page. # (optional) Default amount of results returned per page.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class designate::producer_task::worker_periodic_recovery ( class designate::producer_task::worker_periodic_recovery (
$interval = $::os_service_default, $interval = $facts['os_service_default'],
$per_page = $::os_service_default, $per_page = $facts['os_service_default'],
) { ) {
include designate::deps include designate::deps

View File

@ -6,26 +6,26 @@
# #
# [*interval*] # [*interval*]
# (optional) Run interval in seconds. # (optional) Run interval in seconds.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*per_page*] # [*per_page*]
# (optional) Default amount of results returned per page. # (optional) Default amount of results returned per page.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*time_threshold*] # [*time_threshold*]
# (optional) How old deleted zones should be (deleted_at) to be purged, in # (optional) How old deleted zones should be (deleted_at) to be purged, in
# seconds. # seconds.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*batch_size*] # [*batch_size*]
# (optional) How many zones to receive NOTIFY on each run. # (optional) How many zones to receive NOTIFY on each run.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class designate::producer_task::zone_purge ( class designate::producer_task::zone_purge (
$interval = $::os_service_default, $interval = $facts['os_service_default'],
$per_page = $::os_service_default, $per_page = $facts['os_service_default'],
$time_threshold = $::os_service_default, $time_threshold = $facts['os_service_default'],
$batch_size = $::os_service_default, $batch_size = $facts['os_service_default'],
) { ) {
include designate::deps include designate::deps

View File

@ -6,35 +6,35 @@
# #
# [*quota_api_export_size*] # [*quota_api_export_size*]
# (optional) size of api export # (optional) size of api export
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*quota_zone_records*] # [*quota_zone_records*]
# (optional) records per zone # (optional) records per zone
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*quota_zone_recordsets*] # [*quota_zone_recordsets*]
# (optional) recordsets per zone # (optional) recordsets per zone
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*quota_zones*] # [*quota_zones*]
# (optional) zones per project # (optional) zones per project
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*quota_driver*] # [*quota_driver*]
# (optional) storage driver to use # (optional) storage driver to use
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*quota_recordset_records*] # [*quota_recordset_records*]
# (optional) recordsets per record # (optional) recordsets per record
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class designate::quota ( class designate::quota (
$quota_api_export_size = $::os_service_default, $quota_api_export_size = $facts['os_service_default'],
$quota_zone_records = $::os_service_default, $quota_zone_records = $facts['os_service_default'],
$quota_zone_recordsets = $::os_service_default, $quota_zone_recordsets = $facts['os_service_default'],
$quota_zones = $::os_service_default, $quota_zones = $facts['os_service_default'],
$quota_driver = $::os_service_default, $quota_driver = $facts['os_service_default'],
$quota_recordset_records = $::os_service_default, $quota_recordset_records = $facts['os_service_default'],
) { ) {
include designate::deps include designate::deps

View File

@ -22,26 +22,26 @@
# #
# [*workers*] # [*workers*]
# (optional) Number of sink worker processes to spawn. # (optional) Number of sink worker processes to spawn.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*threads*] # [*threads*]
# (optional) Number of sink greenthreads to spawn. # (optional) Number of sink greenthreads to spawn.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*enabled_notification_handlers*] # [*enabled_notification_handlers*]
# (optional) List of notification handlers to enable, configuration of # (optional) List of notification handlers to enable, configuration of
# these needs to correspond to a [handler:my_driver] section below or # these needs to correspond to a [handler:my_driver] section below or
# else in the config. # else in the config.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class designate::sink ( class designate::sink (
$package_ensure = present, $package_ensure = present,
$sink_package_name = $::designate::params::sink_package_name, $sink_package_name = $::designate::params::sink_package_name,
$enabled = true, $enabled = true,
$manage_service = true, $manage_service = true,
$workers = $::os_service_default, $workers = $facts['os_service_default'],
$threads = $::os_service_default, $threads = $facts['os_service_default'],
$enabled_notification_handlers = $::os_service_default, $enabled_notification_handlers = $facts['os_service_default'],
) inherits designate::params { ) inherits designate::params {
include designate::deps include designate::deps

View File

@ -22,54 +22,54 @@
# #
# [*workers*] # [*workers*]
# (optional) Number of worker processes. # (optional) Number of worker processes.
# Defaults to $::os_workers # Defaults to $facts['os_workers']
# #
# [*threads*] # [*threads*]
# (optional) Number of Pool Manager greenthreads to spawn # (optional) Number of Pool Manager greenthreads to spawn
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*threshold_percentage*] # [*threshold_percentage*]
# (optional) Threshold percentage. # (optional) Threshold percentage.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*poll_timeout*] # [*poll_timeout*]
# (optional) Poll timeout. # (optional) Poll timeout.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*poll_retry_interval*] # [*poll_retry_interval*]
# (optional) Poll retry interval. # (optional) Poll retry interval.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*poll_max_retries*] # [*poll_max_retries*]
# (optional) Poll max retries. # (optional) Poll max retries.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*poll_delay*] # [*poll_delay*]
# (optional) Poll delay. # (optional) Poll delay.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*export_synchronous*] # [*export_synchronous*]
# (optional) Whether to allow synchronous zone exports. # (optional) Whether to allow synchronous zone exports.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
# [*topic*] # [*topic*]
# (optional) RPC topic for worker component. # (optional) RPC topic for worker component.
# Defaults to $::os_service_default # Defaults to $facts['os_service_default']
# #
class designate::worker( class designate::worker(
$package_ensure = present, $package_ensure = present,
$worker_package_name = $::designate::params::worker_package_name, $worker_package_name = $::designate::params::worker_package_name,
$enabled = true, $enabled = true,
$manage_service = true, $manage_service = true,
$workers = $::os_workers, $workers = $facts['os_workers'],
$threads = $::os_service_default, $threads = $facts['os_service_default'],
$threshold_percentage = $::os_service_default, $threshold_percentage = $facts['os_service_default'],
$poll_timeout = $::os_service_default, $poll_timeout = $facts['os_service_default'],
$poll_retry_interval = $::os_service_default, $poll_retry_interval = $facts['os_service_default'],
$poll_max_retries = $::os_service_default, $poll_max_retries = $facts['os_service_default'],
$poll_delay = $::os_service_default, $poll_delay = $facts['os_service_default'],
$export_synchronous = $::os_service_default, $export_synchronous = $facts['os_service_default'],
$topic = $::os_service_default, $topic = $facts['os_service_default'],
) inherits designate::params { ) inherits designate::params {
include designate::deps include designate::deps

View File

@ -21,7 +21,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.
@ -41,7 +41,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.
@ -122,12 +122,12 @@
# class { 'designate::wsgi::apache': } # class { 'designate::wsgi::apache': }
# #
class designate::wsgi::apache ( class designate::wsgi::apache (
$servername = $::fqdn, $servername = $facts['networking']['fqdn'],
$port = 9001, $port = 9001,
$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 designate::wsgi::uwsgi ( class designate::wsgi::uwsgi (
$processes = $::os_workers, $processes = $facts['os_workers'],
$threads = 32, $threads = 32,
$listen_queue_size = 100, $listen_queue_size = 100,
){ ){
include designate::deps include designate::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

@ -82,7 +82,7 @@ describe 'designate::agent' do
end end
let(:platform_params) do let(:platform_params) do
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
{ {
:agent_package_name => 'designate-agent', :agent_package_name => 'designate-agent',

View File

@ -180,7 +180,7 @@ describe 'designate::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_name => 'designate-api', :api_package_name => 'designate-api',

View File

@ -57,13 +57,11 @@ describe 'designate::backend::bind9' 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())
: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'
{ {
:dns_optionspath => '/etc/bind/named.conf.options' :dns_optionspath => '/etc/bind/named.conf.options'

View File

@ -83,7 +83,7 @@ describe 'designate::central' do
end end
let(:platform_params) do let(:platform_params) do
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
{ {
:central_package_name => 'designate-central', :central_package_name => 'designate-central',

View File

@ -49,7 +49,7 @@ describe 'designate::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-designateclient' } { :client_package_name => 'python3-designateclient' }
when 'RedHat' when 'RedHat'

View File

@ -173,7 +173,7 @@ describe 'designate' do
end end
let(:platform_params) do let(:platform_params) do
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
{ :common_package_name => 'designate-common' } { :common_package_name => 'designate-common' }
when 'RedHat' when 'RedHat'

View File

@ -86,7 +86,7 @@ describe 'designate::mdns' do
facts.merge!(OSDefaults.get_facts({ :os_workers => 8 })) facts.merge!(OSDefaults.get_facts({ :os_workers => 8 }))
end end
let(:platform_params) do let(:platform_params) do
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
{ {
:mdns_package_name => 'designate-mdns', :mdns_package_name => 'designate-mdns',

View File

@ -59,7 +59,7 @@ describe 'designate::producer' do
end end
let(:platform_params) do let(:platform_params) do
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
{ :producer_package_name => 'designate-producer' } { :producer_package_name => 'designate-producer' }
when 'RedHat' when 'RedHat'

View File

@ -93,7 +93,7 @@ describe 'designate::sink' do
end end
let(:platform_params) do let(:platform_params) do
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
{ {
:sink_package_name => 'designate-sink', :sink_package_name => 'designate-sink',

View File

@ -100,7 +100,7 @@ describe 'designate::worker' do
end end
let(:platform_params) do let(:platform_params) do
case facts[:osfamily] case facts[:os]['family']
when 'Debian' when 'Debian'
{ {
:worker_package_name => 'designate-worker', :worker_package_name => 'designate-worker',

View File

@ -10,7 +10,7 @@ describe 'designate::wsgi::apache' do
:group => 'designate', :group => 'designate',
:path => '/', :path => '/',
:priority => 10, :priority => 10,
:servername => facts[:fqdn], :servername => 'foo.example.com',
:ssl => false, :ssl => false,
:threads => 1, :threads => 1,
:user => 'designate', :user => 'designate',
@ -148,13 +148,11 @@ describe 'designate::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/designate', :wsgi_script_path => '/usr/lib/cgi-bin/designate',