Added options central service

This patch adds workers, threads, default-pool-id options to the
central.pp as these options can be configured for designate-central.

Change-Id: I0635d5fd2ece7bca85fab772a055c999d6721c1a
Closes-Bug: #1539327
Co-Authored-By: Sharat Sharma <sharat.sharma@nectechnologies.in>
This commit is contained in:
Sharat Sharma 2016-09-30 11:43:32 +05:30 committed by Thomas Herve
parent ef27bdea2c
commit 74aee65cdf
2 changed files with 21 additions and 0 deletions

View File

@ -41,6 +41,18 @@
# (optional) Minimum TTL.
# Defaults to $::os_service_default
#
# [*workers*]
# (optional) Number of central worker processes to spawn.
# Defaults to $::os_service_default
#
# [*threads*]
# (optional) Number of central greenthreads to spawn.
# Defaults to $::os_service_default
#
# [*default_pool_id*]
# (optional) The name of the default pool.
# Defaults to $::os_service_default
#
# === DEPRECATED PARAMETERS
#
# [*backend_driver*]
@ -57,6 +69,9 @@ class designate::central (
$max_domain_name_len = '255',
$max_recordset_name_len = '255',
$min_ttl = $::os_service_default,
$workers = $::os_service_default,
$threads = $::os_service_default,
$default_pool_id = $::os_service_default,
# DEPRECATED PARAMETERS
$backend_driver = undef,
) inherits designate {
@ -73,6 +88,9 @@ class designate::central (
'service:central/max_domain_name_len' : value => $max_domain_name_len;
'service:central/max_recordset_name_len' : value => $max_recordset_name_len;
'service:central/min_ttl' : value => $min_ttl;
'service:central/workers' : value => $workers;
'service:central/threads' : value => $threads;
'service:central/default_pool_id' : value => $default_pool_id;
}
designate::generic_service { 'central':

View File

@ -32,6 +32,9 @@ describe 'designate::central' do
is_expected.to contain_designate_config('service:central/max_domain_name_len').with_value('255')
is_expected.to contain_designate_config('service:central/max_recordset_name_len').with_value('255')
is_expected.to contain_designate_config('service:central/min_ttl').with_value('<SERVICE DEFAULT>')
is_expected.to contain_designate_config('service:central/workers').with_value('<SERVICE DEFAULT>')
is_expected.to contain_designate_config('service:central/threads').with_value('<SERVICE DEFAULT>')
is_expected.to contain_designate_config('service:central/default_pool_id').with_value('<SERVICE DEFAULT>')
end
end