#
# [*coordination_url*]
# (Optional) The url to use for distributed group membership coordination.
-# Defaults to undef.
+# Defaults to $::os_service_default.
#
# [*instance_discovery_method*]
# (Optional) method to discovery instances running on compute node
$central_namespace = true,
$compute_namespace = true,
$ipmi_namespace = true,
- $coordination_url = undef,
+ $coordination_url = $::os_service_default,
$instance_discovery_method = $::os_service_default,
$manage_polling = false,
$polling_interval = 600,
tag => 'ceilometer-service',
}
- if $coordination_url {
- ceilometer_config {
- 'coordination/backend_url': value => $coordination_url
- }
+ if $coordination_url == undef {
+ warning('Usage of undef for the coordination_url parameter has been deprecated. \
+Use $::os_service_default instead')
+ $coordination_url_real = $::os_service_default
+ } else {
+ $coordination_url_real = $coordination_url
+ }
+ ceilometer_config {
+ 'coordination/backend_url': value => $coordination_url_real
}
if $manage_polling {
--- /dev/null
+---
+upgrade:
+ - |
+ The default value for the ``ceilometer::agent::polling::coordination_url``
+ parameter has been changed from undef to $::os_service_default. Because
+ of this change now the ``ceilometer::agent::polling`` class ensures that
+ the ``coordination/backend_url`` parameter is unset by default.
+
+deprecations:
+ - |
+ Usage of ``undef`` for the ``ceilometer::agent::polling::coordination_url``
+ parameter has been deprecated and will be removed in a future release.
+ Use ``$::os_service_default`` or any specific value instead.
:tag => 'ceilometer-service',
)}
- it { should_not contain_ceilometer_config('coordination/backend_url') }
+ it { should contain_ceilometer_config('coordination/backend_url').with_value('<SERVICE DEFAULT>') }
it { should_not contain_file('polling') }
end