mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
puppet: Provide FQDN of self as URI, so the certificate validates.
Failure to do this results in: ``` psql: error: failed to connect to `host=localhost user=zulip database=zulip`: failed to write startup message (x509: certificate is valid for [redacted], not localhost) ```
This commit is contained in:
@@ -27,7 +27,7 @@ db_service:
|
|||||||
databases:
|
databases:
|
||||||
- name: "<%= @hostname %>"
|
- name: "<%= @hostname %>"
|
||||||
protocol: "postgres"
|
protocol: "postgres"
|
||||||
uri: "localhost:5432"
|
uri: "<%= @fqdn %>:5432"
|
||||||
ca_cert_file: /etc/ssl/certs/teleport-ca.crt
|
ca_cert_file: /etc/ssl/certs/teleport-ca.crt
|
||||||
static_labels:
|
static_labels:
|
||||||
hostname: "<%= @hostname %>"
|
hostname: "<%= @hostname %>"
|
||||||
|
|||||||
Reference in New Issue
Block a user