Skip to content

Commit

Permalink
host_type
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks authored Dec 26, 2024
1 parent 9c554f6 commit ddfea61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions automation/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,11 @@ postgresql_pg_hba:
- { type: "local", database: "all", user: "all", address: "", method: "{{ postgresql_password_encryption_algorithm }}" }
- { type: "host", database: "all", user: "all", address: "127.0.0.1/32", method: "{{ postgresql_password_encryption_algorithm }}" }
- { type: "host", database: "all", user: "all", address: "::1/128", method: "{{ postgresql_password_encryption_algorithm }}" }
- { type: "{{ hba_host_type }}", database: "all", user: "all", address: "0.0.0.0/0", method: "{{ postgresql_password_encryption_algorithm }}" }
# - { type: "{{ hba_host_type }}", database: "mydatabase", user: "mydb-user", address: "192.168.0.0/24", method: "{{ postgresql_password_encryption_algorithm }}" }
# - { type: "{{ hba_host_type }}", database: "all", user: "all", address: "192.168.0.0/24", method: "ident", options: "map=main" } # use pg_ident
- { type: "{{ host_type }}", database: "all", user: "all", address: "0.0.0.0/0", method: "{{ postgresql_password_encryption_algorithm }}" }
# - { type: "{{ host_type }}", database: "mydatabase", user: "mydb-user", address: "192.168.0.0/24", method: "{{ postgresql_password_encryption_algorithm }}" }
# - { type: "{{ host_type }}", database: "all", user: "all", address: "192.168.0.0/24", method: "ident", options: "map=main" } # use pg_ident

hba_host_type: "{{ 'hostssl' if tls_cert_generate | bool else 'host' }}"
host_type: "{{ 'hostssl' if tls_cert_generate | bool else 'host' }}"

# list of lines that Patroni will use to generate pg_ident.conf
postgresql_pg_ident: []
Expand Down

0 comments on commit ddfea61

Please sign in to comment.