diff options
| author | Eduardo Gonzalez <dabarren@gmail.com> | 2016-10-31 20:29:40 +0000 |
|---|---|---|
| committer | Eduardo Gonzalez <dabarren@gmail.com> | 2016-10-31 20:29:40 +0000 |
| commit | e958d6fdecaede91bab719cd3e14179ab3194fe9 (patch) | |
| tree | ba24576f6006fdde2b6fbb963415a926f6f79020 /ansible | |
| parent | a204b62f22027eb1ed9f2e3ac708e4eb43237f29 (diff) | |
| download | kolla-e958d6fdecaede91bab719cd3e14179ab3194fe9.tar.gz kolla-e958d6fdecaede91bab719cd3e14179ab3194fe9.zip | |
Add enable service logic in port check
Missing enable_service logic in
searchlight, influxdb and etcd services in port checks
TrivialFix
Change-Id: I6589ecc4a6100d3e564796c9bbebc3ecdf30809f
Diffstat (limited to 'ansible')
| -rw-r--r-- | ansible/roles/prechecks/tasks/port_checks.yml | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/ansible/roles/prechecks/tasks/port_checks.yml b/ansible/roles/prechecks/tasks/port_checks.yml index 3ac303df6..a2472c1c7 100644 --- a/ansible/roles/prechecks/tasks/port_checks.yml +++ b/ansible/roles/prechecks/tasks/port_checks.yml @@ -125,7 +125,9 @@ port: "{{ etcd_peer_port }}" connect_timeout: 1 state: stopped - when: inventory_hostname in groups['etcd'] + when: + - inventory_hostname in groups['etcd'] + - enable_etcd | bool - name: Checking free port for Etcd Client wait_for: @@ -133,7 +135,9 @@ port: "{{ etcd_client_port }}" connect_timeout: 1 state: stopped - when: inventory_hostname in groups['etcd'] + when: + - inventory_hostname in groups['etcd'] + - enable_etcd | bool - name: Checking free port for Glance API wait_for: @@ -311,7 +315,9 @@ port: "{{ influxdb_admin_port }}" connect_timeout: 1 state: stopped - when: inventory_hostname in groups['influxdb'] + when: + - inventory_hostname in groups['influxdb'] + - enable_influxdb | bool - name: Checking free port for Influxdb Http wait_for: @@ -319,7 +325,9 @@ port: "{{ influxdb_http_port }}" connect_timeout: 1 state: stopped - when: inventory_hostname in groups['influxdb'] + when: + - inventory_hostname in groups['influxdb'] + - enable_influxdb | bool - name: Checking free port for Keystone Admin wait_for: @@ -864,7 +872,9 @@ port: "{{ searchlight_api_port }}" connect_timeout: 1 state: stopped - when: inventory_hostname in groups['searchlight-api'] + when: + - inventory_hostname in groups['searchlight-api'] + - enable_searchlight | bool - name: Checking free port for Searchlight API HAProxy wait_for: @@ -872,7 +882,9 @@ port: "{{ searchlight_api_port }}" connect_timeout: 1 state: stopped - when: inventory_hostname in groups['haproxy'] + when: + - inventory_hostname in groups['haproxy'] + - enable_searchlight | bool - name: Checking the network_interface is present fail: "msg='Please check the network_interface property - interface {{ network_interface }} not found'" |
