cookbook 'mysql-replication', '~> 2.0.0', :supermarket
mysql-replication (4) Versions 2.0.0 Follow2
Installs/Configures mysql-replication
cookbook 'mysql-replication', '~> 2.0.0'
knife supermarket install mysql-replication
knife supermarket download mysql-replication
mysql-replication
Description
This cookbook is a wrapper under the mysql cookbook is newer than version 6. It contains two lwrp which configures mysql master and mysql slave.
Requirements
Platforms
- amazon 2014
- redhat 6
- centos 6
- scientific 6
- fedora 18, 19
- debian 7
- ubuntu >= 12.04
Cookbooks
- mysql, ~> 6.0
Resources/Providers
mysql_master
configures mysql server as master.
Attributes
Attribute | Description | Type | Default |
---|---|---|---|
:instance | This attribute should match with mysql_service name | String | |
:id | Server-id from mysql config | Integer | |
:log_bin | log-bin from mysql config | String | 'mysql-bin' |
:user | Name of replication user | String | 'repl' |
:host | Mask of the hosts which will be allowed replication | String | '%' |
:password | Password for replication user | String | |
:binlog_do_db | binlog-do-db from mysql config | Array, String | |
:binlog_ignore_db | binlog-ignore-db from mysql config | Array, String | |
:binlog_format | binlog-format from mysql config | String | 'MIXED' |
:options | Hash of options which will be passed to config file | Hash |
mysql_slave
configures mysql server as slave, does dump of specified databases and enables replication.
Attributes
Attribute | Description | Type | Default |
---|---|---|---|
:instance | This attribute should match with mysql_service name | String | |
:id | Server-id from mysql config | Integer | |
:master_host | Master host's ip address or fqdn | String | |
:master_port | Master host's mysql port | Integer | |
:user | Name of replication user | String | 'repl' |
:password | Password for replication user | String | |
:database | List of databases, which will be dumped and replicated. | String, Array | |
:replicate_ignore_db | replicate-ignore-db from mysql config | Array, String | |
:timeout | Timeout for operations getting and uploading the dump | Integer | 3600 |
:options | Hash of options which will be passed to config file | Hash |
Examples
You may see examples in fixture cookbook: [test/fixtures/lwrp_test/recipes/default.rb](test/fixtures/lwrp_test/recipes/default.rb)
Authors
- Author:: Pavel Yudin (pyudin@parallels.com)
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Mysql-replication Cookbook Changelog
2.0.0 (March 31, 2017)
- Switch from HWRP to new Chef resources
- Added a support of mysql cookbook newer then 8.0
Collaborator Number Metric
2.0.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
2.0.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
2.0.0 failed this metric
FC066: Ensure chef_version is set in metadata: mysql-replication/metadata.rb:1
FC069: Ensure standardized license defined in metadata: mysql-replication/metadata.rb:1
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:19
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:20
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:21
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:22
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:23
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:24
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:25
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:26
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:27
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:28
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:19
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:20
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:21
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:22
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:23
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:24
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:25
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:26
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:27
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:28
FC118: Resource property setting name_attribute vs. name_property: mysql-replication/resources/mysql_master.rb:19
FC118: Resource property setting name_attribute vs. name_property: mysql-replication/resources/mysql_slave.rb:19
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
2.0.0 passed this metric
Publish Metric
2.0.0 passed this metric
Supported Platforms Metric
2.0.0 passed this metric
Testing File Metric
2.0.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
2.0.0 passed this metric
2.0.0 failed this metric
2.0.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
2.0.0 failed this metric
FC066: Ensure chef_version is set in metadata: mysql-replication/metadata.rb:1
FC069: Ensure standardized license defined in metadata: mysql-replication/metadata.rb:1
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:19
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:20
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:21
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:22
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:23
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:24
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:25
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:26
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:27
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:28
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:19
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:20
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:21
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:22
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:23
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:24
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:25
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:26
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:27
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:28
FC118: Resource property setting name_attribute vs. name_property: mysql-replication/resources/mysql_master.rb:19
FC118: Resource property setting name_attribute vs. name_property: mysql-replication/resources/mysql_slave.rb:19
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
2.0.0 passed this metric
Publish Metric
2.0.0 passed this metric
Supported Platforms Metric
2.0.0 passed this metric
Testing File Metric
2.0.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
2.0.0 passed this metric
2.0.0 failed this metric
FC069: Ensure standardized license defined in metadata: mysql-replication/metadata.rb:1
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:19
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:20
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:21
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:22
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:23
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:24
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:25
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:26
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:27
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_master.rb:28
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:19
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:20
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:21
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:22
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:23
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:24
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:25
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:26
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:27
FC117: Do not use kind_of in custom resource properties: mysql-replication/resources/mysql_slave.rb:28
FC118: Resource property setting name_attribute vs. name_property: mysql-replication/resources/mysql_master.rb:19
FC118: Resource property setting name_attribute vs. name_property: mysql-replication/resources/mysql_slave.rb:19
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
2.0.0 passed this metric
Publish Metric
2.0.0 passed this metric
Supported Platforms Metric
2.0.0 passed this metric
Testing File Metric
2.0.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
2.0.0 passed this metric
2.0.0 passed this metric
2.0.0 passed this metric
Testing File Metric
2.0.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
2.0.0 passed this metric
2.0.0 failed this metric
2.0.0 passed this metric