Add Elasticsearch SSL support to kibana
Change-Id: I61841f409b8b590a0d110e1ebc8782ace471f442
PROD-related: PROD-29185
diff --git a/_states/kibana_object.py b/_states/kibana_object.py
index e8ac651..635e5a0 100644
--- a/_states/kibana_object.py
+++ b/_states/kibana_object.py
@@ -58,7 +58,10 @@
try:
headers = {'Content-type': 'application/json'}
- response = requests.put(url, headers=headers, json=kibana_content)
+ response = requests.put(url,
+ headers=headers,
+ json=kibana_content,
+ verify=False)
except requests.exceptions.RequestException as exc:
ret['result'] = False
ret['comment'] = ("Failed to create Kibana object {0}\n"
@@ -94,7 +97,7 @@
return ret
try:
- response = requests.delete(url)
+ response = requests.delete(url, verify=False)
except requests.exceptions.RequestException as exc:
ret['result'] = False
ret['comment'] = ("Failed to delete Kibana object {0}\n"
@@ -130,5 +133,5 @@
if not index:
return False, 'Cannot get the index needed by Kibana client'
- url = "http://{0}/{1}/{2}/{3}".format(url, index, kibana_type, name)
+ url = "{0}/{1}/{2}/{3}".format(url, index, kibana_type, name)
return url, index