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: Ica643fa483b02cf5ab4728788e5fd6c929c2e257
This commit is contained in:
Takashi Kajinami 2024-09-16 23:39:18 +09:00
parent 28d16299c0
commit 0085eaae89

View File

@ -83,23 +83,23 @@
# }
#
class neutron::keystone::auth (
$password,
$auth_name = 'neutron',
$email = 'neutron@localhost',
$tenant = 'services',
$roles = ['admin'],
$system_scope = 'all',
$system_roles = [],
$configure_endpoint = true,
$configure_user = true,
$configure_user_role = true,
$service_name = 'neutron',
$service_type = 'network',
$service_description = 'OpenStack Networking Service',
$region = 'RegionOne',
$public_url = 'http://127.0.0.1:9696',
$admin_url = 'http://127.0.0.1:9696',
$internal_url = 'http://127.0.0.1:9696',
String[1] $password,
String[1] $auth_name = 'neutron',
String[1] $email = 'neutron@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_name = 'neutron',
String[1] $service_type = 'network',
String[1] $service_description = 'OpenStack Networking Service',
String[1] $region = 'RegionOne',
Keystone::PublicEndpointUrl $public_url = 'http://127.0.0.1:9696',
Keystone::EndpointUrl $admin_url = 'http://127.0.0.1:9696',
Keystone::EndpointUrl $internal_url = 'http://127.0.0.1:9696',
) {
include neutron::deps