Deprecate swift::proxy::ceilometer::auth_uri
auth_uri parameter is not used in ceilometermiddleware, so deprecate puppet parameter according to it. Change-Id: Id8738a52d0ad0c6aaa4cbab70a0b3461870017dd
This commit is contained in:
@@ -43,10 +43,6 @@
|
|||||||
# What projects to ignore to send events to ceilometer
|
# What projects to ignore to send events to ceilometer
|
||||||
# Defaults to ['services']
|
# Defaults to ['services']
|
||||||
#
|
#
|
||||||
# [*auth_uri*]
|
|
||||||
# (Optional) Complete public Identity API endpoint.
|
|
||||||
# Defaults to 'http://127.0.0.1:5000'
|
|
||||||
#
|
|
||||||
# [*auth_url*]
|
# [*auth_url*]
|
||||||
# (Optional) The URL to use for authentication.
|
# (Optional) The URL to use for authentication.
|
||||||
# Defaults to 'http://127.0.0.1:5000'
|
# Defaults to 'http://127.0.0.1:5000'
|
||||||
@@ -106,6 +102,12 @@
|
|||||||
# available on some distributions. (string value)
|
# available on some distributions. (string value)
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $::os_service_default
|
||||||
#
|
#
|
||||||
|
# == DEPRECATED
|
||||||
|
#
|
||||||
|
# [*auth_uri*]
|
||||||
|
# (Optional) Complete public Identity API endpoint.
|
||||||
|
# Defaults to undef
|
||||||
|
#
|
||||||
# == Examples
|
# == Examples
|
||||||
#
|
#
|
||||||
# == Authors
|
# == Authors
|
||||||
@@ -125,7 +127,6 @@ class swift::proxy::ceilometer(
|
|||||||
$group = 'ceilometer',
|
$group = 'ceilometer',
|
||||||
$nonblocking_notify = false,
|
$nonblocking_notify = false,
|
||||||
$ignore_projects = ['services'],
|
$ignore_projects = ['services'],
|
||||||
$auth_uri = 'http://127.0.0.1:5000',
|
|
||||||
$auth_url = 'http://127.0.0.1:5000',
|
$auth_url = 'http://127.0.0.1:5000',
|
||||||
$auth_type = 'password',
|
$auth_type = 'password',
|
||||||
$project_domain_name = 'Default',
|
$project_domain_name = 'Default',
|
||||||
@@ -140,6 +141,8 @@ class swift::proxy::ceilometer(
|
|||||||
$amqp_ssl_key_password = $::os_service_default,
|
$amqp_ssl_key_password = $::os_service_default,
|
||||||
$rabbit_use_ssl = $::os_service_default,
|
$rabbit_use_ssl = $::os_service_default,
|
||||||
$kombu_ssl_version = $::os_service_default,
|
$kombu_ssl_version = $::os_service_default,
|
||||||
|
# DEPRECATED PARAMETERS
|
||||||
|
$auth_uri = undef
|
||||||
) inherits swift {
|
) inherits swift {
|
||||||
|
|
||||||
include swift::deps
|
include swift::deps
|
||||||
@@ -162,6 +165,10 @@ class swift::proxy::ceilometer(
|
|||||||
group => 'swift',
|
group => 'swift',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $auth_uri {
|
||||||
|
warning('The swift::proxy::ceilometer::auth_uri parameter was deperecated, and has no effect')
|
||||||
|
}
|
||||||
|
|
||||||
swift_proxy_config {
|
swift_proxy_config {
|
||||||
'filter:ceilometer/topic': value => $topic;
|
'filter:ceilometer/topic': value => $topic;
|
||||||
'filter:ceilometer/driver': value => $driver;
|
'filter:ceilometer/driver': value => $driver;
|
||||||
@@ -170,7 +177,6 @@ class swift::proxy::ceilometer(
|
|||||||
'filter:ceilometer/paste.filter_factory': value => 'ceilometermiddleware.swift:filter_factory';
|
'filter:ceilometer/paste.filter_factory': value => 'ceilometermiddleware.swift:filter_factory';
|
||||||
'filter:ceilometer/nonblocking_notify': value => $nonblocking_notify;
|
'filter:ceilometer/nonblocking_notify': value => $nonblocking_notify;
|
||||||
'filter:ceilometer/ignore_projects': value => $ignore_projects;
|
'filter:ceilometer/ignore_projects': value => $ignore_projects;
|
||||||
'filter:ceilometer/auth_uri': value => $auth_uri;
|
|
||||||
'filter:ceilometer/auth_url': value => $auth_url;
|
'filter:ceilometer/auth_url': value => $auth_url;
|
||||||
'filter:ceilometer/auth_type': value => $auth_type;
|
'filter:ceilometer/auth_type': value => $auth_type;
|
||||||
'filter:ceilometer/project_domain_name': value => $project_domain_name;
|
'filter:ceilometer/project_domain_name': value => $project_domain_name;
|
||||||
|
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
deprecations:
|
||||||
|
- |
|
||||||
|
swift::proxy::ceilometer::auth_uri was deprecated and has no affect,
|
||||||
|
because auth_uri parameter is no more valid in ceilometer middleware.
|
@@ -32,7 +32,6 @@ describe 'swift::proxy::ceilometer' do
|
|||||||
:control_exchange => 'swift',
|
:control_exchange => 'swift',
|
||||||
:nonblocking_notify => true,
|
:nonblocking_notify => true,
|
||||||
:ignore_projects => ['services'],
|
:ignore_projects => ['services'],
|
||||||
:auth_uri => 'http://127.0.0.1:5000',
|
|
||||||
:auth_url => 'http://127.0.0.1:5000',
|
:auth_url => 'http://127.0.0.1:5000',
|
||||||
:auth_type => 'password',
|
:auth_type => 'password',
|
||||||
:project_domain_name => 'Default',
|
:project_domain_name => 'Default',
|
||||||
@@ -53,7 +52,6 @@ describe 'swift::proxy::ceilometer' do
|
|||||||
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/control_exchange').with_value('swift') }
|
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/control_exchange').with_value('swift') }
|
||||||
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/nonblocking_notify').with_value('true') }
|
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/nonblocking_notify').with_value('true') }
|
||||||
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/ignore_projects').with_value(['services']) }
|
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/ignore_projects').with_value(['services']) }
|
||||||
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/auth_uri').with_value('http://127.0.0.1:5000') }
|
|
||||||
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/auth_url').with_value('http://127.0.0.1:5000') }
|
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/auth_url').with_value('http://127.0.0.1:5000') }
|
||||||
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/auth_type').with_value('password') }
|
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/auth_type').with_value('password') }
|
||||||
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/project_domain_name').with_value('Default') }
|
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/project_domain_name').with_value('Default') }
|
||||||
|
Reference in New Issue
Block a user