Skip to content

Commit 1273708

Browse files
committed
Make mysql connection honor disabling of tls verify
The `icingadb_database_tls_insecure` is ignored when importing the IcingaDB database schema. This PR will fix that. Since this only fixes already documented functionality there's no extra documentation to be added.
1 parent 2bbe2b3 commit 1273708

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

roles/icingadb/tasks/manage_schema_mysql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
{% if icingadb_database_ca is defined %} --ssl-ca "{{ icingadb_database_ca }}" {%- endif %}
1111
{% if icingadb_database_cert is defined %} --ssl-cert "{{ icingadb_database_cert }}" {%- endif %}
1212
{% if icingadb_database_key is defined %} --ssl-key "{{ icingadb_database_key }}" {%- endif %}
13+
{% if icingadb_database_tls_insecure is defined and icingadb_database_tls_insecure | bool %} --ssl-verify-server-cert=off {%- endif %}
1314
-u "{{ icingadb_database_user | default('icingadb') }}"
1415
-p{{ icingadb_database_password | quote }}
1516
"{{ icingadb_database_name | default('icingadb') }}"

0 commit comments

Comments
 (0)