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 mysql-chef_gem cookbook has been deprecated

Author provided reason for deprecation:

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

You may find that the mysql_chef_gem cookbook is a suitable alternative.

RSS

mysql-chef_gem (4) Versions 1.0.0

Provides the mysql_chef_gem resource

Policyfile
Berkshelf
Knife
cookbook 'mysql-chef_gem', '~> 1.0.0', :supermarket
cookbook 'mysql-chef_gem', '~> 1.0.0'
knife supermarket install mysql-chef_gem
knife supermarket download mysql-chef_gem
README
Dependencies
Changelog
Quality 17%

Mysql chef_gem Cookbook

The Mysql chef_gem is a library cookbook that provides an LWRP for use
in recipes. It provides a wrapper around chef_gem called
mysql_chef_gem, that eases the installation process, collecting the
prerequisites and side-stepping the compilation phase arms race.

Scope

This cookbook is concerned with the installation of the mysql
Rubygem into Chef's gem path. Installation into other Ruby
environments, or installation of related gems such as mysql2

Requirements

  • Chef 11 or higher
  • Ruby 1.9 (preferably from the Chef full-stack installer)

Usage

Place a dependency on the mysql cookbook in your cookbook's metadata.rb
ruby
depends 'mysql-chef_gem', '~> 1.0'

Then, in a recipe:

mysql_chef_gem 'default' do
  action [:install]
end

Resources Overview
------------------
### mysql_chef_gem

The `mysql_chef_gem` resource the build dependencies and installation
of the `mysql` rubygem into Chef's Ruby environment


#### Example
```ruby
mysql_chef_gem 'default' do
  gem_version '2.9.1'
  connectors_url 'http://internal.computers.biz/mysql-connector-c-6.1.5-linux-glibc2.5-x86_64.tar.gz'
  connectors_checksum '38dea02ea8593359037aef7df7df3d388c9baac3604635f398bae9e1e8eaa4d2'
  action :install
end

Parameters

  • gem_version - The version of the mysql Rubygem to install into the Chef environment. Defaults to '2.9.1'
  • connectors_url - URL of a tarball containing pre-compiled MySQL connector libraries
  • connectors_checksum - sha256sum of the connectors_url tarball

Actions

  • :install - Build and install the gem into the Chef environment
  • :remove - Delete the gem from the Chef environment

License & Authors

Copyright:: 2009-2014 Chef Software, Inc

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

mysql-chef_gem CHANGELOG

This file is used to list changes made in each version of the mysql-chef_gem cookbook.

v1.0.0 (2014-12-12)

  • Removing recipe that contained a single resource
  • Removed dependency on mysql cookbook
  • Switched to using the MySQL connector libraries tarball from a webserver rather than system development package
  • Added serverspec tests
  • Updated the README

v0.0.5 (2014-09-26)

  • Reverting installation of ruby dev packages

v0.0.4 (2014-09-22)

  • Fixing some bugs in the README
  • Adding more development packages

v0.0.2 (2014-03-31)

Initial Release

v0.0.1 (2014-03-28)

  • Initial release

Collaborator Number Metric
            

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

FC064: Ensure issues_url is set in metadata: mysql-chef_gem/metadata.rb:1
FC065: Ensure source_url is set in metadata: mysql-chef_gem/metadata.rb:1
FC066: Ensure chef_version is set in metadata: mysql-chef_gem/metadata.rb:1
FC069: Ensure standardized license defined in metadata: mysql-chef_gem/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: mysql-chef_gem/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

1.0.0 passed this metric

Testing File Metric
            

1.0.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.0.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