This commit is contained in:
histausse 2021-09-21 17:21:37 +02:00
parent bac4960ebb
commit 9b1307fba8
Signed by: histausse
GPG key ID: 67486F107F62E9E9
2 changed files with 3 additions and 3 deletions

View file

@ -67,7 +67,7 @@
dest: "/tmp/ansible_hacky_pki_ca.key" dest: "/tmp/ansible_hacky_pki_ca.key"
mode: u=rw,g=,o= mode: u=rw,g=,o=
delegate_to: localhost delegate_to: localhost
no_log: yes no_log: true
- name: Sign the certificate - name: Sign the certificate
become: false become: false

View file

@ -1,7 +1,7 @@
{{ ansible_managed | comment }} {{ ansible_managed | comment }}
tls_server_config: tls_server_config:
cert_file: "/etc/node_exporter/{{ lan_address }}.crt" cert_file: "/etc/node_exporter/node-exp-{{ lan_address }}.crt"
key_file: "/etc/node_exporter/{{ lan_address }}.key" key_file: "/etc/node_exporter/node-exp-{{ lan_address }}.key"
client_auth_type: "RequireAndVerifyClientCert" client_auth_type: "RequireAndVerifyClientCert"
client_ca_file: "/etc/node_exporter/ca.crt" client_ca_file: "/etc/node_exporter/ca.crt"