Open EmptyByte opened 4 weeks ago
I think there is already PR #428 for this, will be part of next patch release
Indeed my PR will fix that, it should be method in the template file (with host as the loop_var, and the var should be tested by JFrog defined as:
# Set the hosts that can access the database
# The first allows SSL with password from the same subnet
# The second does not require SSL from localhost
# The third denies all others
postgres_allowed_hosts:
- {
type: "hostssl",
database: "all",
user: "all",
address: "samenet",
method: "password",
}
- {
type: "host",
database: "all",
user: "all",
address: "127.0.0.1/0",
method: "password"
}
- {
type: "hostnossl",
database: "all",
user: "all",
address: "0.0.0.0/0",
method: "reject",
}
There is a mix between method and auth to configure pg_hba.conf. Seems to default to trust always.
postgres/defaults/main.yml
postgres/templates/pg_hba.conf.j2
postgres\README.md