Add validation checking for ElasticSearch Configuration
This commit adds schema in validate.yaml for elasticsearch Change-Id: I4daaa367940318a22aa1c807853e66d353e1d35e Closes-Bug: #1605391
This commit is contained in:
parent
381e0204e4
commit
65e2c5850c
@ -16,6 +16,35 @@ mapping:
|
||||
type: str
|
||||
required: True
|
||||
|
||||
elasticsearch:
|
||||
required: True
|
||||
type: map
|
||||
mapping:
|
||||
enabled:
|
||||
type: bool
|
||||
required: True
|
||||
host:
|
||||
type: str
|
||||
required: True
|
||||
pattern: ^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])(\.([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9]))*$
|
||||
port:
|
||||
type: int
|
||||
required: True
|
||||
metadata_files:
|
||||
type: seq
|
||||
required: True
|
||||
sequence:
|
||||
- type: map
|
||||
allowempty: True
|
||||
mapping:
|
||||
name:
|
||||
type: str
|
||||
required: True
|
||||
file:
|
||||
type: str
|
||||
required: True
|
||||
|
||||
|
||||
ansible:
|
||||
required: True
|
||||
type: map
|
||||
|
Loading…
Reference in New Issue
Block a user