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.
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
tolocalhost
, 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
.