Merge "apache: Remove deprecated api_port parameter"

This commit is contained in:
Zuul 2023-01-24 13:23:36 +00:00 committed by Gerrit Code Review
commit 16503a022e
2 changed files with 6 additions and 13 deletions

View File

@ -119,12 +119,6 @@
# directives to be placed at the end of the vhost configuration.
# Defaults to undef.
#
# DEPRECATED PARAMETERS
#
# [*api_port*]
# (Optional) The port for Placement API service.
# Defaults to undef
#
# == Dependencies
#
# requires Class['apache'] & Class['placement']
@ -163,8 +157,6 @@ class placement::wsgi::apache (
$headers = undef,
$request_headers = undef,
$vhost_custom_fragment = undef,
# DEPRECATED PARAMETERS
$api_port = undef,
) {
include placement::deps
@ -172,13 +164,9 @@ class placement::wsgi::apache (
Anchor['placement::install::end'] -> Class['apache']
if $api_port {
warning('The api_port parameter is deprecated. Use the port parameter')
}
::openstacklib::wsgi::apache { 'placement_wsgi':
bind_host => $bind_host,
bind_port => pick($api_port, $port),
bind_port => $port,
group => 'placement',
path => $path,
priority => $priority,

View File

@ -0,0 +1,5 @@
---
upgrade:
- |
The ``placement::wsgi::apache::api_port`` parameter has been removed. Use
the ``port`` parameter instead.