Merge "Add validation for plugin settings"

This commit is contained in:
Jenkins 2016-05-02 13:15:19 +00:00 committed by Gerrit Code Review
commit 767a222422
1 changed files with 6 additions and 0 deletions

View File

@ -5,9 +5,15 @@ attributes:
description: "NFS volume to store instances (e.g. 192.168.0.2:/vol2)"
weight: 10
type: "text"
regex:
source: '^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?):/(?:[\w-]+\/?)+$'
error: "NFS volume path must be in form IP.ADD.RE.SS:/unix/path/to/volume e.g. 192.168.0.2:/vol2"
nfs_mount_point_nova:
value: "/mnt/nova"
label: "NFS mount point"
description: "Mount point to store instances (Nova)"
weight: 20
type: "text"
regex:
source: '^/(?:[\w-]+\/?)+$'
error: "Valid characters are: '/', '0-9', 'a-z', 'A-Z', '_', '-'"