From 1e74ad83140cf829bce090ebc63aa14c371ab5b1 Mon Sep 17 00:00:00 2001 From: klention Date: Sat, 21 Dec 2024 15:45:26 +0100 Subject: [PATCH] Brake the long lines into shorter ones --- automation/vars/main.yml | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/automation/vars/main.yml b/automation/vars/main.yml index bb187268a..4e4aa3ef5 100644 --- a/automation/vars/main.yml +++ b/automation/vars/main.yml @@ -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: "" }