add keystone_authtoken to conductor

magnum-conductor's keystone client appears to still require access to
keystone_authtoken auth_uri [1]

[1] https://github.com/openstack/magnum/blob/stable/queens/magnum/common/keystone.py#L47

Change-Id: Ic96b59db6c7b505afaa31f7d6b74ec621a2ba686
This commit is contained in:
Jake Yip 2018-07-06 16:58:01 +10:00
parent 6f4e356d38
commit fbd5517abd
2 changed files with 10 additions and 0 deletions

View File

@ -21,11 +21,16 @@
# used for bay locking.
# Defaults to $::os_service_default
#
# [*auth_strategy*]
# (optional) Type of authentication to be used.
# Defaults to 'keystone'
#
class magnum::conductor(
$enabled = true,
$manage_service = true,
$package_ensure = 'present',
$conductor_life_check_timeout = $::os_service_default,
$auth_strategy = 'keystone',
) {
include ::magnum::db
@ -59,4 +64,8 @@ class magnum::conductor(
magnum_config {
'conductor/conductor_life_check_timeout': value => $conductor_life_check_timeout;
}
if $auth_strategy == 'keystone' {
include ::magnum::keystone::authtoken
}
}

View File

@ -7,6 +7,7 @@ describe 'magnum::conductor' do
let :pre_condition do
'include magnum'
'class { "magnum::keystone::authtoken": password => "secret", }'
end
shared_examples_for 'magnum-conductor' do