From 9cc8876255e0c13fc6ed0512f175ef0425175dd6 Mon Sep 17 00:00:00 2001 From: zhubingbing <1392607554@qq.com> Date: Wed, 28 Sep 2016 09:18:54 +0000 Subject: [PATCH] add influxdb to precheck TrivialFix Change-Id: I44c267f9083556ae9861298cb64afbf2af371f09 --- ansible/roles/prechecks/tasks/port_checks.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ansible/roles/prechecks/tasks/port_checks.yml b/ansible/roles/prechecks/tasks/port_checks.yml index 6c741cd8ac..fc5ecb109f 100644 --- a/ansible/roles/prechecks/tasks/port_checks.yml +++ b/ansible/roles/prechecks/tasks/port_checks.yml @@ -199,6 +199,22 @@ state: stopped when: inventory_hostname in groups['haproxy'] +- name: Checking free port for Influxdb Admin + wait_for: + host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}" + port: "{{ influxdb_admin_port }}" + connect_timeout: 1 + state: stopped + when: inventory_hostname in groups['influxdb'] + +- name: Checking free port for Influxdb Http + wait_for: + host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}" + port: "{{ influxdb_http_port }}" + connect_timeout: 1 + state: stopped + when: inventory_hostname in groups['influxdb'] + - name: Checking free port for Keystone Admin wait_for: host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"