Skip to content

Commit

Permalink
add sslrootcert to database options conditionally (fixes #1215)
Browse files Browse the repository at this point in the history
  • Loading branch information
manfuin committed Feb 8, 2023
1 parent 234a10d commit ce48812
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/installer/templates/settings/credentials.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ DATABASES = {
'HOST': '{{ awx_postgres_host }}',
'PORT': "{{ awx_postgres_port }}",
'OPTIONS': { 'sslmode': '{{ awx_postgres_sslmode }}',
{%- if awx_postgres_sslmode == 'verify-ca' or awx_postgres_sslmode == 'verify-full' %}
'sslrootcert': '{{ ca_trust_bundle }}',
{%- endif %}
},
}
}
Expand Down

0 comments on commit ce48812

Please sign in to comment.