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.

RSS

mysql_chef_gem (8) Versions 2.0.2

Provides the mysql_chef_gem resource

Policyfile
Berkshelf
Knife
cookbook 'mysql_chef_gem', '= 2.0.2', :supermarket
cookbook 'mysql_chef_gem', '= 2.0.2'
knife supermarket install mysql_chef_gem
knife supermarket download mysql_chef_gem
README
Dependencies
Changelog
Quality 0%

mysql Chef Gem Installer Cookbook

Build Status

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 are
outside the scope of this cookbook.

Requirements

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

Platform Support

The following platforms have been tested with Test Kitchen and are
known to work.

|--------------------------------------+-----+-----+-----+-----+-----|
|                                      | 5.0 | 5.1 | 5.5 | 5.6 | 5.7 |
|--------------------------------------+-----+-----+-----+-----+-----|
| MysqlChefGem::Mysql / centos-5       |   X |     |     | X   | X   |
|--------------------------------------+-----+-----+-----+-----+-----|
| MysqlChefGem::Mysql / centos-6       |     | X   | X   | X   | X   |
|--------------------------------------+-----+-----+-----+-----+-----|
| MysqlChefGem::Mysql / centos-7       |     |     | X   | X   | X   |
|--------------------------------------+-----+-----+-----+-----+-----|
| MysqlChefGem::Mysql / fedora-20      |     |     | X   | X   | X   |
|--------------------------------------+-----+-----+-----+-----+-----|
| MysqlChefGem::Mysql / debian-7       |     |     | X   |     |     |
|--------------------------------------+-----+-----+-----+-----+-----|
| MysqlChefGem::Mysql / ubuntu-10.04   |     | X   |     |     |     |
|--------------------------------------+-----+-----+-----+-----+-----|
| MysqlChefGem::Mysql / ubuntu-12.04   |     |     | X   |     |     |
|--------------------------------------+-----+-----+-----+-----+-----|
| MysqlChefGem::Mysql / ubuntu-14.04   |     |     | X   | X   |     |
|--------------------------------------+-----+-----+-----+-----+-----|
| MysqlChefGem::Mariadb / fedora-20    |     |     | X   |     |     |
|--------------------------------------+-----+-----+-----+-----+-----|
| MysqlChefGem::Mariadb / ubuntu-14.04 |     |     | X   |     |     |
|--------------------------------------+-----+-----+-----+-----+-----|

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

mysql_chef_gem 'default' do
  gem_version '2.9.1'
  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

Providers

Chef selects a default provider based on platform and version,
but you can specify one if your platform support it.

mysql_chef_gem 'default' do
  provider Chef::Provider::mysqlChefGem::Mariadb
  Action :install
end

Authors

Dependent cookbooks

build-essential >= 0.0.0
mysql >= 0.0.0
mariadb >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

mysql_chef_gem CHANGELOG

v2.0.2 (2014-12-26)

  • Updating source in Berksfile

v2.0.1 (2014-12-25)

  • Switching to include_recipe from recipe_eval

v2.0.0 (2014-12-23)

  • Reverting to using vendor packages instead of the connector tarball
  • Adding support for linking against MariaDB libraries

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

Foodcritic Metric
            

2.0.2 failed this metric

FC031: Cookbook without metadata file: /tmp/cook/f692ea5f3afe617bb0257941/mysql_chef_gem/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/f692ea5f3afe617bb0257941/mysql_chef_gem/metadata.rb:1