VictoriaMetrics / ansible-playbooks

Ansible Playbooks for Victoria Metrics monorepo
Apache License 2.0
96 stars 33 forks source link

Unable to use `single` role behind a proxy server #68

Open r3boot opened 1 month ago

r3boot commented 1 month ago

I am trying to use the single role to deploy a single instance of VictoriaMetrics. In order to do this, I need to tunnel all outgoing http requests via a proxy server. Unfortunately, the single role explicitly disables proxies, as can be seen on the following lines:

https://github.com/VictoriaMetrics/ansible-playbooks/blob/78cce5dc11f9ced0bf6513fccb1a5cfd5a2c52a7/roles/single/tasks/install.yml#L59 https://github.com/VictoriaMetrics/ansible-playbooks/blob/78cce5dc11f9ced0bf6513fccb1a5cfd5a2c52a7/roles/single/tasks/install.yml#L87

Is this intentional behaviour? If so, how can I apply this role behind a proxy?

r3boot commented 1 month ago

As a followup, the same applies to the cluster roles.

zekker6 commented 1 month ago

Hello @r3boot, the idea there is to download binaries to control host and then distribute binaries to target hosts. Do I understand it right that in your case control host is also required to use a proxy?