Enforce no_proxy when setting up ELK dashboards and rollups
There is no guarantee that all container IP addressess will be included in an existing no_proxy environment variable. This will cause failures when an http proxy is configured, but the proxy does not allow traffic to 'hairpin' back to internal addresses. This change forces no_proxy to the specific address of the kibana and coordinator endpoints when the uri module is used to load dashboards and configure rollups. Change-Id: I669334c722cce79459b522e6e2d7e1aaec49ef24
This commit is contained in:
parent
58a7e461ac
commit
c2d3c44fd8
@ -24,6 +24,8 @@
|
||||
- "--template"
|
||||
- "--dashboards"
|
||||
register: templates
|
||||
environment:
|
||||
no_proxy: "{{ hostvars[groups['kibana'][0]]['ansible_host'] }}"
|
||||
until: templates is success
|
||||
retries: 5
|
||||
delay: 5
|
||||
|
@ -24,6 +24,8 @@
|
||||
- "--template"
|
||||
- "--dashboards"
|
||||
register: templates
|
||||
environment:
|
||||
no_proxy: "{{ hostvars[groups['kibana'][0]]['ansible_host'] }}"
|
||||
until: templates is success
|
||||
retries: 5
|
||||
delay: 5
|
||||
|
@ -24,6 +24,8 @@
|
||||
- "--template"
|
||||
- "--dashboards"
|
||||
register: templates
|
||||
environment:
|
||||
no_proxy: "{{ hostvars[groups['kibana'][0]]['ansible_host'] }}"
|
||||
until: templates is success
|
||||
retries: 5
|
||||
delay: 5
|
||||
|
@ -24,6 +24,8 @@
|
||||
- "--template"
|
||||
- "--dashboards"
|
||||
register: templates
|
||||
environment:
|
||||
no_proxy: "{{ hostvars[groups['kibana'][0]]['ansible_host'] }}"
|
||||
until: templates is success
|
||||
retries: 5
|
||||
delay: 5
|
||||
|
@ -24,6 +24,8 @@
|
||||
- "--template"
|
||||
- "--dashboards"
|
||||
register: templates
|
||||
environment:
|
||||
no_proxy: "{{ hostvars[groups['kibana'][0]]['ansible_host'] }}"
|
||||
until: templates is success
|
||||
retries: 5
|
||||
delay: 5
|
||||
|
@ -18,6 +18,8 @@
|
||||
url: "http://{{ coordination_nodes[0] }}/_nodes/{{ (data_nodes | map('extract', hostvars, 'ansible_host') | list) | join(',') }}/stats/fs"
|
||||
method: GET
|
||||
register: elk_data
|
||||
environment:
|
||||
no_proxy: "{{ coordination_nodes[0].split(':')[0] }}"
|
||||
until:
|
||||
- elk_data is success and elk_data['json'] is defined
|
||||
retries: 5
|
||||
|
@ -18,6 +18,8 @@
|
||||
url: "http://{{ coordination_nodes[0] }}/_xpack/rollup/job/rollup_{{ index_name }}"
|
||||
method: GET
|
||||
register: check_rollup
|
||||
environment:
|
||||
no_proxy: "{{ coordination_nodes[0].split(':')[0] }}"
|
||||
until: check_rollup is success
|
||||
retries: 3
|
||||
delay: 5
|
||||
@ -60,6 +62,8 @@
|
||||
status_code: "{{ item.status_code }}"
|
||||
body_format: json
|
||||
register: elk_indexes
|
||||
environment:
|
||||
no_proxy: "{{ coordination_nodes[0].split(':')[0] }}"
|
||||
until: elk_indexes is success
|
||||
retries: 5
|
||||
delay: 5
|
||||
|
Loading…
Reference in New Issue
Block a user