Coder Social home page Coder Social logo

Shared installation about puppet-rbenv HOT 4 CLOSED

alup avatar alup commented on June 16, 2024
Shared installation

from puppet-rbenv.

Comments (4)

vjt avatar vjt commented on June 16, 2024

Hi @alup,

the rbenv::client serves a similar purpose, but it uses rbenv installed in the home directory of a sandbox user, that could reside e.g. in /opt or /srv, without polluting the FHS /usr/local location (more info here).

What do you think?

from puppet-rbenv.

alup avatar alup commented on June 16, 2024

Yes, this somehow serves the purpose of a shared installation, I just wonder if this could be used in production where simplicity (e.g. with permissions) is crucial. For now, it is a good solution. I would like to play with it to be sure. Do you think it is the best solution to this problem?

from puppet-rbenv.

vjt avatar vjt commented on June 16, 2024

I'll try to summarize the benefits of a sandbox ruby user solution over /usr/local:

  • It is manageable by the user itself and not root
  • It is self-contained - removing the user and its home directory is enough to wipe it completely
  • It does not interfere with system-installed packages / files
  • It allows having a system-wide package-installed ruby interpreter for any other purpose
  • It does not pollute /usr/local
  • It allows for more granular permissioning - if needed (and also think apparmor / selinux)

WRT allowing other users to install rubies, I'd advise against that - better leaving to the single ruby root user that privilege, and letting other users install their gems through bundler. Shared gems across all users (e.g. unicorn, thin, eventmachine, json, ...) can and should instead be installed "globally" in the ruby user home.

Eventually, in a shared hosting setup, this can even be used to grant different sets of users access to different sets of rubies with installed gems, thanks to the isolation provided by the sandbox user.

from puppet-rbenv.

alup avatar alup commented on June 16, 2024

I agree with your arguments, maybe we can rethink the strategy in the future when other problems will occur with this solution.

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.