puppet-designate/manifests/central.pp
Sam Morrison ae4b864bbc Remove service:central/backend_driver option, no longer exists
Change-Id: Ide49b872e0bbea640d9948c6d3d6809b70e5d767
2016-12-09 10:45:40 +11:00

86 lines
2.7 KiB
Puppet

# == Class designate::central
#
# Configure designate central service
#
# == Parameters
#
# [*package_ensure*]
# (optional) The state of the package
# Defaults to 'present'
#
# [*central_package_name*]
# (optional) Name of the package containing central resources
# Defaults to $::designate::params::central_package_name
#
# [*enabled*]
# (optional) Whether to enable services.
# Defaults to true
#
# [*service_ensure*]
# (optional) Whether the designate central service will be running.
# Defaults to 'running'
#
# [*managed_resource_email*]
# (optional) Email to use for managed resources like domains created by the FloatingIP API
# Defaults to 'hostmaster@example.com'
#
# [*managed_resource_tenant_id*]
# (optional) Tenant ID to own all managed resources - like auto-created records etc.
# Defaults to '123456'
#
# [*max_domain_name_len*]
# (optional) Maximum domain name length.
# Defaults to 255
#
# [*max_recordset_name_len*]
# (optional) Maximum record name length.
# warning('The max_record_name_len parameter is deprecated, use max_recordset_name_len instead.')
# Defaults to 255
#
# [*min_ttl*]
# (optional) Minimum TTL.
# Defaults to $::os_service_default
#
# === DEPRECATED PARAMETERS
#
# [*backend_driver*]
# (optional) Driver used for backend communication (fake, rpc, bind9, powerdns)
# Defaults to 'undef'
#
class designate::central (
$package_ensure = present,
$central_package_name = $::designate::params::central_package_name,
$enabled = true,
$service_ensure = 'running',
$managed_resource_email = 'hostmaster@example.com',
$managed_resource_tenant_id = '123456',
$max_domain_name_len = '255',
$max_recordset_name_len = '255',
$min_ttl = $::os_service_default,
# DEPRECATED PARAMETERS
$backend_driver = undef,
) inherits designate {
include ::designate::deps
if $backend_driver {
warning('backend_driver has been deprecated and has no effect. It will be removed in Pike.')
}
designate_config {
'service:central/managed_resource_email' : value => $managed_resource_email;
'service:central/managed_resource_tenant_id' : value => $managed_resource_tenant_id;
'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;
}
designate::generic_service { 'central':
enabled => $enabled,
manage_service => $service_ensure,
ensure_package => $package_ensure,
package_name => $central_package_name,
service_name => $::designate::params::central_service_name,
}
}