]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: set gateway_ip_list dynamically
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 4 Oct 2019 02:20:44 +0000 (04:20 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 4 Oct 2019 05:39:41 +0000 (07:39 +0200)
so we dont' have to hardcode this in the tests

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
tests/functional/all_daemons/container/group_vars/iscsigws
tests/functional/all_daemons/group_vars/iscsigws

index 401805eb3a808ca587113154b920267170cee20f..2cd4511eca9d17cebb90463db79f30bfdb93f666 100644 (file)
@@ -1,3 +1,3 @@
 ---
-gateway_ip_list: 192.168.1.90
-generate_crt: True
\ No newline at end of file
+gateway_ip_list: "{{ ansible_all_ipv4_addresses | ipaddr(public_network) | first }}"
+generate_crt: True
index f5b41fc3fec1dfd7915328569ff72f7773967cf8..2cd4511eca9d17cebb90463db79f30bfdb93f666 100644 (file)
@@ -1,3 +1,3 @@
 ---
-gateway_ip_list: 192.168.1.90
+gateway_ip_list: "{{ ansible_all_ipv4_addresses | ipaddr(public_network) | first }}"
 generate_crt: True