Red Hat Bugzilla – Bug 1447996
[RFE] Proxy support for Git access
Last modified: 2017-06-27 10:43:03 EDT
Description of problem:
CF is now having more an more integration with Git/Github. Many enterprise customers are using Proxy servers to filter access to internet pages. Not being able to configure a proxy for different providers or SCM systems could be a show stopper in such an environment.
Version-Release number of selected component (if applicable):
Ideally the proxy configuration should be specific for each individual SCM repository. e.g. public Git repos like Github used for the Ansible integration, could have a different proxy than internal repositories.
The setting should also be separate from provider specific proxy configuration.
with the new embedded Ansible, you can define a repository from which CF will clone the Playbooks. This repository can be an internal or external git repo. Including, but not limited to, github.com
Most enterprise customers only allow access to internet pages via Proxy Server. Currently it is not possible to define the proxy details which should be used to clone an external git repo.
The same applies to Automate. Since a while, you can define a git repo from which CF will clone the Automate domains. AFAIK right now it's also not possible to configure a proxy server for this.
Hope this helps,
A temporary workaround for this is as follows:
Navigate to /var/lib/awx/venv/tower/lib/python2.7/site-packages/awx/playbooks/project_update.yml
Add the proxy info to the hosts info starting on line 14 like this:
- hosts: all
save the file and try to pull down the repo again.
if you have a user:pass use this syntax:
sounds like it. I originally created this for the git support in Automate, where you can import code from git. Starting with 4.5 we can also import playbooks from git, which should have proxy support as well.
Ideally it would be perfect if you can configure the proxy per repository. Some repo could be on github, while another one could be on an internal git, making it important to differentiate.
*** This bug has been marked as a duplicate of bug 1461213 ***