aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-01-23 14:43:53 +0000
committerGerrit Code Review <review@openstack.org>2018-01-23 14:43:53 +0000
commitc086b2c4eca9508c7c84f6f95b1c26f2d6a5b8cd (patch)
tree583687ed5491ac06808b05e2744bf87be84cb19a /tests
parentb51294dc3df5260857d260fdc3c56c85ac8c6766 (diff)
parentbf4a3c9f6c5ff95e72b1ec324004cddb3cee4081 (diff)
downloadkolla-ansible-c086b2c4eca9508c7c84f6f95b1c26f2d6a5b8cd.tar.gz
kolla-ansible-c086b2c4eca9508c7c84f6f95b1c26f2d6a5b8cd.zip
Merge "Use a random keepalived router id in CI environment"
Diffstat (limited to 'tests')
-rw-r--r--tests/templates/globals-default.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/templates/globals-default.j2 b/tests/templates/globals-default.j2
index f4a17e773..6770633dd 100644
--- a/tests/templates/globals-default.j2
+++ b/tests/templates/globals-default.j2
@@ -2,6 +2,10 @@
kolla_base_distro: "{{ base_distro }}"
kolla_install_type: "{{ install_type }}"
+# Use a random router id, otherwise it may result in the same router id
+# in the CI gate.
+keepalived_virtual_router_id: "{{ 250 | random(1) }}"
+
{% if hostvars|length > 2 %}
kolla_internal_vip_address: "{{ api_interface_address }}"
enable_haproxy: "no"