cookbook 'rvm_io', '~> 0.2.2'
rvm_io (5) Versions 0.2.2 Follow0
Installs/Configures RVM, and intalls Rubies
cookbook 'rvm_io', '~> 0.2.2', :supermarket
knife supermarket install rvm_io
knife supermarket download rvm_io
rvm_io
Installs RVM, from https://rvm.io/, and installs a Ruby for users.
This cookbook is inspiring from NikolayMurha's chef-rvm.
Requirements
Platforms
- Ubuntu 20.04 LTS
Chef
- Chef >= 16
Attributes
This cookbook supports 2 ways to install RVM:
* System wide: Installed rubies are available to all users.
* Single user: Installed rubies are available only to the given user.
Please, read the rvm.io install page in order
to be aware of the different information like never use the root
account,
the umask security risk with the system wide installtion and more!
Single user
To install RMV and Rubies for a specific user:
node['rvm_io'] = { users: { ubuntu: { rubies: { '2.7.2' => 'install' } } } }
This will installs Ruby 2.7.2 as user ubuntu
.
System wide
To install RMV and Rubies for all users:
node['rvm_io'] = { rubies: { '2.7.2' => 'install' } }
This will installs Ruby 2.7.2 for all users.
Last but not least, you could like to add user(s) to the rvm
group, allowing
them to update RVM, rubies and gemsets, which you can do by adding a for
key
in the rubies
one like so:
node['rvm_io'] = { rubies: { for: [ 'hydrana' ], '2.7.2' => 'install' } }
This will adds the hydrana
user to the rvm
group -- or the other way around
depending on your point of view.
.gemrc
This cookbook also allows you to configure the .gemrc
file per users or system
wide.
Single user
node['rvm_io'] = { users: { ubuntu: { gemrc: { gem: --no-document } } } }
System wide
node['rvm_io'] = { gemrc: { gem: --no-document } }
Recipes
recipe[rvm_io::default] # Full installations recipe[rvm_io::gemrc] # Write down the .gemrc file recipe[rvm_io::install_rvm] # GPG keys and RVM installation recipe[rvm_io::packages] # Required packages recipe[rvm_io::rubies] # Installs Rubies for each given users recipe[rvm_io::rvm] # Triggers packages and then install_rvm
Author
Hydrana SAS
Dependent cookbooks
apt >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
rvm_io CHANGELOG
This file is used to list changes made in each version of the rvm_io cookbook.
Unreleased
0.2.2
Fixes system wide rvm installation guard
0.2.1
Allows adding user to the rvm
groups
0.2.0
Adds support for Single user and System wide installation
0.1.1
Adds issues_url and source_url
0.1.0
Initial release.
Collaborator Number Metric
0.2.2 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.2.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.2.2 failed this metric
FC009: Resource attribute not recognised: rvm_io/recipes/install_rvm.rb:15
FC009: Resource attribute not recognised: rvm_io/recipes/rubies.rb:17
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.2.2 passed this metric
Testing File Metric
0.2.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.2.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.2.2 failed this metric
0.2.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.2.2 failed this metric
FC009: Resource attribute not recognised: rvm_io/recipes/install_rvm.rb:15
FC009: Resource attribute not recognised: rvm_io/recipes/rubies.rb:17
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.2.2 passed this metric
Testing File Metric
0.2.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.2.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.2.2 failed this metric
FC009: Resource attribute not recognised: rvm_io/recipes/rubies.rb:17
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.2.2 passed this metric
Testing File Metric
0.2.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.2.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.2.2 failed this metric
0.2.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number