Comments (8)
This issue came up during a capistrano deployment when running bundler over ssh on the deployment machine.
from puppet-rbenv.
PS: great module (saved me a ton of time)!
from puppet-rbenv.
Did you try using the .profile instead of .bashrc? This should fix your problem.
from puppet-rbenv.
@alup Thanks for having a look at this!
Unfortunately bash doesn't care about a my .profile
when running over ssh (see bash(1)):
Bash attempts to determine when it is being run with its standard input connected to a net-
work connection, as when executed by the remote shell daemon, usually rshd, or the secure
shell daemon sshd. If bash determines it is being run in this fashion, it reads and exe-
cutes commands from ~/.bashrc and ~/.bashrc, if these files exist and are readable.
I'll fix this in my fork.
Just send me a line, if you want to have a pull request.
from puppet-rbenv.
@bjoernalbers Is this still an issue?
from puppet-rbenv.
I was just having difficulties with my rbenv install
command and switching over to @bjoernalbers fork solved my problem without having to change anything else. This was with a CentOS 6.3 image.
from puppet-rbenv.
I added this step to my manifest, it may be worth adding into the rbenv module itself. It worked around the .bashrc / .bash_profile / .profile problem for me.
file { '/etc/profile.d/rbenv.sh':
ensure => present,
mode => '0644',
owner => 'root',
group => 'root',
content => '[ -e ~/.rbenvrc ] && . ~/.rbenvrc'
}
from puppet-rbenv.
I was seeing the .profile get loaded on Ubuntu 14.x but not on CentOS 6.5 and @ghost's code to init.pp and then 'require ::rbenv' to rbenv::install makes it work on my nodes. I'll submit a PR if I get some time.
from puppet-rbenv.
Related Issues (20)
- Tag released version HOT 1
- Global ruby version not set correctly after sourcing .rbenvrc HOT 1
- rbenv plugins always cause puppet changes HOT 1
- module install fails in 3.7 due to symlink under spec HOT 2
- Plugin Repo onlyif test is broken HOT 1
- Unable to install ruby from https
- puppet-rbenv should support proxy usage
- document rbenv::bundle and rbenv::client
- Travis
- Module maintenance HOT 4
- Make it possible to pass --keep HOT 3
- Patch for ruby 1.9.3-p392
- Vagrant Provisioning Problems HOT 4
- Rbenv::Compile and Rbenv::Gem run every time HOT 2
- LICENSE? HOT 1
- Release to forge HOT 1
- Install from forge not working
- Set gem version HOT 2
- Periodically update ruby-build when new rubies are released HOT 1
- rbenv rehash after rbenv::gem ? HOT 2
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 puppet-rbenv.