Chef cookbook to configure MySQL for Rails.
Requires Chef 0.10.10+ and Ohai 0.6.10+ for platform_family
attribute use.
Tested on the following platforms:
- Ubuntu 12.04, 14.04
Opscode cookbooks:
- mysql
- database
The msql_rails
LWRP installs and configures MySQL for Rails.
name
- Name of the application. Used together withrails_env
for the name of the MySQL database.rails_env
- Rails enviroment, defaults toproduction
.user
- MySQL user. Defaults toroot
.password
- MySQL password fordb_user
. Defaults to an empty string.host
- MySQL host. Defaults tolocalhost
.
For example, to run install MySQL, create a database named myproj_production
, and a user named boss
, run:
mysql_rails "myproj" do
username "boss"
password "youguessit"
host "localhost"
rails_env "production"
end
- Author: Martin Fenner ([email protected])
Copyright: 2014, Public Library of Science
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.