Coder Social home page Coder Social logo

Comments (8)

bjoernalbers avatar bjoernalbers commented on September 20, 2024

This issue came up during a capistrano deployment when running bundler over ssh on the deployment machine.

from puppet-rbenv.

bjoernalbers avatar bjoernalbers commented on September 20, 2024

PS: great module (saved me a ton of time)!

from puppet-rbenv.

alup avatar alup commented on September 20, 2024

Did you try using the .profile instead of .bashrc? This should fix your problem.

from puppet-rbenv.

bjoernalbers avatar bjoernalbers commented on September 20, 2024

@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.

fgrehm avatar fgrehm commented on September 20, 2024

@bjoernalbers Is this still an issue?

from puppet-rbenv.

 avatar commented on September 20, 2024

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.

 avatar commented on September 20, 2024

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.

nvalentine-puppetlabs avatar nvalentine-puppetlabs commented on September 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.