Merge "Fix ignored auth_url parameters"
This commit is contained in:
commit
caab4a9286
@ -38,10 +38,6 @@
|
|||||||
# (optional) Syslog facility to receive log lines.
|
# (optional) Syslog facility to receive log lines.
|
||||||
# Defaults to 'LOG_USER'.
|
# Defaults to 'LOG_USER'.
|
||||||
#
|
#
|
||||||
# [*auth_url*]
|
|
||||||
# (optional) Authentication URL.
|
|
||||||
# Defaults to 'http://localhost:5000/v3'.
|
|
||||||
#
|
|
||||||
# [*conductor_manager*]
|
# [*conductor_manager*]
|
||||||
# (optional) Trove conductor manager.
|
# (optional) Trove conductor manager.
|
||||||
# Defaults to 'trove.conductor.manager.Manager'.
|
# Defaults to 'trove.conductor.manager.Manager'.
|
||||||
@ -58,6 +54,12 @@
|
|||||||
# (optional) If False doesn't trace SQL requests.
|
# (optional) If False doesn't trace SQL requests.
|
||||||
# Default: $::os_service_default
|
# Default: $::os_service_default
|
||||||
#
|
#
|
||||||
|
# DEPRECATED PARAMETERS
|
||||||
|
#
|
||||||
|
# [*auth_url*]
|
||||||
|
# (optional) Authentication URL.
|
||||||
|
# Defaults to undef
|
||||||
|
#
|
||||||
class trove::conductor(
|
class trove::conductor(
|
||||||
$enabled = true,
|
$enabled = true,
|
||||||
$manage_service = true,
|
$manage_service = true,
|
||||||
@ -67,11 +69,12 @@ class trove::conductor(
|
|||||||
$log_dir = '/var/log/trove',
|
$log_dir = '/var/log/trove',
|
||||||
$use_syslog = $::os_service_default,
|
$use_syslog = $::os_service_default,
|
||||||
$log_facility = $::os_service_default,
|
$log_facility = $::os_service_default,
|
||||||
$auth_url = 'http://localhost:5000/v3',
|
|
||||||
$conductor_manager = 'trove.conductor.manager.Manager',
|
$conductor_manager = 'trove.conductor.manager.Manager',
|
||||||
$workers = $::os_workers,
|
$workers = $::os_workers,
|
||||||
$enable_profiler = $::os_service_default,
|
$enable_profiler = $::os_service_default,
|
||||||
$trace_sqlalchemy = $::os_service_default,
|
$trace_sqlalchemy = $::os_service_default,
|
||||||
|
# DEPRECATED PARAMETERS
|
||||||
|
$auth_url = undef
|
||||||
) inherits trove {
|
) inherits trove {
|
||||||
|
|
||||||
include trove::deps
|
include trove::deps
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#
|
#
|
||||||
class trove::conductor::service_credentials (
|
class trove::conductor::service_credentials (
|
||||||
$password = $::os_service_default,
|
$password = $::os_service_default,
|
||||||
$auth_url = undef,
|
$auth_url = 'http://127.0.0.1:5000/v3',
|
||||||
$region_name = 'RegionOne',
|
$region_name = 'RegionOne',
|
||||||
$username = 'trove',
|
$username = 'trove',
|
||||||
$project_name = 'services',
|
$project_name = 'services',
|
||||||
@ -40,13 +40,7 @@ class trove::conductor::service_credentials (
|
|||||||
|
|
||||||
include trove::deps
|
include trove::deps
|
||||||
|
|
||||||
if $auth_url == undef {
|
$auth_url_base = pick($::trove::conductor::auth_url, $auth_url)
|
||||||
warning('The auto detection of auth_url from www_authenticate_uri will be \
|
|
||||||
removed in a future release. Please set trove::conductor::service_credentials::auth_url .')
|
|
||||||
$auth_url_base = pick($::trove::keystone::authtoken::www_authenticate_uri, 'http://127.0.0.1:5000/v3')
|
|
||||||
} else {
|
|
||||||
$auth_url_base = $auth_url
|
|
||||||
}
|
|
||||||
$auth_url_real = "${regsubst($auth_url_base, '(\/v3$|\/v2.0$|\/$)', '')}/v3"
|
$auth_url_real = "${regsubst($auth_url_base, '(\/v3$|\/v2.0$|\/$)', '')}/v3"
|
||||||
|
|
||||||
$username_real = pick($::trove::nova_proxy_admin_user, $username)
|
$username_real = pick($::trove::nova_proxy_admin_user, $username)
|
||||||
|
@ -60,14 +60,16 @@
|
|||||||
# (optional) Syslog facility to receive log lines.
|
# (optional) Syslog facility to receive log lines.
|
||||||
# Defaults to 'LOG_USER'.
|
# Defaults to 'LOG_USER'.
|
||||||
#
|
#
|
||||||
# [*auth_url*]
|
|
||||||
# (optional) Authentication URL.
|
|
||||||
# Defaults to 'http://localhost:5000/v3'.
|
|
||||||
#
|
|
||||||
# [*guestagent_config_file*]
|
# [*guestagent_config_file*]
|
||||||
# (optional) Trove guest agent configuration file.
|
# (optional) Trove guest agent configuration file.
|
||||||
# Defaults to '/etc/trove/trove-guestagent.conf'.
|
# Defaults to '/etc/trove/trove-guestagent.conf'.
|
||||||
#
|
#
|
||||||
|
# [*taskmanager_manager*]
|
||||||
|
# Trove taskmanager entry point.
|
||||||
|
# Defaults to 'trove.taskmanager.manager.Manager'.
|
||||||
|
#
|
||||||
|
# DEPRECATED OPTIONS
|
||||||
|
#
|
||||||
# [*default_neutron_networks*]
|
# [*default_neutron_networks*]
|
||||||
# (optional) The network that trove will attach by default.
|
# (optional) The network that trove will attach by default.
|
||||||
# Defaults to undef.
|
# Defaults to undef.
|
||||||
@ -76,16 +78,14 @@
|
|||||||
# (optional) Message queue name the Taskmanager will listen to.
|
# (optional) Message queue name the Taskmanager will listen to.
|
||||||
# Defaults to 'taskmanager'.
|
# Defaults to 'taskmanager'.
|
||||||
#
|
#
|
||||||
# [*taskmanager_manager*]
|
|
||||||
# Trove taskmanager entry point.
|
|
||||||
# Defaults to 'trove.taskmanager.manager.Manager'.
|
|
||||||
#
|
|
||||||
# DEPRECATED OPTIONS
|
|
||||||
#
|
|
||||||
# [*use_guestagent_template*]
|
# [*use_guestagent_template*]
|
||||||
# (optional) Use template to provision trove guest agent configuration file.
|
# (optional) Use template to provision trove guest agent configuration file.
|
||||||
# Defaults to true.
|
# Defaults to true.
|
||||||
#
|
#
|
||||||
|
# [*auth_url*]
|
||||||
|
# (optional) Authentication URL.
|
||||||
|
# Defaults to undef
|
||||||
|
#
|
||||||
class trove::taskmanager(
|
class trove::taskmanager(
|
||||||
$enabled = true,
|
$enabled = true,
|
||||||
$manage_service = true,
|
$manage_service = true,
|
||||||
@ -95,7 +95,6 @@ class trove::taskmanager(
|
|||||||
$use_syslog = $::os_service_default,
|
$use_syslog = $::os_service_default,
|
||||||
$guest_log_file = '/var/log/trove/trove-guestagent.log',
|
$guest_log_file = '/var/log/trove/trove-guestagent.log',
|
||||||
$log_facility = $::os_service_default,
|
$log_facility = $::os_service_default,
|
||||||
$auth_url = 'http://localhost:5000/v3',
|
|
||||||
$package_ensure = 'present',
|
$package_ensure = 'present',
|
||||||
$guestagent_config_file = '/etc/trove/trove-guestagent.conf',
|
$guestagent_config_file = '/etc/trove/trove-guestagent.conf',
|
||||||
$taskmanager_manager = 'trove.taskmanager.manager.Manager',
|
$taskmanager_manager = 'trove.taskmanager.manager.Manager',
|
||||||
@ -103,6 +102,7 @@ class trove::taskmanager(
|
|||||||
$default_neutron_networks = undef,
|
$default_neutron_networks = undef,
|
||||||
$taskmanager_queue = undef,
|
$taskmanager_queue = undef,
|
||||||
$use_guestagent_template = true,
|
$use_guestagent_template = true,
|
||||||
|
$auth_url = undef,
|
||||||
) inherits trove {
|
) inherits trove {
|
||||||
|
|
||||||
include trove::deps
|
include trove::deps
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#
|
#
|
||||||
class trove::taskmanager::service_credentials (
|
class trove::taskmanager::service_credentials (
|
||||||
$password = $::os_service_default,
|
$password = $::os_service_default,
|
||||||
$auth_url = undef,
|
$auth_url = 'http://127.0.0.1:5000/v3',
|
||||||
$region_name = 'RegionOne',
|
$region_name = 'RegionOne',
|
||||||
$username = 'trove',
|
$username = 'trove',
|
||||||
$project_name = 'services',
|
$project_name = 'services',
|
||||||
@ -40,13 +40,7 @@ class trove::taskmanager::service_credentials (
|
|||||||
|
|
||||||
include trove::deps
|
include trove::deps
|
||||||
|
|
||||||
if $auth_url == undef {
|
$auth_url_base = pick($::trove::taskmanager::auth_url, $auth_url)
|
||||||
warning('The auto detection of auth_url from www_authenticate_uri will be \
|
|
||||||
removed in a future release. Please set trove::taskmanager::service_credentials::auth_url .')
|
|
||||||
$auth_url_base = pick($::trove::keystone::authtoken::www_authenticate_uri, 'http://127.0.0.1:5000/v3')
|
|
||||||
} else {
|
|
||||||
$auth_url_base = $auth_url
|
|
||||||
}
|
|
||||||
$auth_url_real = "${regsubst($auth_url_base, '(\/v3$|\/v2.0$|\/$)', '')}/v3"
|
$auth_url_real = "${regsubst($auth_url_base, '(\/v3$|\/v2.0$|\/$)', '')}/v3"
|
||||||
|
|
||||||
$username_real = pick($::trove::nova_proxy_admin_user, $username)
|
$username_real = pick($::trove::nova_proxy_admin_user, $username)
|
||||||
|
17
releasenotes/notes/fix-auth_url-330322b223994b41.yaml
Normal file
17
releasenotes/notes/fix-auth_url-330322b223994b41.yaml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
deprecations:
|
||||||
|
- |
|
||||||
|
The ``trove::taskmanager::auth_url parameter has been deprecated. Use
|
||||||
|
the ``trove::taskmanager::service_credentials::auth_url`` parameter
|
||||||
|
instead.
|
||||||
|
|
||||||
|
- |
|
||||||
|
The ``trove::conductor::auth_url parameter has been deprecated. Use
|
||||||
|
the ``trove::conductor::service_credentials::auth_url`` parameter
|
||||||
|
instead.
|
||||||
|
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Now the ``trove::taskmanager::auth_url`` parameter and
|
||||||
|
the ``trove:conductor::auth_url`` parameter take effect and are used to
|
||||||
|
define value of ``[service_credentials] auth_url`` parameter.
|
Loading…
Reference in New Issue
Block a user