Add validations for keystone resource parameters

The underlying implementation already have type validations. Inherit
these and make a few adjustment so that validation failures are raised
from the external interface layer instead of the internal interface.

Change-Id: I821317111c60e1b73e82cf3181398303af5817dd
This commit is contained in:
Takashi Kajinami
2024-09-16 23:41:29 +09:00
parent e3a06e774d
commit 2dd38b3974

View File

@@ -75,23 +75,23 @@
# Defaults to 'http://127.0.0.1:9876'
#
class octavia::keystone::auth (
$password,
$auth_name = 'octavia',
$email = 'octavia@localhost',
$tenant = 'services',
$roles = ['admin'],
$system_scope = 'all',
$system_roles = [],
$configure_endpoint = true,
$configure_user = true,
$configure_user_role = true,
$service_description = 'OpenStack Load Balancing Service',
$service_name = 'octavia',
$service_type = 'load-balancer',
$region = 'RegionOne',
$public_url = 'http://127.0.0.1:9876',
$admin_url = 'http://127.0.0.1:9876',
$internal_url = 'http://127.0.0.1:9876',
String[1] $password,
String[1] $auth_name = 'octavia',
String[1] $email = 'octavia@localhost',
String[1] $tenant = 'services',
Array[String[1]] $roles = ['admin'],
String[1] $system_scope = 'all',
Array[String[1]] $system_roles = [],
Boolean $configure_endpoint = true,
Boolean $configure_user = true,
Boolean $configure_user_role = true,
String[1] $service_description = 'OpenStack Load Balancing Service',
String[1] $service_name = 'octavia',
String[1] $service_type = 'load-balancer',
String[1] $region = 'RegionOne',
Keystone::PublicEndpointUrl $public_url = 'http://127.0.0.1:9876',
Keystone::EndpointUrl $admin_url = 'http://127.0.0.1:9876',
Keystone::EndpointUrl $internal_url = 'http://127.0.0.1:9876',
) {
include octavia::deps