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:
Alex Vandiver
2021-06-14 00:14:46 -07:00
parent a9f6764d8c
commit dd90083ed7

View File

@@ -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 %>"