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

protobuf (8) Versions 1.2.0

Installs/Configures Protocol Buffer

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

chef-protobuf Build Status

Description

Installs Protocol Buffer C++, Java, and Python libraries. protobuf-c (for C support) is a separate project and is not included in this cookbook. Please see COMPATIBILITY.md for more information about protobuf versions that are tested and supported by cookbook versions.

Requirements

Platforms

  • CentOS 6
  • Fedora 18, 19, 20
  • RHEL 6
  • Ubuntu 12.04, 12.10, 13.04, 13.10

Cookbooks

Opscode Cookbooks

Attributes

These attributes are under the node['protobuf'] namespace.

Attribute Description Type Default
install_type Override platform and version auto-detection for installation ("archive" or "package") String nil (auto-detect)

Archive Attributes

These attributes are under the node['protobuf']['archive'] namespace.

Attribute Description Type Default
checksum SHA256 checksum for archive String auto-detected (see attributes/default.rb)
install_dir Installation prefix String /usr/local
url Archive URL String https://protobuf.googlecode.com/files/protobuf-#{node['protobuf']['archive']['version']}.tar.bz2
version Archive version to install String 2.5.0

Package Attributes

These attributes are under the node['protobuf']['package'] namespace.

Attribute Description Type Default
cpp_packages C++ packages for installation Array of Strings auto-detected (see attributes/default.rb)
java_packages Java packages for installation Array of Strings auto-detected (see attributes/default.rb)
python_packages Python packages for installation Array of Strings auto-detected (see attributes/default.rb)

Recipes

  • recipe[protobuf] Installs Protocol Buffer
  • recipe[protobuf::archive] Installs protobuf via archive
  • recipe[protobuf::cpp] Installs protobuf C++
  • recipe[protobuf::java] Installs protobuf Java
  • recipe[protobuf::package_cpp] Installs protobuf C++ packages
  • recipe[protobuf::package_java] Installs protobuf Java packages
  • recipe[protobuf::package_python] Installs protobuf Python packages
  • recipe[protobuf::python] Installs protobuf Python

Usage

Default Installation

Installs protobuf C++, Java, and Python. Recommended to use cpp, java, and python directly instead.

  • Add recipe[protobuf] to your node's run list

C++ Installation Only

Installs protobuf C++ via archive or package depending on platform and version auto-detection or node['protobuf']['install_type'] if set.

  • Add recipe['protobuf::cpp'] to your node's run list

Java Installation Only

Installs protobuf Java via archive or package depending on platform and version auto-detection or node['protobuf']['install_type'] if set.

  • Add recipe['protobuf::java'] to your node's run list

Python Installation Only

Installs protobuf Python via archive or package depending on platform and version auto-detection or node['protobuf']['install_type'] if set.

  • Add recipe['protobuf::python'] to your node's run list

Archive Installation

  • If necessary, set node['protobuf']['archive']['version'] and node['protobuf']['archive']['checksum']
  • Set node['protobuf']['install_type'] to "archive" or add recipe['protobuf::archive'] to your node's run list

C++ Package Installation Only

  • Add recipe['protobuf::package_cpp'] to your node's run list

Java Package Installation Only

  • Add recipe['protobuf::package_java'] to your node's run list

Python Package Installation Only

  • Add recipe['protobuf::package_python'] to your node's run list

Testing and Development

Vagrant

Here's how you can quickly get testing or developing against the cookbook thanks to Vagrant and Berkshelf.

vagrant plugin install vagrant-berkshelf
vagrant plugin install vagrant-cachier
vagrant plugin install vagrant-omnibus
git clone git://github.com/bflad/chef-protobuf.git
cd chef-protobuf
vagrant up BOX # BOX being centos5, centos6, debian7, fedora18, fedora19, fedora20, freebsd9, ubuntu1204, ubuntu1210, ubuntu1304, or ubuntu1310

You can then SSH into the running VM using the vagrant ssh BOX command.

The VM can easily be stopped and deleted with the vagrant destroy command. Please see the official Vagrant documentation for a more in depth explanation of available commands.

Test Kitchen

Please see documentation in: TESTING.md

Contributing

Please use standard Github issues/pull requests and if possible, in combination with testing on the Vagrant boxes or Test Kitchen suite.

Maintainers

Collaborator Number Metric
            

1.2.0 failed this metric

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

Contributing File Metric
            

1.2.0 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
            

1.2.0 failed this metric

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

License Metric
            

1.2.0 passed this metric

No Binaries Metric
            

1.2.0 passed this metric

Publish Metric
            

1.2.0 passed this metric

Supported Platforms Metric
            

1.2.0 passed this metric

Testing File Metric
            

1.2.0 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
            

1.2.0 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