Fix the path of the letsencrypt certificates.
This commit is contained in:
parent
d36c88673c
commit
6712574bd6
|
@ -125,9 +125,9 @@ psql_streaming_replication_config:
|
||||||
psql_enable_ssl: false
|
psql_enable_ssl: false
|
||||||
psql_force_ssl_client_connection: false
|
psql_force_ssl_client_connection: false
|
||||||
postgresql_letsencrypt_managed: '{% if letsencrypt_acme_install is defined and letsencrypt_acme_install %}true{% else %}false{% endif %}'
|
postgresql_letsencrypt_managed: '{% if letsencrypt_acme_install is defined and letsencrypt_acme_install %}true{% else %}false{% endif %}'
|
||||||
psql_ssl_privkey_global_file: '{% if postgresql_letsencrypt_managed %}/var/lib/acme/live/{{ ansible_fqdn }}/privkey{% else %}{{ pki_dir }}/keys/{{ ansible_fqdn}}-key.pem{% endif %}'
|
psql_ssl_privkey_global_file: '{% if postgresql_letsencrypt_managed %}{{ letsencrypt_acme_sh_certificates_install_path }}/privkey{% else %}{{ pki_dir }}/keys/{{ ansible_fqdn}}-key.pem{% endif %}'
|
||||||
psql_ssl_privkey_file: /etc/pki/postgresql/postgresql.key
|
psql_ssl_privkey_file: /etc/pki/postgresql/postgresql.key
|
||||||
psql_ssl_cert_file: '{% if postgresql_letsencrypt_managed %}/var/lib/acme/live/{{ ansible_fqdn }}/fullchain{% else %}{{ pki_dir }}/certs/{{ ansible_fqdn}}.pem{% endif %}'
|
psql_ssl_cert_file: '{% if postgresql_letsencrypt_managed %}{{ letsencrypt_acme_sh_certificates_install_path }}/fullchain{% else %}{{ pki_dir }}/certs/{{ ansible_fqdn}}.pem{% endif %}'
|
||||||
# In CentOS/RHEL is /etc/pki/tls/cert.pem
|
# In CentOS/RHEL is /etc/pki/tls/cert.pem
|
||||||
psql_ssl_ca_file: '/etc/ssl/certs/ca-certificates.crt'
|
psql_ssl_ca_file: '/etc/ssl/certs/ca-certificates.crt'
|
||||||
psql_conf_ssl_parameters:
|
psql_conf_ssl_parameters:
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
H_NAME=$( hostname -f )
|
H_NAME=$( hostname -f )
|
||||||
LE_SERVICES_SCRIPT_DIR=/usr/lib/acme/hooks
|
LE_SERVICES_SCRIPT_DIR=/usr/lib/acme/hooks
|
||||||
LE_CERTS_DIR=/var/lib/acme/live/$H_NAME
|
LE_CERTS_DIR={{ letsencrypt_acme_sh_certificates_install_path }}
|
||||||
LE_LOG_DIR=/var/log/letsencrypt
|
LE_LOG_DIR=/var/log/letsencrypt
|
||||||
POSTGRESQL_CERTDIR=/etc/pki/postgresql
|
POSTGRESQL_CERTDIR=/etc/pki/postgresql
|
||||||
POSTGRESQL_KEYFILE=$POSTGRESQL_CERTDIR/postgresql.key
|
POSTGRESQL_KEYFILE=$POSTGRESQL_CERTDIR/postgresql.key
|
||||||
|
|
Loading…
Reference in New Issue