{"name":"mysql2_chef_gem","version":"2.0.1","description":"Provides the mysql2_chef_gem resource","long_description":"# Mysql2 Chef Gem Installer Cookbook\n\n[![Build Status](https://travis-ci.org/sinfomicien/mysql2_chef_gem.svg)](https://travis-ci.org/sinfomicien/mysql2_chef_gem) [![Cookbook Version](http://img.shields.io/cookbook/v/mysql2_chef_gem.svg)](https://supermarket.chef.io/cookbooks/mysql2_chef_gem)\n\nmysql2_chef_gem is a library cookbook that provides a resource for installing the mysql2 gem against either mysql or mariadb depending on usage.\n\n## Scope\n\nThis 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.\n\n## Requirements\n\n- Chef 12.5+\n\n## Platform Support\n\nThe following platforms have been tested with Test Kitchen and are known to work.\n\n```\n|---------------------------------------+-----+-----+-----+-----+-----|\n| | 5.0 | 5.1 | 5.5 | 5.6 | 5.7 |\n|---------------------------------------+-----+-----+-----+-----+-----|\n| Mysql2ChefGem::Mysql / centos-5 | X | | | X | X |\n|---------------------------------------+-----+-----+-----+-----+-----|\n| Mysql2ChefGem::Mysql / centos-6 | | X | X | X | X |\n|---------------------------------------+-----+-----+-----+-----+-----|\n| Mysql2ChefGem::Mysql / centos-7 | | | X | X | X |\n|---------------------------------------+-----+-----+-----+-----+-----|\n| Mysql2ChefGem::Mysql / fedora | | | X | X | X |\n|---------------------------------------+-----+-----+-----+-----+-----|\n| Mysql2ChefGem::Mysql / debian-7 | | | X | | |\n|---------------------------------------+-----+-----+-----+-----+-----|\n| Mysql2ChefGem::Mysql / ubuntu-14.04 | | | X | X | |\n|---------------------------------------+-----+-----+-----+-----+-----|\n| Mysql2ChefGem::Mariadb / fedora | | | X | | |\n|---------------------------------------+-----+-----+-----+-----+-----|\n| Mysql2ChefGem::Mariadb / ubuntu-14.04 | | | X | | |\n|---------------------------------------+-----+-----+-----+-----+-----|\n```\n\n## Usage\n\nPlace a dependency on the mysql cookbook in your cookbook's metadata.rb\n\n```ruby\ndepends 'mysql2_chef_gem'\n```\n\nThen, in a recipe:\n\n```ruby\nmysql2_chef_gem 'default' do\n action :install\nend\n```\n\n### 2.0 Compatibility\n\nIn order to ensure compatibility with Chef 13, the 2.0 release of this cookbook changed the method used to specify installation against mariadb. Instead of specifying the underlying provider, you instead reference the mariadb specific resource. See the example below for the new syntax.\n\n## Resources Overview\n\n### mysql2_chef_gem\n\nThe `mysql2_chef_gem` resource installs mysql client development dependencies and installs the `mysql2` rubygem into Chef's Ruby environment.\n\n#### Example\n\n```ruby\nmysql2_chef_gem 'default' do\n gem_version '0.4.5'\n action :install\nend\n```\n\n#### Properties\n\n- `gem_version` - The version of the `mysql` Rubygem to install into the Chef environment. Defaults to '0.4.5' connector libraries\n- `package_version` - The version of the mysql client libraries to install and link against\n\n#### Actions\n\n- `:install` - Build and install the gem into the Chef environment\n- `:remove` - Delete the gem from the Chef environment\n\n### mysql2_chef_gem_mariadb\n\nTo install the mysql2 gem against an installation of mariadb reference the `mysql2_chef_gem_mariadb` resource directly. This resource includes all the same properties of the standard `mysql2_chef_gem` resource.\n\n```ruby\nmysql2_chef_gem_mariadb 'default' do\n action :install\nend\n```\n\n## License & Authors\n\n- Author:: Sean OMeara ([someara@sean.io](mailto:someara@sean.io))\n- Author:: Tim Smith ([tsmith@chef.io](mailto:tsmith@chef.io))\n- Author:: Nicolas Blanc([sinfomicien@gmail.com](mailto:sinfomicien@gmail.com))\n\n```\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","maintainer":"Nicolas Blanc","maintainer_email":"sinfomicien@gmail.com","license":"Apache 2.0","platforms":{"centos":">= 0.0.0","redhat":">= 0.0.0","scientific":">= 0.0.0","oracle":">= 0.0.0","fedora":">= 0.0.0","debian":">= 0.0.0","ubuntu":">= 0.0.0"},"dependencies":{"build-essential":">= 2.4.0","mysql":">= 8.2.0","mariadb":">= 0.0.0"},"recommendations":{},"suggestions":{},"conflicting":{},"providing":{},"replacing":{},"attributes":{},"groupings":{},"recipes":{},"source_url":"https://github.com/sinfomicien/mysql2_chef_gem","issues_url":"https://github.com/sinfomicien/mysql2_chef_gem/issues","chef_version":">= 12.5","ohai_version":{}}