apache / trafficcontrol

Apache Traffic Control is an Open Source implementation of a Content Delivery Network
https://trafficcontrol.apache.org/
Apache License 2.0
1.06k stars 344 forks source link

Ansible pg_hba.conf.j2 contains Docker IP for telegraf user instead of localhost #6136

Open rawlinp opened 3 years ago

rawlinp commented 3 years ago

This Bug Report affects these Traffic Control components:

Current behavior:

https://github.com/apache/trafficcontrol/blob/9fa6c299271ef06075eec711ff1ff6805093f92b/infrastructure/ansible/roles/traffic_opsdb/templates/pg_hba.conf.j2#L170 This only allows the telegraf user to make connections to postgres when it's running in a local Docker container (172.18.0.1/32 is the local Docker IP address).

Expected behavior:

Change 172.18.0.1/32 to localhost, so that the telegraf user can connect via localhost.

Steps to reproduce:

Use the ansible automation to set up a lab environment, and run the telegraf service manually. Notice the errors about how it fails to connect to TODB over ::1.

ragen14 commented 3 years ago

picking this up

rawlinp commented 2 years ago

@ragen14 are you still working on this?