Comments (6)
Not sure there is a programmatic way to do what you need. The first step is to add the http_proxy
and/or https_proxy
environment variables to the container.yml
file, like so:
version: "2"
settings:
save_conductor_container: false
conductor:
environment:
http_proxy: http://my-proxy-server
https_proxy: https://my-proxy_server
vars_files:
- develop.yml
services:
django:
...
environment:
- C_FORCE_ROOT=1
- http_proxy=http://my-proxy-server
- https_proxy=https://my-proxy-server
....
gulp:
...
environment:
- http_proxy=http://my-proxy-server
- https_proxy=https://my-proxy-server
...
registries: {}
from galaxy.
From @TemperingPick on July 24, 2017 16:40
Is there any where else that I might need to add the environmental variables? I've added them to the main container.yml but the get_url module is still failing even when it says use_proxy=true. I know it's something with the containers because I can wget the file from the server.
from galaxy.
As an experiment, you might try modifying the task directly, so that it looks like the following:
- name: Get the file
get_url:
url: ...
dest: ....
environment:
http_proxy: http://my-proxy-server
See http://docs.ansible.com/ansible/latest/playbooks_environment.html for more details, if needed.
I was hoping to avoid modifying the tasks by setting the environment variables at the service level in container.yml
.
from galaxy.
From @TemperingPick on July 24, 2017 19:56
@chouseknecht
Doesn't look like get_url supports the environment parameter. It only supports the use_proxy which is set as true.
" "msg": "Unsupported parameters for (get_url) module: environment. Supported parameters include: attributes,backup,checksum,client_cert,client_key,content,delimiter,dest,directory_mode,follow,force,force_basic_auth,group,headers,http_agent,mode,owner,regexp,remote_src,selevel,serole,setype,seuser,sha256sum,src,timeout,tmp_dest,unsafe_writes,url,url_password,url_username,use_proxy,validate_certs""
from galaxy.
It's not a module parameter. Take a look at the example below. The module name and environment
should be at the same indentation level.
- apt: name=cobbler state=installed
environment:
http_proxy: http://proxy.example.com:8080
from galaxy.
From @TemperingPick on July 25, 2017 2:57
Yep that did it! Thanks so much!! If there's a place for it I'd love to document which steps needed to have the environment step added so no one else needs to try and fight with all of this.
from galaxy.
Related Issues (20)
- namespace: digitalegesellschaft HOT 2
- namespace: greenitsolutions and opendc HOT 1
- namespace: sennadx HOT 1
- "role install" leads to collection being cloned for scm sourced collections
- namespace: varnish HOT 2
- Cannot import roles from GitHub Organzation with different user than the one in the organization namespace. HOT 6
- namespace: Namespace request for Commvault HOT 1
- Create a namespace for github organization - namespace `godepict` under account `godepict-dev` HOT 1
- namespace: rancherfederal HOT 1
- namespace: fw-oss HOT 1
- namespace: semrush HOT 1
- requesting namespace named andavarapu HOT 2
- Requesting namespace `g1eng` HOT 1
- namespace: derfeldev HOT 1
- Namespace request: `infisical` HOT 1
- Ansible Galaxy Download page has broken HOT 5
- Failure to download modules HOT 2
- Namespace Request for Cloud68.co HOT 1
- namespace: e4_computer_engineering HOT 3
- namespace: seapath HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from galaxy.