8cb1a195e4
Add parameter to allow setting auth_type. Change-Id: I712db2e7310ba32cb68a7266c6b563ab3f4ab8cf
57 lines
1.7 KiB
Puppet
57 lines
1.7 KiB
Puppet
#
|
|
# Configures credentials for service to service communication.
|
|
#
|
|
# === Parameters:
|
|
#
|
|
# [*auth_url*]
|
|
# (optional) Keystone Authentication URL
|
|
# Defaults to $::os_service_default
|
|
#
|
|
# [*username*]
|
|
# (optional) User for accessing neutron and other services.
|
|
# Defaults to $::os_service_default
|
|
#
|
|
# [*project_name*]
|
|
# (optional) Tenant for accessing neutron and other services
|
|
# Defaults to $::os_service_default
|
|
#
|
|
# [*password*]
|
|
# (optional) Password for user
|
|
# Defaults to $::os_service_default
|
|
#
|
|
# [*user_domain_name*]
|
|
# (optional) keystone user domain
|
|
# Defaults to $::os_service_default
|
|
#
|
|
# [*project_domain_name*]
|
|
# (optional) keystone project domain
|
|
# Defaults to $::os_service_default
|
|
#
|
|
# [*auth_type*]
|
|
# (optional) keystone authentication type
|
|
# Defaults to $::os_service_default
|
|
#
|
|
|
|
class octavia::service_auth (
|
|
$auth_url = $::os_service_default,
|
|
$username = $::os_service_default,
|
|
$project_name = $::os_service_default,
|
|
$password = $::os_service_default,
|
|
$user_domain_name = $::os_service_default,
|
|
$project_domain_name = $::os_service_default,
|
|
$auth_type = $::os_service_default,
|
|
) {
|
|
|
|
include ::octavia::deps
|
|
|
|
octavia_config {
|
|
'service_auth/auth_url' : value => $auth_url;
|
|
'service_auth/username' : value => $username;
|
|
'service_auth/project_name' : value => $project_name;
|
|
'service_auth/password' : value => $password;
|
|
'service_auth/user_domain_name' : value => $user_domain_name;
|
|
'service_auth/project_domain_name' : value => $project_domain_name;
|
|
'service_auth/auth_type' : value => $auth_type;
|
|
}
|
|
}
|