Comments (9)
are you saying environment
is not respected in this role? that would be a bug :)
from rvm1-ansible.
@rngadam What are you proposing, to have the rvm role write out the ~/.curlrc
based on the value you provide to the variable or just a rvm1_http_proxy
variable which you can set and use in your custom tasks instead of the curlrc?
from rvm1-ansible.
it has been a month without feedback - closing the issue - please let us know if you can provide the requested details and we will reopen
from rvm1-ansible.
Sorry, it's because I worked around it myself. I ended up creating a curlrc.j2 with the following content:
{% if host_proxy %}
proxy = {{host_proxy}}
{% endif %}
...and setting up as appropriate in my group_vars:
host_proxy: http://10.0.2.2:3128/
it seems a bit hacky?
from rvm1-ansible.
what's the status of this issue?
from rvm1-ansible.
Writing out a curlrc like this seems a little out of scope for the role unless I'm missing something? What do you think @mpapis?
from rvm1-ansible.
indeed, it should be up to the admin to set up proxies, a separate role to setup proxies could be an option - still out of scope - closing this.
from rvm1-ansible.
I agree that writing a curlrc is out of scope, but I would argue that proxy support in general is not. The relevant tasks should simply allow passing like an environment like we do for everything else: environment: '{{ proxy_env }}'
. How about an rvm1_environment? Because there are various ones to set besides http_proxy
including CURL_CA_BUNDLE
if your org has their own certificate.
The main argument for this would be 1) users of rvm1 shouldn't have to know specific implementation details, like which tools are used to download, and configure them each specifically via a curlrc, and 2) any other tasks we write ourselves work fine with environment
, there's no need to provision a curlrc for anything but rvm1 in our case anyway.
What do you think?
from rvm1-ansible.
@mpapis as far as I understood it, and last I tried, setting environment at the role level is not supported. That is, I cannot do roles: { role: rvm_io.rvm1-ruby, environment: '{{ my_env }}' }
Is that wrong or is there another way I can be providing an environment to rvm1?
from rvm1-ansible.
Related Issues (20)
- I don't get it. HOT 2
- Installing bundler fails when using a <major>.<minor>-latest version of Ruby
- bundler conflict HOT 3
- Regression: rubies are not installed HOT 6
- Configuration of autolibs when RVM is already installed
- How to do mixed-user install with this?
- Improving installation of Bundler HOT 11
- Ansible --check mode fails on "Delete ruby if relevant" HOT 1
- Migrate to a new "Continuous Integration as a Service" Platform HOT 1
- Problem installing rubies with rvm1_user HOT 1
- Use rvm/ubuntu_rvm ppa for ubuntu distributions
- Error while evaluating conditional (not ansible_check_mode and rvm1_gpg_keys != '' and (gpg_import is not defined or gpg_import.rc != 0)): 'dict object' has no attribute 'rc'
- Deprecation warnings HOT 1
- Import GPG keys from keyservers] / ipv4.pool.sks-keyservers.net HOT 2
- Ruby 3.0.0 is not installing HOT 4
- ruby install hangs on user input HOT 12
- CI Builds are not running HOT 4
- Releases not being pulled by Ansible Galaxy HOT 16
- Install bundler if not installed - fail HOT 2
- newb documentation question HOT 9
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 rvm1-ansible.