Commit c79b8664 authored by Guillaume Abrioux's avatar Guillaume Abrioux
Browse files

validate: check virtual_ips variable

This commit checks the length of `virtual_ips` doesn't exceed the length
of `groups[rgwloadbalancer_group_name]`.
It also ensure this variable is defined when
`groups[rgwloadbalancer_group_name]` contains at least one node.
Signed-off-by: default avatarGuillaume Abrioux <>
(cherry picked from commit ae196bf9)
parent 6451d368
......@@ -279,3 +279,18 @@
- keys is defined
- keys | length > 0
- item.caps is not defined
- name: check virtual_ips is defined
msg: "virtual_ips is not defined."
- rgwloadbalancer_group_name in group_names
- groups[rgwloadbalancer_group_name] | length > 0
- virtual_ips is not defined
- name: validate virtual_ips length
msg: "There are more virual_ips defined than rgwloadbalancer nodes"
- rgwloadbalancer_group_name in group_names
- (virtual_ips | length) > (groups[rgwloadbalancer_group_name] | length)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment