Skip to content

Commit 01f65f9

Browse files
authored
Merge pull request #1220 from puppetlabs/release
(MODULES-9636) - Release Merge back v10.1.0
2 parents b03d149 + 1d0def0 commit 01f65f9

File tree

4 files changed

+76
-11
lines changed

4 files changed

+76
-11
lines changed

CHANGELOG.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22

33
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).
44

5-
## [v10.0.0](https://github.com/puppetlabs/puppetlabs-mysql/tree/v10.0.0) (2019-06-26)
5+
## [v10.1.0](https://github.com/puppetlabs/puppetlabs-mysql/tree/v10.1.0) (2019-07-30)
66

7-
[Full Changelog](https://github.com/puppetlabs/puppetlabs-mysql/compare/v9.1.0...v10.0.0)
7+
[Full Changelog](https://github.com/puppetlabs/puppetlabs-mysql/compare/v10.0.0...v10.1.0)
88

9-
### Changed
9+
### Added
1010

11-
- \(FM-7709\) pdksync and remove beaker [\#1210](https://github.com/puppetlabs/puppetlabs-mysql/pull/1210) ([tphoney](https://github.com/tphoney))
11+
- Allow backup::mysqldump::time to accept monthday, month, weekday [\#1214](https://github.com/puppetlabs/puppetlabs-mysql/pull/1214) ([malakai97](https://github.com/malakai97))
12+
13+
## [v10.0.0](https://github.com/puppetlabs/puppetlabs-mysql/tree/v10.0.0) (2019-06-26)
14+
15+
[Full Changelog](https://github.com/puppetlabs/puppetlabs-mysql/compare/v9.1.0...v10.0.0)
1216

1317
### Added
1418

@@ -150,7 +154,7 @@ All notable changes to this project will be documented in this file. The format
150154
- \(FM-5985\) - Addition of support for Ubuntu 18.04 to mysql [\#1104](https://github.com/puppetlabs/puppetlabs-mysql/pull/1104) ([david22swan](https://github.com/david22swan))
151155
- \(MODULES-7439\) - Implementing beaker-testmode\_switcher [\#1095](https://github.com/puppetlabs/puppetlabs-mysql/pull/1095) ([pmcmaw](https://github.com/pmcmaw))
152156
- Support for optional\_\_args and prescript to mysqldump backup provider [\#1083](https://github.com/puppetlabs/puppetlabs-mysql/pull/1083) ([eputnam](https://github.com/eputnam))
153-
- Allow empty user passwords [\#1075](https://github.com/puppetlabs/puppetlabs-mysql/pull/1075) ([disappear89](https://github.com/disappear89))
157+
- Allow empty user passwords [\#1075](https://github.com/puppetlabs/puppetlabs-mysql/pull/1075) ([ThoTischner](https://github.com/ThoTischner))
154158
- Add user tls\_options and grant options to mysql::db [\#1065](https://github.com/puppetlabs/puppetlabs-mysql/pull/1065) ([edestecd](https://github.com/edestecd))
155159
- Use puppet4 functions-api [\#1044](https://github.com/puppetlabs/puppetlabs-mysql/pull/1044) ([juliantodt](https://github.com/juliantodt))
156160
- Replaced 'DROP USER' with 'DROP USER IF EXISTS' [\#942](https://github.com/puppetlabs/puppetlabs-mysql/pull/942) ([libertamohamed](https://github.com/libertamohamed))

REFERENCE.md

Lines changed: 64 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ _Private Classes_
1818

1919
* `mysql::backup::mysqlbackup`: Manage the mysqlbackup client.
2020
* `mysql::backup::mysqldump`: "Provider" for mysqldump
21-
* `mysql::backup::xtrabackup`: "Provider" for Percona XtraBackup or MariaBackup
21+
* `mysql::backup::xtrabackup`: "Provider" for Percona XtraBackup/MariaBackup
2222
* `mysql::bindings::client_dev`: Private class for installing client development bindings
2323
* `mysql::bindings::daemon_dev`: Private class for installing daemon development bindings
2424
* `mysql::bindings::java`: Private class for installing java language bindings.
@@ -56,6 +56,8 @@ _Private Resource types_
5656

5757
**Functions**
5858

59+
* [`mysql::normalise_and_deepmerge`](#mysqlnormalise_and_deepmerge): Recursively merges two or more hashes together, normalises keys with differing use of dashesh and underscores,
60+
then returns the resulting hash.
5961
* [`mysql::password`](#mysqlpassword): Hash a string as mysql's "PASSWORD()" function would do it
6062
* [`mysql::strip_hash`](#mysqlstrip_hash): When given a hash this function strips out all blank entries.
6163
* [`mysql_password`](#mysql_password): Hash a string as mysql's "PASSWORD()" function would do it
@@ -650,6 +652,11 @@ class { 'mysql::server::backup':
650652
backuppassword => 'mypassword',
651653
backupdir => '/tmp/backups',
652654
}
655+
class { 'mysql::server::backup':
656+
backupmethod => 'mariabackup',
657+
provider => 'xtrabackup',
658+
backupdir => '/tmp/backups',
659+
}
653660
```
654661

655662
#### Parameters
@@ -712,6 +719,14 @@ Whether or not to compress the backup (when using the mysqldump provider)
712719

713720
Default value: `true`
714721

722+
##### `backupmethod`
723+
724+
Data type: `Any`
725+
726+
The execution binary for backing up. ex. mysqldump, xtrabackup, mariabackup
727+
728+
Default value: `undef`
729+
715730
##### `backuprotate`
716731

717732
Data type: `Any`
@@ -740,9 +755,9 @@ Default value: `false`
740755

741756
Data type: `Any`
742757

743-
Databases to backup (required if using xtrabackup provider).
758+
Databases to backup (required if using xtrabackup provider). By default `[]` will back up all databases.
744759

745-
Default value: `[]` (backs up all databases)
760+
Default value: []
746761

747762
##### `file_per_database`
748763

@@ -1201,6 +1216,52 @@ The name of the user. This uses the 'username@hostname' or username@hostname.
12011216

12021217
## Functions
12031218

1219+
### mysql::normalise_and_deepmerge
1220+
1221+
Type: Ruby 4.x API
1222+
1223+
- When there is a duplicate key that is a hash, they are recursively merged.
1224+
- When there is a duplicate key that is not a hash, the key in the rightmost hash will "win."
1225+
- When there are conficting uses of dashes and underscores in two keys (which mysql would otherwise equate), the rightmost style will win.
1226+
1227+
#### Examples
1228+
1229+
#####
1230+
1231+
```puppet
1232+
$hash1 = {'one' => 1, 'two' => 2, 'three' => { 'four' => 4 } }
1233+
$hash2 = {'two' => 'dos', 'three' => { 'five' => 5 } }
1234+
$merged_hash = mysql::normalise_and_deepmerge($hash1, $hash2)
1235+
# The resulting hash is equivalent to:
1236+
# $merged_hash = { 'one' => 1, 'two' => 'dos', 'three' => { 'four' => 4, 'five' => 5 } }
1237+
```
1238+
1239+
#### `mysql::normalise_and_deepmerge(Any *$args)`
1240+
1241+
- When there is a duplicate key that is a hash, they are recursively merged.
1242+
- When there is a duplicate key that is not a hash, the key in the rightmost hash will "win."
1243+
- When there are conficting uses of dashes and underscores in two keys (which mysql would otherwise equate), the rightmost style will win.
1244+
1245+
Returns: `Any`
1246+
1247+
##### Examples
1248+
1249+
######
1250+
1251+
```puppet
1252+
$hash1 = {'one' => 1, 'two' => 2, 'three' => { 'four' => 4 } }
1253+
$hash2 = {'two' => 'dos', 'three' => { 'five' => 5 } }
1254+
$merged_hash = mysql::normalise_and_deepmerge($hash1, $hash2)
1255+
# The resulting hash is equivalent to:
1256+
# $merged_hash = { 'one' => 1, 'two' => 'dos', 'three' => { 'four' => 4, 'five' => 5 } }
1257+
```
1258+
1259+
##### `*args`
1260+
1261+
Data type: `Any`
1262+
1263+
1264+
12041265
### mysql::password
12051266

12061267
Type: Ruby 4.x API

manifests/server/backup.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
# @param delete_before_dump
4040
# Whether to delete old .sql files before backing up. Setting to true deletes old files before backing up, while setting to false deletes them after backup.
4141
# @param backupdatabases
42-
# Databases to backup (if using xtrabackup provider).
42+
# Databases to backup (required if using xtrabackup provider). By default `[]` will back up all databases.
4343
# @param file_per_database
4444
# Use file per database mode creating one file per database backup.
4545
# @param include_routines

metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "puppetlabs-mysql",
3-
"version": "10.0.0",
3+
"version": "10.1.0",
44
"author": "puppetlabs",
55
"summary": "Installs, configures, and manages the MySQL service.",
66
"license": "Apache-2.0",
7-
"source": "git://github.com/puppetlabs/puppetlabs-mysql.git",
7+
"source": "git://github.com/puppetlabs/puppetlabs-mysql",
88
"project_page": "http://github.com/puppetlabs/puppetlabs-mysql",
99
"issues_url": "https://tickets.puppetlabs.com/browse/MODULES",
1010
"dependencies": [

0 commit comments

Comments
 (0)