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:
Sai Sindhur Malleni 2016-07-21 16:54:05 -04:00
parent 381e0204e4
commit 65e2c5850c

View File

@ -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