Merge "Enforce no_proxy when setting up ELK dashboards and rollups"
This commit is contained in:
commit
42f7f896b4
@ -24,6 +24,8 @@
|
|||||||
- "--template"
|
- "--template"
|
||||||
- "--dashboards"
|
- "--dashboards"
|
||||||
register: templates
|
register: templates
|
||||||
|
environment:
|
||||||
|
no_proxy: "{{ hostvars[groups['kibana'][0]]['ansible_host'] }}"
|
||||||
until: templates is success
|
until: templates is success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 5
|
delay: 5
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
- "--template"
|
- "--template"
|
||||||
- "--dashboards"
|
- "--dashboards"
|
||||||
register: templates
|
register: templates
|
||||||
|
environment:
|
||||||
|
no_proxy: "{{ hostvars[groups['kibana'][0]]['ansible_host'] }}"
|
||||||
until: templates is success
|
until: templates is success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 5
|
delay: 5
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
- "--template"
|
- "--template"
|
||||||
- "--dashboards"
|
- "--dashboards"
|
||||||
register: templates
|
register: templates
|
||||||
|
environment:
|
||||||
|
no_proxy: "{{ hostvars[groups['kibana'][0]]['ansible_host'] }}"
|
||||||
until: templates is success
|
until: templates is success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 5
|
delay: 5
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
- "--template"
|
- "--template"
|
||||||
- "--dashboards"
|
- "--dashboards"
|
||||||
register: templates
|
register: templates
|
||||||
|
environment:
|
||||||
|
no_proxy: "{{ hostvars[groups['kibana'][0]]['ansible_host'] }}"
|
||||||
until: templates is success
|
until: templates is success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 5
|
delay: 5
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
- "--template"
|
- "--template"
|
||||||
- "--dashboards"
|
- "--dashboards"
|
||||||
register: templates
|
register: templates
|
||||||
|
environment:
|
||||||
|
no_proxy: "{{ hostvars[groups['kibana'][0]]['ansible_host'] }}"
|
||||||
until: templates is success
|
until: templates is success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 5
|
delay: 5
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
url: "http://{{ coordination_nodes[0] }}/_nodes/{{ (data_nodes | map('extract', hostvars, 'ansible_host') | list) | join(',') }}/stats/fs"
|
url: "http://{{ coordination_nodes[0] }}/_nodes/{{ (data_nodes | map('extract', hostvars, 'ansible_host') | list) | join(',') }}/stats/fs"
|
||||||
method: GET
|
method: GET
|
||||||
register: elk_data
|
register: elk_data
|
||||||
|
environment:
|
||||||
|
no_proxy: "{{ coordination_nodes[0].split(':')[0] }}"
|
||||||
until:
|
until:
|
||||||
- elk_data is success and elk_data['json'] is defined
|
- elk_data is success and elk_data['json'] is defined
|
||||||
retries: 5
|
retries: 5
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
url: "http://{{ coordination_nodes[0] }}/_xpack/rollup/job/rollup_{{ index_name }}"
|
url: "http://{{ coordination_nodes[0] }}/_xpack/rollup/job/rollup_{{ index_name }}"
|
||||||
method: GET
|
method: GET
|
||||||
register: check_rollup
|
register: check_rollup
|
||||||
|
environment:
|
||||||
|
no_proxy: "{{ coordination_nodes[0].split(':')[0] }}"
|
||||||
until: check_rollup is success
|
until: check_rollup is success
|
||||||
retries: 3
|
retries: 3
|
||||||
delay: 5
|
delay: 5
|
||||||
@ -60,6 +62,8 @@
|
|||||||
status_code: "{{ item.status_code }}"
|
status_code: "{{ item.status_code }}"
|
||||||
body_format: json
|
body_format: json
|
||||||
register: elk_indexes
|
register: elk_indexes
|
||||||
|
environment:
|
||||||
|
no_proxy: "{{ coordination_nodes[0].split(':')[0] }}"
|
||||||
until: elk_indexes is success
|
until: elk_indexes is success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 5
|
delay: 5
|
||||||
|
Loading…
x
Reference in New Issue
Block a user