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

Select Status

The libarchive cookbook has been deprecated

Author provided reason for deprecation:

The libarchive cookbook has been deprecated and is no longer being maintained by its authors. Use of the libarchive cookbook is no longer recommended.

RSS

libarchive (17) Versions 0.6.1

A library cookbook for extracting archive files

Policyfile
Berkshelf
Knife
cookbook 'libarchive', '= 0.6.1', :supermarket
cookbook 'libarchive', '= 0.6.1'
knife supermarket install libarchive
knife supermarket download libarchive
README
Dependencies
Quality 0%

libarchive-cookbook

A library cookbook that provides LWRPs for extracting archive files

Requirements

  • Chef ~> 12.1

Supported Platforms

  • Ubuntu
  • CentOS (RHEL)
  • Arch Linux

Usage

include_recipe "libarchive::default"

libarchive_file "my_archive.tar.gz" do
  path "/path/to/artifact/my_archive.tar.gz"
  extract_to "/path/to/extraction"
  owner "reset"
  group "reset"

  action :extract
end

Recipes

libarchive::default

Include this recipe before leveraging any of the LWRPs provided by this cookbook. It will install the necessary libarchive packages on your node and the necessary libarchive rubygem as a chef_gem.

libarchive_file Resource/Provider

Actions

  • extract - extracts the contents of the archive to the destination on disk. (default)

Paramter Attributes

  • path - filepath to the archive to extract (name attribute)
  • owner - set the owner of the extracted files
  • group - set the group of the extracted files
  • mode - set the mode of the extracted files
  • extract_to - filepath to extract the contents of the archive to
  • extract_options - an array of symbols representing extraction flags. See extract options below.

Extract Options

  • :no_overwrite - don't overwrite files if they already exist

License and Authors

Author:: Jamie Winsor (jamie@vialstudios.com)
Author:: John Bellone (jbellone@bloomberg.net)

Dependent cookbooks

apt ~> 2.5
yum-epel ~> 0.6

Contingent cookbooks

berkshelf-api-server Applicable Versions
consul Applicable Versions
consul-template Applicable Versions
database_restore Applicable Versions
ecto Applicable Versions
elixir Applicable Versions
etcd-v2 Applicable Versions
github Applicable Versions
guardian Applicable Versions
hashicorp-vault Applicable Versions
java-service Applicable Versions
kibana5-gm Applicable Versions
kibana_lwrp Applicable Versions
libartifact Applicable Versions
lockrun Applicable Versions
wombat-oam Applicable Versions
yajsw Applicable Versions

Foodcritic Metric
            

0.6.1 failed this metric

FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/459efe2520e90eadf8d97f18/libarchive/recipes/default.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/459efe2520e90eadf8d97f18/libarchive/recipes/default.rb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/459efe2520e90eadf8d97f18/libarchive/recipes/default.rb:14
FC009: Resource attribute not recognised: /tmp/cook/459efe2520e90eadf8d97f18/libarchive/recipes/default.rb:19
FC019: Access node attributes in a consistent manner: /tmp/cook/459efe2520e90eadf8d97f18/libarchive/attributes/default.rb:8
FC019: Access node attributes in a consistent manner: /tmp/cook/459efe2520e90eadf8d97f18/libarchive/attributes/default.rb:10
FC019: Access node attributes in a consistent manner: /tmp/cook/459efe2520e90eadf8d97f18/libarchive/attributes/default.rb:12