Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

asdf (10) Versions 0.4.1

Installs and configures asdf

Berkshelf
Policyfile
Knife
cookbook 'asdf', '~> 0.4.1'
cookbook 'asdf', '~> 0.4.1', :supermarket
knife supermarket install asdf
knife supermarket download asdf
README
Dependencies
Changelog
Quality 88%

asdf Cookbook

Cookbook Version Build Status

Installs and configures asdf extendable version manager.

Requirements

  • Chef 14.3+

Platforms

The following platforms are supported and tested with Test Kitchen:

  • Amazon Linux 2+
  • CentOS 7+
  • Debian 8+
  • Fedora 27+
  • Ubuntu 16.04+

Other Debian and RHEL family distributions are assumed to work.

Dependencies

  • ark

Usage

Place a dependency on the asdf cookbook in your cookbook's metadata.rb

depends 'asdf'

Examples are provided in test/cookbooks/test/recipes.

A asdf_user_install is required so that asdf is installed. See Resources below.

Testing

For more details look at the [TESTING.md](./TESTING.md).

Resources

asdf_package

Installs, uninstalls and sets global an asdf package. See Package Dependencies below.

asdf_package 'name' do
  live_stream               [TrueClass, FalseClass]
  package                   String
  user                      String
  version                   String
end

Actions

This resource has the following actions:

  • :install Default
  • :global
  • :uninstall

Properties

This resource has the following properties:

  • live_stream Whether or not to output verbose stream. Defaults to false.
  • package Which package to install. Defaults to name.
  • user Which user to run asdf code as.
  • version Which package version to install. Required.

asdf_plugin

Installs, updates or removes an asdf plugin.

asdf_plugin 'name' do
  git_url                   String
  live_stream               [TrueClass, FalseClass]
  user                      String
end

Actions

This resource has the following actions:

  • :add Default
  • :update
  • :remove

Properties

This resource has the following properties:

  • git_url Git url to checkout plugin from.
  • live_stream Whether or not to output verbose stream. Defaults to false.
  • user Which user to run asdf code as.

asdf_script

Runs an asdf aware script.

asdf_script 'name' do
  code                      String
  environment               Hash
  live_stream               [TrueClass, FalseClass]
  path                      String
  returns                   Array
  timeout                   [Integer, Float]
  user                      String
end

Actions

This resource has the following actions:

  • :run Default

Properties

This resource has the following properties:

  • code asdf command to run. Default name.
  • environment Environment variables to run script.
  • live_stream Whether or not to output verbose stream. Defaults to false.
  • path Additional path to include in environment path.
  • returns Expected return code. Defaults to [0].
  • timeout Amount of time (in seconds) a command is to wait before timing out. Defaults to 3600.
  • user Which user to run asdf code as.

asdf_user_install

Installs asdf to the user path, making asdf only available to that user.

asdf_user_install 'name' do
  git_url                   String
  git_ref                   String
  update_asdf               [TrueClass, FalseClass]
  legacy_version_file       [TrueClass, FalseClass]
end

Actions

This resource has the following actions:

  • :install Default

Properties

This resource has the following properties:

  • git_ref Git reference to checkout.
  • git_url Git url to checkout asdf from. Defaults to https://github.com/asdf-vm/asdf.git.
  • legacy_version_file Whether or not to use legacy version files. Defaults to false.
  • update_asdf Whether or not to update asdf. Defaults to true.
  • user Which user to install asdf to. Defaults to name.

Package Dependencies

Although this cookbook is slowly but surely trying to make sure that dependencies are installed for each package on all supported operating systems, you may still need to add dependencies that have not been pre-installed for a particular package. If you do indeed get a package installed with dependencies that have not yet been pre-installed via this cookbook, please open up a pull request for review to be added.

Credit

This cookbook is based off of the ruby_rbenv cookbook.

Authors

Copyright:: Fernando Aleman

Dependent cookbooks

ark >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

asdf CHANGELOG

v0.4.1 (2018-12-13)

  • [cc29abddc5] - Remove post package dependencies (Fernando Aleman)
  • [ea5cdabdcd] - Fix more fedora instances (Fernando Aleman)
  • [6d017f44db] - Fix fedora instance (Fernando Aleman)

v0.4.0 (2018-12-06)

  • [bba80862aa] - Remove stove gem (Fernando Aleman)
  • [ffa0c94d64] - Update package resource (Fernando Aleman)
  • [18814e59fc] - Update plugin resource (Fernando Aleman)
  • [65b794efd8] - Update script resource (Fernando Aleman)
  • [e0dfcb94a9] - Add asdf_user to script helpers (Fernando Aleman)
  • [e165d2e3a9] - Update user_install resource (Fernando Aleman)
  • [883f3b7913] - Update platforms and add support for Amazon Linux 2 (Fernando Aleman)
  • [d5a2c2857d] - Update libraries (Fernando Aleman)
  • [1fb7fc1bcf] - Update README.md (Fernando Aleman)
  • [14a33cc663] - Add post package dependencies (Fernando Aleman)
  • [c2c84ffaba] - Remove chef-sugar (Fernando Aleman)
  • [1a8f5e413a] - Require chef version >= 14.3 (Fernando Aleman)
  • [49901822dc] - Cleanup frozen_string_literal (Fernando Aleman)
  • [9191b9745c] - Update CHANGELOG.md formatting (Fernando Aleman)
  • [28234e102a] - Update .kitchen.yml and .kitchen.dokken.yml (Fernando Aleman)
  • [8861636450] - Update .travis.yml (Fernando Aleman)
  • [d130ca678a] - Update TESTING.md (Fernando Aleman)
  • [773b384176] - Update chefignore (Fernando Aleman)
  • [c0bed5a512] - Formatting frozen_string_literal (Fernando Aleman)
  • [7c98e655cd] - Remove rubocop customizations (Fernando Aleman)
  • [98fcab6b89] - Remove matchers library (Fernando Aleman)
  • [8bf2c1e290] - Update .gitignore (Fernando Aleman)

v0.3.0 (2018-10-19)

  • [ac08f614f3] - Update metadata supports (Fernando Aleman)
  • [029a87eb90] - Package dependencies (Fernando Aleman)
  • [20e2a26a69] - Add support for Debian 8 & 9 (Fernando Aleman)
  • [43017dea07] - Add support for Fedora 27 & 28 (Fernando Aleman)
  • [c166bc66ba] - Add implied support for redhat, scientific and oracle linux (Fernando Aleman)
  • [ea6fa1e826] - Add support for CentOS 7 (Fernando Aleman)
  • [cd4179e6fa] - Restructure tests in order to test packages separately (Fernando Aleman)

v0.2.1 (2018-10-16)

  • [15d9c71206] - Merge pull request #2 from blimmer/patch-1 (Fernando Aleman)
  • [6563c4e669] - Correct asdf_package action typo. (Ben Limmer)
  • [02798d9323] - Fix rubocop offense on if modifier (Fernando Aleman)
  • [ade79342ff] - Fix test vagrant user shell (Fernando Aleman)
  • [3c2f7e8174] - Add chef-sugar cookbook (Fernando Aleman)
  • [876460d4d8] - Update kitchen config files (Fernando Aleman)
  • [d53d5c11b4] - Fix building older versions of ruby on Ubuntu 18.04 (Fernando Aleman)
  • [c7585a0c83] - Add Travis CI Ubuntu 18.04 matrix (Fernando Aleman)

v0.2.0 (2018-10-13)

  • [e28e7a1fdb] - Support Ubuntu 18.04 (Fernando Aleman)
  • [960931d222] - Update test package versions (Fernando Aleman)

v0.1.4 (2018-10-13)

  • [a985f1d18c] - Fix CHANGELOG (Fernando Aleman)
  • [8971f8cbb8] - Fix chef inspec tests (Fernando Aleman)
  • [659536796c] - Fix gpg keys for nodejs (Fernando Aleman)
  • [b5a4e17c13] - Fix rubocop Style/TrailingCommaInLiteral error (Fernando Aleman)
  • [54fa3f344d] - Refactor spec supported platforms (Fernando Aleman)
  • [e1db9cd123] - Remove apt cookbook dependency (Fernando Aleman)
  • [551302bd6b] - Add build-essential cookbook (Fernando Aleman)
  • [648bbd4963] - Replace apt_package with package (Fernando Aleman)
  • [287727f3c8] - Update user_install to install latest version of asdf if not specified (Fernando Aleman)

v0.1.3 (2017-12-11)

  • [fa12b511b6] - Fix bison for php installs (Fernando Aleman)

v0.1.2 (2017-10-29)

  • [ba91976dc4] - Fix bug with node.run_state asdf_path (Fernando Aleman)

v0.1.1 (2017-10-25)

  • [856c69fc19] - Add cookbook version tag (Fernando Aleman)
  • [292cb8d6fb] - Add CONTRIBUTING.md file (Fernando Aleman)
  • [ca891e7f5f] - Check if asdf is already installed (Fernando Aleman)

v0.1.0 (2017-10-19)

  • [117e555683] - Create asdf_package resource (Fernando Aleman)
  • [b0a6144acb] - Create asdf_plugin resource (Fernando Aleman)
  • [a49799c253] - Create asdf_script resource (Fernando Aleman)
  • [71dc5bf619] - Create asdf_user_install resource (Fernando Aleman)
  • [c765897f31] - Initial commit (Fernando Aleman)

Collaborator Number Metric
            

0.4.1 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.4.1 passed this metric

Foodcritic Metric
            

0.4.1 passed this metric

No Binaries Metric
            

0.4.1 passed this metric

Publish Metric
            

0.4.1 passed this metric

Supported Platforms Metric
            

0.4.1 passed this metric

Testing File Metric
            

0.4.1 passed this metric

Version Tag Metric
            

0.4.1 passed this metric