Skip to content

Commit 0b2d126

Browse files
committed
fix: postgresql_cert_name didn't work properly, using this parameter
caused an error. Because there was a missing variable __pg_server_crt definition in the correct context. This commit also enhances the description of postgresql_cern_name variable. Related: SYSROLES-157
1 parent 6e0c8bd commit 0b2d126

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ postgresql_ssl_enable: true
9292
If you want to use your own certificate and private key, use the
9393
`postgresql_cert_name` variable to specify the certificate name. You must keep
9494
both certificate and key files in the same directory and under the same name
95-
with the `.crt` and `.key` suffixes.
95+
with the `.crt` and `.key` suffixes on the managed node. The value should be an
96+
absolute path.
9697

9798
For example, if your certificate file is located in `/etc/certs/server.crt` and
9899
your private key in `/etc/certs/server.key`, set the `postgresql_cert_name`

tasks/certificate.yml

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
- __postgresql_cert.stat.exists
5353
- __postgresql_key.stat.exists
5454
- postgresql_certificates | length < 1
55+
vars:
56+
__pg_server_crt: "{{ __postgresql_data_dir }}/server.crt"
57+
__pg_server_key: "{{ __postgresql_data_dir }}/server.key"
5558
block:
5659
- name: Install certificate file
5760
file:

0 commit comments

Comments
 (0)