zoneminder: Add TLS when connecting to remote mysql
This commit is contained in:
parent
b535a484a3
commit
4d4b61d5d0
2 changed files with 12 additions and 0 deletions
|
@ -51,6 +51,13 @@
|
||||||
notify: restart zoneminder
|
notify: restart zoneminder
|
||||||
when: zm_mysql_host != "localhost"
|
when: zm_mysql_host != "localhost"
|
||||||
|
|
||||||
|
- name: allow zoneminder to read host private key
|
||||||
|
user:
|
||||||
|
name: apache
|
||||||
|
groups: hostkey
|
||||||
|
append: true
|
||||||
|
when: zm_mysql_host != "localhost"
|
||||||
|
|
||||||
# selinux doesn't allow create this
|
# selinux doesn't allow create this
|
||||||
- name: create stub web log
|
- name: create stub web log
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -6,3 +6,8 @@ ZM_DB_HOST={{ zm_mysql_host }}
|
||||||
ZM_DB_NAME={{ zm_mysql_db}}
|
ZM_DB_NAME={{ zm_mysql_db}}
|
||||||
ZM_DB_USER={{ zm_mysql_user }}
|
ZM_DB_USER={{ zm_mysql_user }}
|
||||||
ZM_DB_PASS={{ zm_mysql_pass }}
|
ZM_DB_PASS={{ zm_mysql_pass }}
|
||||||
|
{% if zm_mysql_host != "localhost" %}
|
||||||
|
ZM_DB_SSL_CA_CERT={{ tls_certs }}/ca.crt
|
||||||
|
ZM_DB_SSL_CLIENT_KEY={{ tls_private }}/{{ inventory_hostname }}.key
|
||||||
|
ZM_DB_SSL_CLIENT_CERT={{ tls_certs }}/{{ inventory_hostname }}.crt
|
||||||
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue