@ -41,7 +41,7 @@
# (Optional) Authentication type to load
# Defaults to 'password'.
#
# [* auth_uri*]
# [* www_ authenticate _uri*]
# (Optional) Complete public Identity API endpoint.
# Defaults to 'http://localhost:5000'.
#
@ -182,6 +182,12 @@
# (in seconds). Set to -1 to disable caching completely. Integer value
# Defaults to $::os_service_default.
#
# DEPRECATED PARAMETERS
#
# [*auth_uri*]
# (Optional) Complete public Identity API endpoint.
# Defaults to undef
#
class panko : : keystone : : authtoken (
$password,
$username = 'panko' ,
@ -192,7 +198,7 @@ class panko::keystone::authtoken(
$insecure = $::os_service_default,
$auth_section = $::os_service_default,
$auth_type = 'password' ,
$ auth_uri = 'http://localhost:5000' ,
$ www_ authenticate _uri = 'http://localhost:5000' ,
$auth_version = $::os_service_default,
$cache = $::os_service_default,
$cafile = $::os_service_default,
@ -217,16 +223,23 @@ class panko::keystone::authtoken(
$manage_memcache_package = false ,
$region_name = $::os_service_default,
$token_cache_time = $::os_service_default,
# DEPRECATED PARAMETERS
$auth_uri = undef ,
) {
include : : panko : : deps
if $auth_uri {
warning ( 'The auth_uri parameter is deprecated. Please use www_authenticate_uri instead.' )
}
$www_authenticate_uri_real = pick ( $auth_uri, $www_authenticate_uri)
keystone : : resource : : authtoken { 'panko_config' :
username => $username,
password => $password,
project_name => $project_name,
auth_url => $auth_url,
auth_uri => $ auth_uri,
www_ authenticate _uri => $ www_ authenticate _uri_real ,
auth_version => $auth_version,
auth_type => $auth_type,
auth_section => $auth_section,