the validate_legacy function is marked for deprecation in v9.0.0 from puppetlabs-stdlib. Note that this change looses validation about pool ids. Alternatively we can define a new data type to keep the validation, but these defined types for pool-manager were already deprecated and useless and will be removed in a near future release so we avoid that redundant step. Change-Id: I85d7058bf379c6aa0e787b2f806f14aebf0693d3
33 lines
790 B
ObjectPascal
33 lines
790 B
ObjectPascal
# == Define: designate::pool
|
|
#
|
|
# Define a pool.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*nameservers*]
|
|
# (required) An array of UUID's of the nameservers in this pool
|
|
#
|
|
# [*targets*]
|
|
# (required) An array of UUID's of the targets in this pool
|
|
#
|
|
# [*also_notifies*]
|
|
# (optional) List of hostnames and port numbers to also notify on zone changes.
|
|
# Defaults to []
|
|
#
|
|
define designate::pool(
|
|
Array[String[1]] $nameservers,
|
|
Array[String[1]] $targets,
|
|
Array[String[1]] $also_notifies = [],
|
|
){
|
|
|
|
warning('Support for pool-manager was deprecated.')
|
|
|
|
include designate::deps
|
|
|
|
designate_config {
|
|
"pool:${name}/nameservers": value => join($nameservers,',');
|
|
"pool:${name}/targets": value => join($targets,',');
|
|
"pool:${name}/also-notifies": value => join($also_notifies,',');
|
|
}
|
|
}
|