43ab03de72
Add region_name for service_auth configuration, so that we can specify the keystone region where octavia user is created. Change-Id: I4fc556fad4f5051a7a0272f1cb2001afa6d0b05e
62 lines
1.9 KiB
Puppet
62 lines
1.9 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
|
|
#
|
|
# [*region_name*]
|
|
# (Optional) The region in which the identity server can be found.
|
|
# 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,
|
|
$region_name = $::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;
|
|
'service_auth/region_name' : value => $region_name;
|
|
}
|
|
}
|