Skip to content

Commit

Permalink
Brake the long lines into shorter ones
Browse files Browse the repository at this point in the history
  • Loading branch information
klention committed Dec 21, 2024
1 parent 73bbab9 commit 1e74ad8
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions automation/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,35 @@ 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: "{% if tls_cert_generate | bool %}hostssl{% else %}host{% endif %}", database: "all", user: "all", address: "0.0.0.0/0", method: "{{ postgresql_password_encryption_algorithm }}" }
# - { type: "{% if tls_cert_generate | bool %}hostssl{% else %}host{% endif %}", database: "mydatabase", user: "mydb-user", address: "192.168.0.0/24", method: "{{ postgresql_password_encryption_algorithm }}" }
# - { type: "{% if tls_cert_generate | bool %}hostssl{% else %}host{% endif %}", database: "all", user: "all", address: "192.168.0.0/24", method: "ident", options: "map=main" } # use pg_ident

- type: >
{% if tls_cert_generate | bool %}hostssl
{% else %}host
{% endif %}
database: "all"
user: "all"
address: "0.0.0.0/0"
method: "{{ postgresql_password_encryption_algorithm }}"
# - type: >
# {% if tls_cert_generate | bool %}hostssl
# {% else %}host
# {% endif %}
# database: "mydatabase"
# user: "mydb-user"
# address: "192.168.0.0/24"
# method: "{{ postgresql_password_encryption_algorithm }}"

# - type: >
# {% if tls_cert_generate | bool %}hostssl
# {% else %}host
# {% endif %}
# database: "all"
# user: "all"
# address: "192.168.0.0/24"
# method: "ident"
# options: "map=main" # use pg_ident
# list of lines that Patroni will use to generate pg_ident.conf

postgresql_pg_ident: []
# - { mapname: "main", system_username: "postgres", pg_username: "backup" }
# - { mapname: "", system_username: "", pg_username: "" }
Expand Down

0 comments on commit 1e74ad8

Please sign in to comment.