Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ansible/inventory/group_vars/db-servers/postgresql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ postgresql_user_privileges:
postgresql_default_auth_method: "md5"

postgresql_pg_hba_default:
# Allow OS postgres user to manage databases without a password
# Allow OS postgres user to manage databasepostgresql_admin_users without a password
- { type: local, database: all, user: "{{ postgresql_admin_user }}", address: "", method: "peer", comment: "" }
# Same for other users, as long as OS user matches PG user
# - { type: local, database: all, user: all, address: "", method: "peer", comment: '"local" is for Unix domain socket connections only' }
Expand All @@ -31,3 +31,5 @@ postgresql_pg_hba_default:
# - { type: host, database: replication, user: all, address: "127.0.0.1/32", method: "{{ postgresql_default_auth_method }}", comment: "" }
# - { type: host, database: replication, user: all, address: "::1/128", method: "{{ postgresql_default_auth_method }}", comment: "" }
- { type: host, database: all, user: all, address: "::1/128", method: "{{ postgresql_default_auth_method }}", comment: "IPv6 local connections:" }
# Application DB with designated user password access
- { type: local, database: "{{ elixir_release_name_code }}_prod", user: "{{ elixir_release_name_code }}", address: "", method: "md5", comment: "" }