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: Iefbdb1483986ad734ebce03d96c762eba4639067
This commit is contained in:
parent
38fcbdcea7
commit
9dc871a97d
@ -75,23 +75,23 @@
|
||||
# Defaults to 'http://127.0.0.1:8042'.
|
||||
#
|
||||
class aodh::keystone::auth (
|
||||
$password,
|
||||
$auth_name = 'aodh',
|
||||
$email = 'aodh@localhost',
|
||||
$tenant = 'services',
|
||||
$roles = ['admin'],
|
||||
$system_scope = 'all',
|
||||
$system_roles = [],
|
||||
$configure_endpoint = true,
|
||||
$configure_user = true,
|
||||
$configure_user_role = true,
|
||||
$service_description = 'OpenStack Alarming Service',
|
||||
$service_name = 'aodh',
|
||||
$service_type = 'alarming',
|
||||
$region = 'RegionOne',
|
||||
$public_url = 'http://127.0.0.1:8042',
|
||||
$internal_url = 'http://127.0.0.1:8042',
|
||||
$admin_url = 'http://127.0.0.1:8042',
|
||||
String[1] $password,
|
||||
String[1] $auth_name = 'aodh',
|
||||
String[1] $email = 'aodh@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 Alarming Service',
|
||||
String[1] $service_name = 'aodh',
|
||||
String[1] $service_type = 'alarming',
|
||||
String[1] $region = 'RegionOne',
|
||||
Keystone::PublicEndpointUrl $public_url = 'http://127.0.0.1:8042',
|
||||
Keystone::EndpointUrl $internal_url = 'http://127.0.0.1:8042',
|
||||
Keystone::EndpointUrl $admin_url = 'http://127.0.0.1:8042',
|
||||
) {
|
||||
|
||||
include aodh::deps
|
||||
|
Loading…
Reference in New Issue
Block a user