Commit 59d64ae9 authored by Nugzar Gamtsemlidze's avatar Nugzar Gamtsemlidze
Browse files

Raise connect timeout in url request tasks, because timeout of 5 seconds is...

Raise connect timeout in url request tasks, because timeout of 5 seconds is not enough for hosts with low CPU resurces
parent 4d3e8f86
......@@ -175,7 +175,7 @@
password: "{{ elasticsearch_bootstrap_password.stdout }}"
method: GET
force_basic_auth: yes
timeout: 5
timeout: 10
status_code: 200
register: elastic_status
until: elastic_status.status == 200
......@@ -192,7 +192,7 @@
body: '{"password":"{{ elastic_elasticsearch_password }}"}'
force_basic_auth: yes
body_format: json
timeout: 5
timeout: 10
no_log: true
- name: Tell elasticsearch that it is running on single node (do not enter in yellow status because of replica 0)
......@@ -204,5 +204,5 @@
body: '{"index.number_of_replicas" : "0"}'
force_basic_auth: yes
body_format: json
timeout: 5
timeout: 10
no_log: true
......@@ -158,7 +158,7 @@
body: '{"password":"{{ kibana_elasticsearch_password }}"}'
force_basic_auth: yes
body_format: json
timeout: 5
timeout: 10
no_log: true
- name: Enable and start kibana service
......@@ -174,7 +174,7 @@
password: "{{ elastic_elasticsearch_password }}"
method: HEAD
force_basic_auth: yes
timeout: 5
timeout: 10
status_code: 200
register: kibana_status
until: kibana_status.status == 200
......
......@@ -170,7 +170,7 @@
regexp: "{{ item.regexp1 }}"
replace: "{{ item.replace }}"
with_items:
- { regexp1: 'curl', replace: 'curl -s -m 5 --connect-timeout 3 -uelastic:"{{ elastic_elasticsearch_password }}"'}
- { regexp1: 'curl', replace: 'curl -s -m 15 --connect-timeout 10 -uelastic:"{{ elastic_elasticsearch_password }}"'}
- { regexp1: 'http://localhost', replace: 'https://{{ was_server_hostname }}-elastic.{{ was_server_domainname }}'}
- { regexp1: ':9200', replace: ''}
no_log: true
......@@ -190,7 +190,7 @@
uri:
url: 'https://{{ was_server_hostname }}-ui.{{ was_server_domainname }}/login'
method: HEAD
timeout: 5
timeout: 10
register: wifimon_http_get_code
until: wifimon_http_get_code.status == 200
delay: 30
......@@ -199,7 +199,7 @@
- name: Import wifimon dashboards into kibana
command:
cmd: |
curl -s -m 10 --connect-timeout 5 -u elastic:"{{ elastic_elasticsearch_password }}" -H "kbn-xsrf: true" --form file=@/usr/lib/wifimon/kibana-import.ndjson -X POST 'https://{{ was_server_hostname }}-kibana.{{ was_server_domainname }}/api/saved_objects/_import'
curl -s -m 15 --connect-timeout 10 -u elastic:"{{ elastic_elasticsearch_password }}" -H "kbn-xsrf: true" --form file=@/usr/lib/wifimon/kibana-import.ndjson -X POST 'https://{{ was_server_hostname }}-kibana.{{ was_server_domainname }}/api/saved_objects/_import'
args:
warn: false
no_log: true
......@@ -206,7 +206,7 @@
body: '{"settings" : {"index" : {"number_of_shards" : 3, "number_of_replicas" : 0 }}}'
force_basic_auth: yes
body_format: json
timeout: 5
timeout: 10
with_items:
- radiuslogs
- dhcplogs
......@@ -221,7 +221,7 @@
body: '{"password":"{{ logstash_system_user_password }}"}'
force_basic_auth: yes
body_format: json
timeout: 5
timeout: 10
no_log: true
- name: Create logstash_writer role in elasticsearch
......@@ -233,7 +233,7 @@
body: '{"cluster": ["monitor","manage_index_templates"],"indices": [{"names": ["radiuslogs","dhcplogs"],"privileges": ["write","create_index"],"field_security": {"grant": ["*"]}}],"run_as": [],"metadata": {},"transient_metadata": {"enabled": true}}'
force_basic_auth: yes
body_format: json
timeout: 5
timeout: 10
no_log: true
- name: Create logstash_writer user in elasticsearch
......@@ -245,7 +245,7 @@
body: '{"username": "logstash_writer","roles": ["logstash_writer_role"],"full_name": null,"email": null,"password": "{{ logstash_writer_user_password }}","enabled": true}'
force_basic_auth: yes
body_format: json
timeout: 5
timeout: 10
no_log: true
- name: Create ILM policy for wifimon in elasticsearch
......@@ -257,7 +257,7 @@
body: '{"policy": {"phases": {"delete": {"min_age": "1d","actions": {"delete": {}}}}}}'
force_basic_auth: yes
body_format: json
timeout: 5
timeout: 10
no_log: true
- name: Apply ILM policy for wifimon in elasticsearch
......@@ -269,7 +269,7 @@
body: '{"index_patterns": ["radiuslogs", "dhcplogs"],"settings": {"index.lifecycle.name": "wifimon_policy"}}'
force_basic_auth: yes
body_format: json
timeout: 5
timeout: 10
no_log: true
- name: Enable and start logstash service
......@@ -282,7 +282,7 @@
uri:
url: 'http://localhost:9600/?pretty'
method: HEAD
timeout: 5
timeout: 10
status_code: 200
register: logstash_status
until: logstash_status.status == 200
......
......@@ -338,7 +338,7 @@
password: "{{ elasticsearch_bootstrap_password.stdout }}"
method: GET
force_basic_auth: yes
timeout: 5
timeout: 10
status_code: 200
register: elastic_status
until: elastic_status.status == 200
......@@ -355,7 +355,7 @@
body: '{"password":"{{ elastic_elasticsearch_password }}"}'
force_basic_auth: yes
body_format: json
timeout: 5
timeout: 10
no_log: true
- name: Set kibana_system password for elasticsearch
......@@ -367,7 +367,7 @@
body: '{"password":"{{ kibana_elasticsearch_password }}"}'
force_basic_auth: yes
body_format: json
timeout: 5
timeout: 10
no_log: true
- name: Set logstash_system password for elasticsearch
......@@ -379,7 +379,7 @@
body: '{"password":"{{ logstash_system_user_password }}"}'
force_basic_auth: yes
body_format: json
timeout: 5
timeout: 10
no_log: true
- name: Create radiuslogs/dhcplogs indices in elasticsearch
......@@ -391,7 +391,7 @@
body: '{"settings" : {"index" : {"number_of_shards" : 3, "number_of_replicas" : 0 }}}'
force_basic_auth: yes
body_format: json
timeout: 5
timeout: 10
with_items:
- radiuslogs
- dhcplogs
......@@ -406,7 +406,7 @@
body: '{"cluster": ["monitor","manage_index_templates"],"indices": [{"names": ["radiuslogs","dhcplogs"],"privileges": ["write","create_index"],"field_security": {"grant": ["*"]}}],"run_as": [],"metadata": {},"transient_metadata": {"enabled": true}}'
force_basic_auth: yes
body_format: json
timeout: 5
timeout: 10
no_log: true
- name: Create logstash_writer user in elasticsearch
......@@ -418,7 +418,7 @@
body: '{"username": "logstash_writer","roles": ["logstash_writer_role"],"full_name": null,"email": null,"password": "{{ logstash_writer_user_password }}","enabled": true}'
force_basic_auth: yes
body_format: json
timeout: 5
timeout: 10
no_log: true
- name: Create ILM policy for wifimon in elasticsearch
......@@ -430,7 +430,7 @@
body: '{"policy": {"phases": {"delete": {"min_age": "1d","actions": {"delete": {}}}}}}'
force_basic_auth: yes
body_format: json
timeout: 5
timeout: 10
no_log: true
- name: Apply ILM policy for wifimon in elasticsearch
......@@ -442,7 +442,7 @@
body: '{"index_patterns": ["radiuslogs", "dhcplogs"],"settings": {"index.lifecycle.name": "wifimon_policy"}}'
force_basic_auth: yes
body_format: json
timeout: 5
timeout: 10
no_log: true
- name: Enable and start kibana service
......@@ -458,7 +458,7 @@
password: "{{ elastic_elasticsearch_password }}"
method: HEAD
force_basic_auth: yes
timeout: 5
timeout: 10
status_code: 200
register: kibana_status
until: kibana_status.status == 200
......@@ -476,7 +476,7 @@
uri:
url: 'http://localhost:9600/?pretty'
method: HEAD
timeout: 5
timeout: 10
status_code: 200
register: logstash_status
until: logstash_status.status == 200
......@@ -513,7 +513,7 @@
regexp: "{{ item.regexp1 }}"
replace: "{{ item.replace }}"
with_items:
- { regexp1: 'curl', replace: 'curl -s -m 5 --connect-timeout 3 -uelastic:"{{ elastic_elasticsearch_password }}"'}
- { regexp1: 'curl', replace: 'curl -s -m 15 --connect-timeout 10 -uelastic:"{{ elastic_elasticsearch_password }}"'}
- { regexp1: 'http://localhost', replace: 'https://{{ was_server_hostname }}-elastic.{{ was_server_domainname }}'}
- { regexp1: ':9200', replace: ''}
no_log: true
......@@ -531,7 +531,7 @@
body: '{"index.number_of_replicas" : "0"}'
force_basic_auth: yes
body_format: json
timeout: 5
timeout: 10
no_log: true
- name: Enable and start wifimon service
......@@ -545,7 +545,7 @@
uri:
url: 'https://{{ was_server_hostname }}-ui.{{ was_server_domainname }}/login'
method: HEAD
timeout: 5
timeout: 10
register: wifimon_http_get_code
until: wifimon_http_get_code.status == 200
delay: 30
......@@ -554,7 +554,7 @@
- name: Import wifimon dashboards into kibana
command:
cmd: |
curl -s -m 10 --connect-timeout 5 -u elastic:"{{ elastic_elasticsearch_password }}" -H "kbn-xsrf: true" --form file=@/usr/lib/wifimon/kibana-import.ndjson -X POST 'https://{{ was_server_hostname }}-kibana.{{ was_server_domainname }}/api/saved_objects/_import'
curl -s -m 15 --connect-timeout 10 -u elastic:"{{ elastic_elasticsearch_password }}" -H "kbn-xsrf: true" --form file=@/usr/lib/wifimon/kibana-import.ndjson -X POST 'https://{{ was_server_hostname }}-kibana.{{ was_server_domainname }}/api/saved_objects/_import'
args:
warn: false
no_log: true
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment