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

chef_package (1) Versions 0.0.1

Provides chef_package resources for compile time installs

Berkshelf/Librarian
Policyfile
Knife
cookbook 'chef_package', '~> 0.0.1'
cookbook 'chef_package', '~> 0.0.1', :supermarket
knife cookbook site install chef_package
knife cookbook site download chef_package
README
Dependencies
Quality

ChefPackage

Package resources for compile time installs

Reason

In some cases, generally now using the chef_gem resource, it is required to have system packages installed at compile time. This allows chef_gem to properly install gems that may have requirements for compiling libraries.

Special case

Unlike the chef_gem package, there may be other resources depending on notifications from system packages since they are not segregated in the same manner as chef_gem. To allow for this, when a chef_package resource is created, a dynamic package resource is also created, which will proxy the chef_package notifications to other resources depending on them.

Example

chef_package 'tmux'

ruby_block 'tmux notification' do
  block do
    Chef::Log.info 'Package "tmux" was installed!'
  end
  action :nothing
  subscribes :create, resources(:package => 'tmux'), :immediately
end

Delayed notifications will be sent at the end of the run. Immediate notifications will be sent at the start of the excute phase of the run.

Note about chef_package notifications

Just like the existing ChefGem resource, the run_action is called directly against the resource, not via the runner. This means that chef_package based resources will not provide notifications.

Note about compatiblity

This cookbook is currently only compatible with Chef >= 10.14.0

Infos

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.0.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.0.1 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.0.1 failed this metric

FC064: Ensure issues_url is set in metadata: chef_package/metadata.rb:1
FC065: Ensure source_url is set in metadata: chef_package/metadata.rb:1
FC066: Ensure chef_version is set in metadata: chef_package/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: chef_package/metadata.rb:1
FC069: Ensure standardized license defined in metadata: chef_package/metadata.rb:1
Run with Foodcritic Version 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.0.1 passed this metric

No Binaries Metric
            

0.0.1 passed this metric

Publish Metric
            

0.0.1 passed this metric

Supported Platforms Metric
            

0.0.1 failed this metric

chef_package should declare what platform(s) it supports.

Testing File Metric
            

0.0.1 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.0.1 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