Skip to content

Commit

Permalink
tls_cert_valid_days
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks committed Dec 18, 2024
1 parent 0aed35f commit dc7196a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion automation/roles/tls_certificate/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
group: "{{ tls_owner | default('postgres') }}"
mode: "{{ tls_cert_mode | default('0644') }}"
provider: "{{ tls_cert_provider | default('selfsigned') }}"
entrust_not_after: "{{ tls_cert_entrust_not_after | default('+3650d') }}"
entrust_not_after: "+{{ tls_cert_valid_days | default(3650) }}d"
1 change: 1 addition & 0 deletions automation/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ consul_services:

# TLS certificate (for PostgreSQL & PGBouncer)
tls_cert_generate: true
tls_cert_valid_days: 3650
tls_cert_path: "{{ postgresql_home_dir }}/tls/server.crt"
tls_privatekey_path: "{{ postgresql_home_dir }}/tls/server.key"
tls_owner: "postgres"
Expand Down

0 comments on commit dc7196a

Please sign in to comment.