mysqld_exporter: Initial version of role
This commit is contained in:
parent
5751c77b8f
commit
8bc5793d70
7 changed files with 125 additions and 0 deletions
6
roles/mysqld_exporter/templates/my.cnf.j2
Normal file
6
roles/mysqld_exporter/templates/my.cnf.j2
Normal file
|
@ -0,0 +1,6 @@
|
|||
[client]
|
||||
user = mysqld_exporter
|
||||
password = {{ mysqld_exporter_pass }}
|
||||
ssl-cert = {{ tls_certs }}/{{ inventory_hostname }}.crt
|
||||
ssl-key = {{ tls_private }}/{{ inventory_hostname }}.key
|
||||
ssl-ca = {{ tls_certs }}/ca.crt
|
11
roles/mysqld_exporter/templates/web-config.yml.j2
Normal file
11
roles/mysqld_exporter/templates/web-config.yml.j2
Normal file
|
@ -0,0 +1,11 @@
|
|||
tls_server_config:
|
||||
key_file: {{ tls_private }}/{{ inventory_hostname }}.key
|
||||
cert_file: {{ tls_certs }}/{{ inventory_hostname }}.crt
|
||||
client_ca_file: {{ tls_certs }}/ca.crt
|
||||
client_auth_type: RequireAndVerifyClientCert
|
||||
client_allowed_sans:
|
||||
- prometheus01.home.foo.sh
|
||||
- prometheus02.home.foo.sh
|
||||
- prometheus03.home.foo.sh
|
||||
- prometheus04.home.foo.sh
|
||||
min_version: TLS13
|
Loading…
Add table
Add a link
Reference in a new issue