cookbook 'mysql-simple', '~> 0.1.0'
mysql-simple (1) Versions 0.1.0 Follow0
A simple cookbook to deploy MySQL on Ubuntu
cookbook 'mysql-simple', '~> 0.1.0', :supermarket
knife supermarket install mysql-simple
knife supermarket download mysql-simple
Simple Chef Cookbook for MySQL on Ubuntu 14.04
Usage :
create your git repository with a Berksfile, a environments directory, and a Vagrantfile.
In the Berksfile
cookbook 'git'
cookbook 'apt', git: 'git://github.com/opscode-cookbooks/apt.git'
cookbook 'mysql-simple', git: 'git://github.com/christopher5106/mysql-simple.git'
In environments/development.rb :
{ "name": "development", "description": "The master development branch", "cookbook_versions": {}, "json_class": "Chef::Environment", "chef_type": "environment", "default_attributes": {}, "override_attributes": { "environment":"development", "mysql":{ "server_root_password":"XXXXXXXXXXXXXX", "datadir":"/var/lib/mysql", "logdir":"/var/log/mysql" } } }
In the Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 3306, host: 3306
config.berkshelf.enabled = true;
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "./"
chef.add_recipe "mysql-simple"
chef.environments_path = "environments"
chef.environment = "development"
end
end
In Opsworks,
- create a stack with your git repository, berkshelf enabled, and the json :
{ "mysql":{ "server_root_password":"XXXXXXXXXXXXXX", "datadir":"/var/lib/mysql", "logdir":"/var/log/mysql" } }
create a layer and add the recipe "mysql-simple" to a layer
create an app with name equals to the name of the app in the JSON.
Launch your instance in Opsworks.
Dependent cookbooks
apt >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.1.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.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
0.1.0 failed this metric
FC055: Ensure maintainer is set in metadata: mysql-simple/metadata.rb:1
FC056: Ensure maintainer_email is set in metadata: mysql-simple/metadata.rb:1
FC064: Ensure issues_url is set in metadata: mysql-simple/metadata.rb:1
FC065: Ensure source_url is set in metadata: mysql-simple/metadata.rb:1
FC066: Ensure chef_version is set in metadata: mysql-simple/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: mysql-simple/metadata.rb:1
FC068: Ensure license is set in metadata: mysql-simple/metadata.rb:1
FC069: Ensure standardized license defined in metadata: mysql-simple/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.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
0.1.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
0.1.0 failed this metric
0.1.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
0.1.0 failed this metric
FC055: Ensure maintainer is set in metadata: mysql-simple/metadata.rb:1
FC056: Ensure maintainer_email is set in metadata: mysql-simple/metadata.rb:1
FC064: Ensure issues_url is set in metadata: mysql-simple/metadata.rb:1
FC065: Ensure source_url is set in metadata: mysql-simple/metadata.rb:1
FC066: Ensure chef_version is set in metadata: mysql-simple/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: mysql-simple/metadata.rb:1
FC068: Ensure license is set in metadata: mysql-simple/metadata.rb:1
FC069: Ensure standardized license defined in metadata: mysql-simple/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.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
0.1.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
0.1.0 failed this metric
FC056: Ensure maintainer_email is set in metadata: mysql-simple/metadata.rb:1
FC064: Ensure issues_url is set in metadata: mysql-simple/metadata.rb:1
FC065: Ensure source_url is set in metadata: mysql-simple/metadata.rb:1
FC066: Ensure chef_version is set in metadata: mysql-simple/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: mysql-simple/metadata.rb:1
FC068: Ensure license is set in metadata: mysql-simple/metadata.rb:1
FC069: Ensure standardized license defined in metadata: mysql-simple/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.0 passed this metric
Testing File Metric
0.1.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
0.1.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
0.1.0 failed this metric
0.1.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