Prepare changing default of port and path

Currently placement api uses 80 and path /placement by default but
this is not consistent with the other services which use it's own port
and path /. This is a prep work to change default of these two items
and shows warning if users are still using old values.

The new values will be consistent with ones described in installation
guide[1].
[1] https://docs.openstack.org/placement/latest/install/

Change-Id: Ia4b2261bc7c85b53aabcf9c363a921a20f2d58ef
This commit is contained in:
Takashi Kajinami
2021-07-12 11:45:16 +09:00
parent 168d1eb182
commit d7b8c158f9
2 changed files with 19 additions and 1 deletions

View File

@@ -116,9 +116,17 @@ class placement::wsgi::apache (
$access_log_file = false,
$access_log_format = false,
$error_log_file = undef,
$vhost_custom_fragment = undef,
$vhost_custom_fragment = undef,
) {
if $api_port == 80 {
warning('The default api_port will be changed from 80 to 8778 in a future release.')
}
if $path == '/placement' {
warning('The default path will be changed from /placement to / in a future release.')
}
include placement::params
include apache
include apache::mod::wsgi

View File

@@ -0,0 +1,10 @@
---
upgrade:
- |
Defaults of the following parameters will be changed in a future release.
Please set the parameter explicitly to keep the value during upgrade.
Also it is likely that endpoint parameters in ``nova::keystone::auth``
should be also updated.
- ``placement::wsgi::apache::api_port``: from ``80`` to ``8778``
- ``placement::wsgi::apache::path``: from ``/placement`` to ``/``