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

RSS

mysql2_chef_gem (9) Versions 1.0.1

Provides the mysql2_chef_gem resource

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

Mysql2 Chef Gem Installer Cookbook

Build Status

mysql2_chef_gem is a library cookbook that provides an LWRP for use
in recipes. It provides a wrapper around chef_gem called
mysql2_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 mysql2
Rubygem into Chef's gem path. Installation into other Ruby
environments, or installation of related gems such as mysql 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 |
|---------------------------------------+-----+-----+-----+-----+-----|
| Mysql2ChefGem::Mysql / centos-5       |   X |     |     | X   | X   |
|---------------------------------------+-----+-----+-----+-----+-----|
| Mysql2ChefGem::Mysql / centos-6       |     | X   | X   | X   | X   |
|---------------------------------------+-----+-----+-----+-----+-----|
| Mysql2ChefGem::Mysql / centos-7       |     |     | X   | X   | X   |
|---------------------------------------+-----+-----+-----+-----+-----|
| Mysql2ChefGem::Mysql / fedora-20      |     |     | X   | X   | X   |
|---------------------------------------+-----+-----+-----+-----+-----|
| Mysql2ChefGem::Mysql / debian-7       |     |     | X   |     |     |
|---------------------------------------+-----+-----+-----+-----+-----|
| Mysql2ChefGem::Mysql / ubuntu-10.04   |     | X   |     |     |     |
|---------------------------------------+-----+-----+-----+-----+-----|
| Mysql2ChefGem::Mysql / ubuntu-12.04   |     |     | X   |     |     |
|---------------------------------------+-----+-----+-----+-----+-----|
| Mysql2ChefGem::Mysql / ubuntu-14.04   |     |     | X   | X   |     |
|---------------------------------------+-----+-----+-----+-----+-----|
| Mysql2ChefGem::Mariadb / fedora-20    |     |     | X   |     |     |
|---------------------------------------+-----+-----+-----+-----+-----|
| Mysql2ChefGem::Mariadb / ubuntu-14.04 |     |     | X   |     |     |
|---------------------------------------+-----+-----+-----+-----+-----|

Usage

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

Then, in a recipe:

mysql2_chef_gem 'default' do
  action :install
end

Resources Overview

mysql2_chef_gem

The mysql2_chef_gem resource the build dependencies and installation
of the mysql2 rubygem into Chef's Ruby environment

Example

mysql2_chef_gem 'default' do
  gem_version '0.3.17'
  action :install
end

Parameters

  • gem_version - The version of the mysql Rubygem to install into the Chef environment. Defaults to '0.3.17'
  • 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.

mysql2_chef_gem 'default' do
  provider Chef::Provider::Mysql2ChefGem::Mariadb
  action :install
end

Authors

Dependent cookbooks

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

Contingent cookbooks

abiquo Applicable Versions
alfresco-db Applicable Versions
bamboo Applicable Versions
bricks Applicable Versions
confluence Applicable Versions
crowd Applicable Versions
database Applicable Versions
drupal-cookbook Applicable Versions
dvwa Applicable Versions
foreman Applicable Versions
gitlab Applicable Versions
gotcms Applicable Versions
guardian Applicable Versions
iptables_web Applicable Versions
jira Applicable Versions
kloudspeaker Applicable Versions
mattermost Applicable Versions
mysql-multi Applicable Versions
mysql_logrotate Applicable Versions
mysql_tuning Applicable Versions
open-build-service Applicable Versions
openstack-ops-database Applicable Versions
owncloud Applicable Versions
postfixadmin Applicable Versions
singularity Applicable Versions
sonarqube-mysql Applicable Versions
spree Applicable Versions
stack_commons Applicable Versions
stash Applicable Versions
tango Applicable Versions
vicnum Applicable Versions
wordpress Applicable Versions
zabbix_lwrp Applicable Versions
zf2 Applicable Versions

mysql2_chef_gem CHANGELOG

1.0.1 (2014-12-25)

  • Moving from recipe_eval in to include_recipe LWRP

1.0.0 (2014-12-23)

  • Replacing recipes with resources
  • Mysql and MariaDB providers for linking mysql2 gem
  • Expanded platform test coverage

0.1.1 (2014-09-15)

  • Correct a typo in documentation
  • Correct a test failing with Travis CI

0.1.0 (2014-09-15)

  • Correct documentation
  • Correct rubocop offenses

0.0.3 (2014-09-12)

  • Initial release (copy of mysql-chef_gem, but for mysql2)

Foodcritic Metric
            

1.0.1 failed this metric

FC031: Cookbook without metadata file: /tmp/cook/5985a01478455e76a673bb5c/mysql2_chef_gem/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/5985a01478455e76a673bb5c/mysql2_chef_gem/metadata.rb:1