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

RSS

mysql-replication (4) Versions 1.0.1

Installs/Configures mysql-replication

Berkshelf/Librarian
Policyfile
Knife
cookbook 'mysql-replication', '= 1.0.1'
cookbook 'mysql-replication', '= 1.0.1', :supermarket
knife cookbook site install mysql-replication
knife cookbook site download mysql-replication
README
Dependencies
Quality

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

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

Authors

Dependent cookbooks

mysql < 8.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

1.0.1 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Foodcritic Metric
            

1.0.1 failed this metric

FC014: Consider extracting long ruby_block to library: /tmp/e00be1c85b825993ffe85303/mysql-replication/libraries/provider_mysql_slave.rb:64
FC057: Library provider does not declare use_inline_resources: /tmp/e00be1c85b825993ffe85303/mysql-replication/libraries/provider_mysql_master.rb:24
FC057: Library provider does not declare use_inline_resources: /tmp/e00be1c85b825993ffe85303/mysql-replication/libraries/provider_mysql_slave.rb:24
FC064: Ensure issues_url is set in metadata: /tmp/e00be1c85b825993ffe85303/mysql-replication/metadata.rb:1
FC065: Ensure source_url is set in metadata: /tmp/e00be1c85b825993ffe85303/mysql-replication/metadata.rb:1