cookbook 'mariadb', '= 2.0.0'
mariadb
(81) Versions
2.0.0
-
-
5.5.5
-
5.5.4
-
5.5.3
-
5.5.2
-
5.5.1
-
5.5.0
-
5.4.0
-
5.3.2
-
5.3.1
-
5.3.0
-
5.2.19
-
5.2.18
-
5.2.17
-
5.2.16
-
5.2.15
-
5.2.14
-
5.2.13
-
5.2.12
-
5.2.11
-
5.2.10
-
5.2.9
-
5.2.8
-
5.2.7
-
5.2.6
-
5.2.5
-
5.2.4
-
5.2.3
-
5.2.2
-
5.2.1
-
5.2.0
-
5.1.0
-
5.0.2
-
5.0.1
-
5.0.0
-
4.3.0
-
4.2.1
-
4.2.0
-
4.1.4
-
4.1.3
-
4.1.2
-
4.1.1
-
4.1.0
-
4.0.1
-
4.0.0
-
3.2.0
-
3.1.0
-
3.0.0
-
2.1.0
-
2.0.0
-
1.5.4
-
1.5.3
-
1.5.2
-
1.5.1
-
1.5.0
-
1.4.0
-
1.3.0
-
1.2.0
-
1.1.0
-
1.0.1
-
0.3.4
-
0.3.3
-
0.3.2
-
0.3.1
-
0.3.0
-
0.2.13
-
0.2.12
-
0.2.11
-
0.2.10
-
0.2.9
-
0.2.8
-
0.2.7
-
0.2.6
-
0.2.5
-
0.2.4
-
0.2.3
-
0.2.2
-
0.2.1
-
0.2.0
-
0.1.8
-
0.1.7
-
0.1.6
Follow51
- 5.5.5
- 5.5.4
- 5.5.3
- 5.5.2
- 5.5.1
- 5.5.0
- 5.4.0
- 5.3.2
- 5.3.1
- 5.3.0
- 5.2.19
- 5.2.18
- 5.2.17
- 5.2.16
- 5.2.15
- 5.2.14
- 5.2.13
- 5.2.12
- 5.2.11
- 5.2.10
- 5.2.9
- 5.2.8
- 5.2.7
- 5.2.6
- 5.2.5
- 5.2.4
- 5.2.3
- 5.2.2
- 5.2.1
- 5.2.0
- 5.1.0
- 5.0.2
- 5.0.1
- 5.0.0
- 4.3.0
- 4.2.1
- 4.2.0
- 4.1.4
- 4.1.3
- 4.1.2
- 4.1.1
- 4.1.0
- 4.0.1
- 4.0.0
- 3.2.0
- 3.1.0
- 3.0.0
- 2.1.0
- 2.0.0
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.1
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.13
- 0.2.12
- 0.2.11
- 0.2.10
- 0.2.9
- 0.2.8
- 0.2.7
- 0.2.6
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.8
- 0.1.7
- 0.1.6
Installs/Configures MariaDB
cookbook 'mariadb', '= 2.0.0', :supermarket
knife supermarket install mariadb
knife supermarket download mariadb
MariaDB Cookbook
Description
This cookbook contains all the stuffs to install and configure and manage a mariadb server on a dpkg/apt compliant system (typically debian), or a rpm/yum compliant system (typically centos)
Requirements
repository
-
mariadb
- This cookbook need that you have a valid apt repository installed with the mariadb official packages
packages
-
percona-xtrabackup
- if you want to use the xtrabckup SST Auth for galera cluster. -
mariadb-backup
- if you want to use the mariabackup SST Auth for galera cluster. -
socat
- if you want to use the xtrabckup or mariabackup SST Auth for galera cluster. -
rsync
- if you want to use the rsync SST Auth for galera cluster. -
debconf-utils
- if you use debian platform family.
operating system
-
debian
- this cookbook is fully tested on debian -
ubuntu
- this cookbook is fully tested on ubuntu -
centos
- this cookbook is fully tested on centos
Chef version
Since version 2.0.0 of this cookbook, chef 13 support is dropped. New chef 14 is the minimum version tested.
If you can't upgrade your chef 13, please user the version 1.5.4 or earlier of this cookbook.
Upgrading
If you are wondering where all the recipes went in v2.0+, or how on earth I use this new cookbook please see upgrading.md for a full description.
Resources
mariadb_repository
It installs the mariadb.org apt or yum repository
Actions
-
install
- (default) Install mariadb.org apt or yum repository
Properties
Name | Types | Description | Default | Required? |
---|---|---|---|---|
version |
String | Version of MariaDB to install | '10.3' | no |
Examples
To install '10.3' version:
mariadb_repository 'MariaDB 10.3 Repository' do version '10.3' end
mariadb_client_install
This resource installs mariadb client packages.
Actions
-
install
- (default) Install client packages
Properties
Name | Types | Description | Default | Required? |
---|---|---|---|---|
version |
String | Version of MariaDB to install | '10.3' | no |
setup_repo |
Boolean | Define if you want to add the MariaDB repository | true | no |
Examples
To install '10.3' version:
mariadb_client_install 'MariaDB Client install' do version '10.3' end
mariadb_server_install
This resource installs mariadb server packages.
Actions
-
install
- (default) Install server packages -
create
- Start the service, change the user root password
Properties
Name | Types | Description | Default | Required? |
---|---|---|---|---|
version |
String | Version of MariaDB to install | '10.3' | no |
setup_repo |
Boolean | Define if you want to add the MariaDB repository | true | no |
mycnf_file |
String | "#{conf_dir}/my.cnf" | no | |
extra_configuration_directory |
String | ext_conf_dir | no | |
external_pid_file |
String | default_pid_file | no | |
cookbook |
String | The cookbook to look in for the template source | 'mariadb' | yes |
password |
String, nil | Pass in a password, or have the cookbook generate one for you | 'generate' | no |
port |
String, Integer | Database listen port | 3306 | no |
Examples
To install '10.3' version:
mariadb_server_install 'MariaDB Server install' do version '10.3' end
mariadb_configuration
Mainly use for internal purpose. You can use it to create a new configuration file into configuration dir. You have to define 2 variables section
and option
.
Where section
is the configuration section, and option
is a hash of key/value. The name of the resource is used as base for the filename.
Actions
-
add
- (default) Install the extra configuration file -
remove
- Remove the extra configuration file
Properties
Name | Types | Description | Default | Required? |
---|---|---|---|---|
configuration_name |
String | Name of the extra conf file, used for .cnf filename | yes | |
section |
String | yes | ||
option |
Hash | All option to write in the configuration file | {} | yes |
cookbook |
String | The cookbook to look in for the template source | 'mariadb' | yes |
extconf_directory |
String | An additional directory from which Mysql read extra cnf | "ext_conf_dir | yes |
Examples
This example:
ruby
mariadb_configuration 'fake' do
section 'mysqld'
option :foo => 'bar'
end
will become the file fake.cnf in the include dir (depend on your platform), which contain:
[mysqld]
foo=bar
In another example, if the value start with a '#', then it's considered as a comment, and the value is printed as is (without the key):
ruby
mariadb_configuration 'fake' do
section 'mysqld'
option :comment1 => '# Here i am',
:foo => bar
end
will become the file fake.cnf in the include dir (depend on your platform), which contain:
```
[mysqld]
Here i am
foo=bar
```
mariadb_server_configuration
Actions
-
modify
- (default) Maintain the configuration file
Properties
Name | Types | Description | Default | Required? |
---|---|---|---|---|
version |
String | Version of MariaDB installed | '10.3' | no |
cookbook |
String | 'mariadb' | no | |
mycnf_file |
String | "#{conf_dir}my.cnf" | no | |
extra_configuration_directory |
String, | ext_conf_dir | no | |
client_port |
String, Integer | 3306 | no | |
client_socket |
String | default_socket | no | |
client_host |
String, nil | nil | no | |
client_options |
Hash | {} | no | |
mysqld_safe_socket |
String | default_socket | no | |
mysqld_safe_nice |
String, Integer | 0 | no | |
mysqld_safe_options |
Hash | {} | no | |
mysqld_user |
String | 'mysql' | no | |
mysqld_pid_file |
String, nil | default_pid_file | no | |
mysqld_socket |
String | default_socket | no | |
mysqld_basedir |
String | '/usr' | no | |
mysqld_datadir |
String | '/var/lib/mysql' | no | |
mysqld_tmpdir |
String | '/var/tmp' | no | |
mysqld_lc_messages_dir |
String | '/usr/share/mysql' | no | |
mysqld_lc_messages |
String | 'en_US' | no | |
mysqld_skip_external_locking |
Boolean | true | no | |
mysqld_skip_log_bin |
Boolean | false | no | |
mysqld_skip_name_resolve |
Boolean | false | no | |
mysqld_bind_address |
String | '127.0.0.1' | no | |
mysqld_max_connections |
Integer | 100 | no | |
mysqld_max_statement_time |
Integer, nil | nil | no | |
mysqld_connect_timeout |
Integer | 5 | no | |
mysqld_wait_timeout |
Integer | 600 | no | |
mysqld_max_allowed_packet |
String | '16M' | no | |
mysqld_thread_cache_sizer |
Integer | 128 | no | |
mysqld_sort_buffer_size |
String | '4M' | no | |
mysqld_bulk_insert_buffer_size |
String | '16M' | no | |
mysqld_tmp_table_size |
String | '32M' | no | |
mysqld_max_heap_table_size |
String | '32M' | no | |
mysqld_myisam_recover |
String | 'BACKUP' | no | |
mysqld_key_buffer_size |
String | '128M' | no | |
mysqld_open_files_limit |
Integer, nil | nil | no | |
mysqld_table_open_cache |
Integer | 400 | no | |
mysqld_myisam_sort_buffer_size |
String | '512M' | no | |
mysqld_concurrent_insert |
Integer | 2 | no | |
mysqld_read_buffer_size |
String | '2M' | no | |
mysqld_read_rnd_buffer_size |
String | '1M' | no | |
mysqld_query_cache_limit |
String | '128K' | no | |
mysqld_query_cache_size |
String | '64M' | no | |
mysqld_query_cache_type |
String, nil | nil | no | |
mysqld_default_storage_engine |
String | 'InnoDB' | no | |
mysqld_log_directory |
String | '/var/log/mysql' | no | |
mysqld_general_log_file |
String | "#{mysqld_log_directory}/mysql.log" | no | |
mysqld_general_log |
Integer | 0 | no | |
mysqld_log_warnings |
Integer | 2 | no | |
mysqld_slow_query_log |
Integer | 0 | no | |
mysqld_slow_query_log_file |
String | "#{mysqld_log_directory}/mariadb-slow.log" | no | |
mysqld_long_query_time |
Integer | 10 | no | |
mysqld_log_slow_rate_limit |
Integer | 1000 | no | |
mysqld_log_slow_verbosity |
String | 'query_plan' | no | |
mysqld_log_output |
String | 'FILE' | no | |
mysqld_options |
Hash | {} | no | |
mysqldump_quick |
Boolean | true | no | |
mysqldump_quote_names |
Boolean | true | no | |
mysqldump_max_allowed_packet |
String | '16M' | no | |
mysqldump_options |
Hash | {} | no | |
isamchk_key_buffer |
String | '16M' | no | |
isamchk_options |
Hash | {} | no | |
innodb_log_file_size |
String | '50M' | no | |
innodb_bps_percentage_memory |
Boolean | false | no | |
innodb_buffer_pool_size |
String | '50M' | no | |
innodb_log_buffer_size |
String | '8M' | no | |
innodb_file_per_table |
Integer | 1 | no | |
innodb_open_files |
Integer | 400 | no | |
innodb_io_capacity |
Integer | 400 | no | |
innodb_flush_method |
String | 'O_DIRECT' | no | |
innodb_options |
Hash | {} | no | |
replication_server_id |
String, nil | nil | no | |
replication_log_bin |
String | "#{mysqld_log_directory}/mariadb-bin' | no | |
replication_log_bin_index |
String | "#{mysqld_log_directory}/mariadb-bin.index' | no | |
replication_sync_binlog |
String, Integer | 0 | no | |
replication_expire_logs_days |
Integer | 10 | no | |
replication_max_binlog_size |
String | '100M' | no | |
replication_options |
Hash | {} | no |
Examples
mariadb_server_configuration 'MariaDB Server Configuration' do version '10.3' client_host 'localhost' end
mariadb_galera_configuration
Do all configuration to have a working Galera Cluster
Actions
-
create
- (default) Create & Maintain the configuration file -
remove
- Remove the galera configuration file
Properties
Name | Types | Description | Default | Required? |
---|---|---|---|---|
version |
String | Version of MariaDB installed | '10.3' | no |
cookbook |
String | 'mariadb' | no | |
extra_configuration_directory |
String | ext_conf_dir | no | |
cluster_name |
String | 'galera_cluster' | no | |
cluster_search_query |
String, NilClass | nil | no | |
gcomm_address |
String | nil | no | |
server_id |
Integer | 100 | no | |
wsrep_sst_method |
String | Can be 'rsync', 'xtrabackup' or 'mariabackup' | 'rsync' | no |
wsrep_sst_auth |
String | 'sstuser:some_secret_password' | no | |
wsrep_provider |
String | '/usr/lib/galera/libgalera_smm.so' | no | |
wsrep_slave_threads |
String | By default the MariaDB recommended value is set (nb_cpu * 4) | '%{auto}' | no |
innodb_flush_log_at_trx_commit |
Integer | 2 | no | |
wsrep_node_address_interface |
String, NilClass | nil | no | |
wsrep_node_port |
Integer, NilClass | nil | no | |
wsrep_node_incoming_address_interface |
String, NilClass | nil | no | |
wsrep_provider_options |
Hash | {'gcache.size': '512M'} | no | |
options |
Hash | {} | no | |
cluster_nodes ï Array |
[] | no |
Examples
If you use a chef-server, set an attribute within your cookbook to determine which nodes belong to the cluster. If your cookbook is 'mycookbook' set:
default['mycookbook']['galera']['cluster_name'] = 'my_functionnal_cluster_name'
Then all nodes to add to gcomm will be choosen with a search based on this attribute:
mariadb_galera_configuration 'MariaDB Galera Server Configuration' do version '10.3' cluster_name 'my_functionnal_cluster_name' cluster_search_query "mycookbook_galera_cluster_name:my_functionnal_cluster_name" end
If you don't want to have a dynamic node galera node management, set manually the gcomm_address with all nodes you want in it:
mariadb_galera_configuration 'MariaDB Galera Server Configuration' do version '10.3' cluster_name 'my_functionnal_cluster_name' gcomm_address 'gcomm://node1.fqdn,node2.fqdn' end
mariadb_replication
It's used to manage replication setup on a host. To use it, the node need to have the mysql binary installed (via the mariadb_server_install or mariadb_client_install resource).
Actions
- add - to add a new replication setup (become a slave)
- stop - to stop the slave replication
- start - to start the slave replication
- remove - to remove the slave replication configuration
Properties
The resource name need to be 'default' if your don't want to use a named connection (multi source replication in MariaDB 10).
Name | Types | Description | Default | Required? |
---|---|---|---|---|
version |
String | Version of MariaDB installed | '10.3' | no |
cookbook |
String | 'mariadb' | no | |
connection_name |
String | The resource name | yes | |
host |
String, nil | 'localhost' | no | |
port |
Integer, nil | 3306 | no | |
user |
String, nil | 'root' | no | |
password |
String, nil | nil | no | |
change_master_while_running |
true, false | false | no | |
master_password |
String | yes | ||
master_port |
Integer | 3306 | no | |
master_use_gtid |
String | 'No' | no | |
master_host |
String | yes | ||
master_user |
String | yes | ||
master_connect_retry |
String | no | ||
master_log_pos |
Integer | no | ||
master_log_file |
String | no |
Examples
mariadb_replication 'default' do user 'root' password 'fakepass' host 'fakehost' action :stop end
will stop the replication on the host fakehost
using the user root
and password fakepass
to connect to.
When you add a replication configuration, you have to define at least 4 values master_host
, master_user
, master_password
and master_use_gtid
. And if you don't want the GTID support, you have to define also master_log_file
and master_log_pos
mariadb_replication 'usefull_conn_name' do master_host 'server1' master_user 'slave_user' master_password 'slave_password' master_use_gtid 'current_pos' action :add end
By default, resource doesn't change master if slave is running. If you want to let resource change slave settings for replication channel while slave is running use change_master_while_running
property. When it's set to true
slave settings will be changed
if either one of master_host
, master_port
, master_user
, master_password
and master_use_gtid
was changed.
Changes of only master_log_file
and/or master_log_pos
don't affect server if slave is already configured.
mariadb_database
Manage databases and execute SQL queries on them. It works by establishing a control connection to the MariaDB server using the mysql2
chef gem (automatically installed). It has 3 actions:
- create - to create a named database
- drop - to drop a named database
- query - to execute a SQL query
Syntax
The full syntax of all of the properties that are available to the mariadb_database
resource is:
mariadb_database 'name' do # Credentials for the control connection user String # defaults to 'root' host String # defaults to 'localhost' port String # defaults to node['mariadb']['mysqld']['port'] password String # defaults to node['mariadb']['server_root_password'] # The database to be managed database_name String # defaults to 'name' if not specified encoding String # defaults to 'utf8' collation String # defaults to 'utf8_general_ci' sql String, Proc # the SQL query to execute action Symbol # defaults to :create if not specified end
When host
has the value localhost
, it will try to connect using the Unix socket defined in node['mariadb']['client']['socket']
, or TCP/IP if no socket is defined.
Examples
# Create a database mariadb_database 'wordpress-cust01' do host '127.0.0.1' user 'root' password node['wordpress-cust01']['mysql']['initial_root_password'] action :create end # Drop a database mariadb_database 'baz' do action :drop end # Query a database mariadb_database 'flush the privileges' do sql 'flush privileges' action :query end
The query
action will NOT select a database before running the query, nor return the actual results from the SQL query.
mariadb_user
Manage users and grant them privileges on database objects. It works by establishing a control connection to the MariaDB server using the mysql2
chef gem (automatically installed). It has 4 actions:
- create - to create a user
- drop - to drop a user
- grant - to grant privileges to a user
- revoke - to revoke privileges from a user
Syntax
The full syntax of all of the properties that are available to the mariadb_user
resource is:
mariadb_user 'name' do # Credentials for the control connection ctrl_user String # defaults to 'root' ctrl_host String # defaults to 'localhost' ctrl_port String # defaults to node['mariadb']['mysqld']['port'] ctrl_password String # defaults to node['mariadb']['server_root_password'] # The user to be managed username String # defaults to 'name' host String # defaults to 'localhost' password String, HashedPassword # The privileges to be granted/revoked privileges Array # defaults to [:all] database_name String # to grant/revoke privileges on a database table String # to grant/revoke privileges on a particular database table grant_option true|false # defaults to false require_ssl true|false # defaults to false require_x509 true|false # defaults to false action Symbol # defaults to :create if not specified end
Examples
# Create an user but grant no privileges mariadb_user 'disenfranchised' do password 'super_secret' action :create end # Create an user using a hashed password string instead of plain text one mariadb_user 'disenfranchised' do password hashed_password('md5eacdbf8d9847a76978bd515fae200a2a') action :create end # Drop a user mariadb_user 'foo_user' do action :drop end # Grant SELECT, UPDATE, and INSERT privileges to all tables in foo db from all hosts mariadb_user 'foo_user' do password 'super_secret' database_name 'foo' host '%' privileges [:select,:update,:insert] action :grant end
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Authors:
Nicolas Blanc sinfomicien@gmail.com
mariadb CHANGELOG
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
2.0.0 (2019-03-10)
Added
- Added all resources which replace the old recipes
- Removed support for fedora
Removed
- Removed all recipes
1.5.4 (2018-05-25)
Added
- Added resource
mariadb_database
to manage databases (#187) - Added resource
mariadb_user
to manage users and privileges (#187) - Added support for MariaDB galera 10.2 (#197)
- Added support for Debian 9 (#193,#194,#198,#202)
- Added the new SST method mariabackup (#192)
Fixed
- Fixed a libssl conflict when using resources based on mysql2 gem (#193)
- Fixed lack of libmariadbclient-dev on Ubuntu 16.04 when using native package (#186)
Removed
- Removed support for Chef 12 (#203)
1.5.3 (2017-10-13)
This cookbook was transferred to Sous Chefs.
Fixed
- Fixed bug where cookbook tries to set root password on every run instead of first install only (#174)
1.5.2 (2017-10-05)
Fixed
- Fixed CookStyle warnings (#172)
- Fixed Chefspec/Fauxhai deprecation messages (#171)
- Fixed missing privileges on sstuser (#168)
- Ensure configuration reload and server start after config (#166)
Added
- Added optimisations for client and server ChefSpec (#165)
- Added support for Percona XtraBackup 2.4 package (#170)
Removed
- Removed some OSes from Travis test suite; now only running tests on latest supported OS releases to get faster feedback
1.5.1 (2017-05-02)
Fixed
- Remove check for chef-client running in local mode in the
galera
recipe which skips search - this prevents being able to search when using TK (#160)
1.5.0 (2017-04-25)
Added
- Add the ability to set a custom wsrep_node_port, for when you want to specify a non default
wsrep_node_incoming_address
value (#152)
1.4.0 (2017-04-21)
Fixed
- #128 solved, mysql-libs is prevented from being removed on newer CentOS versions causing Chef to break (#153)
Changed
-
mariadb_replication
rewritten as a custom resource (#151)
Removed
- Remove Fedora support, tested versions are long gone EOL and hard to support; only latest version has a repo on yum.mariadb.org
1.3.0 (2017-03-20)
Added
- Add ability to enable and disable server audit logging (#150)
1.2.0 (2017-03-15)
Added
- Add recipe and attributes to install using Software Collections (SCL) on RedHat family systems (#149)
1.1.0 (2017-03-12)
Fixed
- Correctly set server-id and fixed replication provider
nil
string bug (#118) - Make open-files-limit configurable (previously commented out in template) (#118)
- Fix package name for RedHat family distros using MariaDB 10.1 (#138)
Added
- Add ability to specify your own
gcomm://
address for Galera replication (#139) - Add attribute containing
my.cnf
sections to configure to allow users to override what cookbook manages - Add attributes to configure general and slow log options (#137)
- Add Docker CI tests (add new APT key to fix #107, add Supermarket version badge and change Travis badge to show master build status to README)
- Add Docker tests to Travis for smoke tests
Changed
- Change CHANGELOG format to follow Keep a Changelog (v0.3.0)
- Change
Chef search results
message log level todebug
to remove unnecessary output (#90) - Update Vagrant box names to match latest OS versions for testing with VirtualBox
Removed
- Remove Fedora platfrom from Test-Kitchen, not something we'll test on going forward
- Remove Ubuntu 12.04 LTS from Test-Kitchen, not something we'll test on going forward as it reaches EOL in one month
1.0.1
Fixed
- Correct ServerSpec tests
- Correct some Units tests (Use ServerRunner instead of SoloRunner to test search)
Added
- Add an option to not install extra packages
- Update OS version to check with Kitchen
1.0.0
Fixed
- Fix fetching apt key on every run bug (#91)
- Fix Foodcritic and RuboCop offences
- Fix ChefSpec tests (and adding more coverage)
- Fix some typos
- Fix CI
- Fix non-interpolated array
- Fix only_if
- Fix unary operator; ensure script exits on any error
- Prevent cookbook from crashing Chef < 12
Added
- Add support for configuring skip-name-resolve
- Add missing code to my.cnf template to deploy mysqld_safe options
- Add the ability to config skip-log-bin to be present
- Add MariaDB 10.1 and data bag support
- Add exception handling, when searching for data bag
- Add some mandatory attributes and minor fixes
- Add test for bin_log unset
- Add sensitive tag to execute statement
- Add support to disable binlog (by setting
log_bin
tofalse
)
Changed
- Apply a more standard .gitignore
- Update chef components to more recent versions
- Update documentation for 'options' hash
- Use Berkshelf 4.x and RVM 2.1.7
Removed
- Remove anonymous users and test database by default
0.3.3
Added
- Add the ability to configure
skip-log-bin
to be present (#110)
0.3.2
Fixed
- Add missing code to
my.cnf
template to deploymysqld_safe
options (#125)
Added
- Add support for configuring skip-name-resolve (#126)
0.3.1
Fixed
- Add user and password to correct debian-grants (#57)
- Correct service name inconsistency on CentOS 7 (#68)
- Fix directory permissions regression (#73)
-
mariadb_configuration
template uses current cookbook as template source (#66) - Service is restarted every run if not localhost (#76)
Added
- Add Scientific Linux support (#69)
- Add a vagrant config to test a Galera cluster (#64)
- Add xtrabackup-v2 support for SST Method (#71)
- Allow Galera cluster nodes to be configured when using Chef Solo (#62)
0.3.0
Added
- Add support for using operating system shipped mariadb packages
0.2.12
Fixed
- Push gpg key adds through http/0 - Helps with firewalled installs (#39)
- Load the needed plugins at startup (#48)
Added
0.2.11
Fixed
- Fix TypeError in the replication provider (#43)
Added
0.2.10
Fixed
- Audit Plugin test and installation - Correct bad notifies and stdout test
0.2.9
Fixed
- Audit plugin installation can crash mariadb server (#36)
0.2.8
Fixed
- Add a switch to not launch audit plugin install, when already installed (#29)
- Remove the
only_if
to mysql service (#28) - When using Galera, nodes were not sorted, applying configuration change too often (#30)
Added
- Add more ChefSpec coverage (#31)
- Add a switch to separate server install and audit install when needed
- Add a RuboCop rule to allow line length to be 120 characters long
0.2.7
Fixed
- Fix convert TypeError in the replication provider (#24)
- Data is now moved when
['mariadb']['mysqld']['datadir']
is changed (#25)
Added
- Add
audit_plugin
management (#31)
0.2.6
Fixed
- Fix provider
mariadb_replication
compilation error (#18)
Added
- Complete CHANGELOG and correct README
0.2.5
Fixed
- Fix the debian-sys-maint user creation/password change (#12)
- Fix the Galera root password preseed (#11)
Added
- Add a LWRP to manage replication slave (#16)
- Add attribute to set custom
apt_repository
's'base_url
(#6) - Add new tests for the new features (Galera, development files install, replication LWRP)
- Add option to skip installing development files within client recipe (#17)
- Add CHANGELOG and add new feature explanations to README
0.2.4
Fixed
- Fix FC004 broken rule (#10)
- Fix Foodcritic tests (add --epic-fail any to be sure it fails when a broken rule is detected) (#9)
0.2.3
Fixed
- Fix management of the mysql root password (#4)
Added
- Add a lot of ChefSpec and kitchen/ServerSpec tests
- Add ability to add or remove root remote access via attribute (#7)
- Add immediate restart of the
mysql
service when port is changed (#5) - Add more documentation
0.2.2
Fixed
- Fix and add multiple tests
- Fix client install to add dev files
- Fix repository install under Debian family
0.2.1
Added
- Add stove to package/publish cookbook (remove PaxHeaders)
0.2.0
Fixed
- Correct the Documentation
Added
- Add a recipe to manage client only installation
- Add RPM/Yum management
Changed
- Refactor all tests to manage new platform (CentOS/RedHat/Fedora)
- Refactor the whole recipes list and management to ease it
- Rename the provider (from
extraconf
toconfiguration
) and add matchers for it
0.1.8
Added
- Add ignore-failure to debian-grants correct as it can break on initial setup
0.1.7
Fixed
- Correct a typo (unnecessary call to
run_command
)
0.1.6
Added
- Add new rspec tests
- Create Kitchen test suite
- Improve Galera configuration management
0.1.5
Added
- Improve attributes management
0.1.4
Added
- Adapt
galera55
recipe to use a generic galera recipe - Improve documentation
- Use a generic Galera recipe to create the galera10 recipe
0.1.0
- Initial release of mariadb
Collaborator Number Metric
2.0.0 passed 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 passed this metric
No Binaries 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 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 passed this metric
No Binaries 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