Commit 02bef86b authored by Arthur Lutz's avatar Arthur Lutz
Browse files

[es] add ssl-show-warn setting for cnx

parent 9296dc33b53d
Pipeline #33682 passed with stage
in 1 minute and 20 seconds
......@@ -157,6 +157,7 @@ def get_connection(config):
es = connections.create_connection(
hosts=locations.split(","),
verify_certs=config["elasticsearch-verify-certs"],
ssl_show_warn=config["elasticsearch-ssl-show-warn"],
timeout=20,
)
return es
......
......@@ -34,4 +34,15 @@ options = (
"level": 5,
},
),
(
"elasticsearch-ssl-show-warn",
{
"type": "yn",
"default": True,
"help": "Elastic Search connection ssl-show-warn variable"
"(set to no if you want to suppress ssl warnings when verify cert is no",
"group": "elasticsearch",
"level": 5,
},
),
)
Markdown is supported
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