You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,17 @@
2
2
3
3
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).
@@ -150,7 +154,7 @@ All notable changes to this project will be documented in this file. The format
150
154
-\(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))
- 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))
154
158
- Add user tls\_options and grant options to mysql::db [\#1065](https://github.com/puppetlabs/puppetlabs-mysql/pull/1065) ([edestecd](https://github.com/edestecd))
155
159
- Use puppet4 functions-api [\#1044](https://github.com/puppetlabs/puppetlabs-mysql/pull/1044) ([juliantodt](https://github.com/juliantodt))
156
160
- Replaced 'DROP USER' with 'DROP USER IF EXISTS' [\#942](https://github.com/puppetlabs/puppetlabs-mysql/pull/942) ([libertamohamed](https://github.com/libertamohamed))
Copy file name to clipboardExpand all lines: REFERENCE.md
+64-3Lines changed: 64 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ _Private Classes_
18
18
19
19
*`mysql::backup::mysqlbackup`: Manage the mysqlbackup client.
20
20
*`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
22
22
*`mysql::bindings::client_dev`: Private class for installing client development bindings
23
23
*`mysql::bindings::daemon_dev`: Private class for installing daemon development bindings
24
24
*`mysql::bindings::java`: Private class for installing java language bindings.
@@ -56,6 +56,8 @@ _Private Resource types_
56
56
57
57
**Functions**
58
58
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.
59
61
*[`mysql::password`](#mysqlpassword): Hash a string as mysql's "PASSWORD()" function would do it
60
62
*[`mysql::strip_hash`](#mysqlstrip_hash): When given a hash this function strips out all blank entries.
61
63
*[`mysql_password`](#mysql_password): Hash a string as mysql's "PASSWORD()" function would do it
@@ -650,6 +652,11 @@ class { 'mysql::server::backup':
650
652
backuppassword => 'mypassword',
651
653
backupdir => '/tmp/backups',
652
654
}
655
+
class { 'mysql::server::backup':
656
+
backupmethod => 'mariabackup',
657
+
provider => 'xtrabackup',
658
+
backupdir => '/tmp/backups',
659
+
}
653
660
```
654
661
655
662
#### Parameters
@@ -712,6 +719,14 @@ Whether or not to compress the backup (when using the mysqldump provider)
712
719
713
720
Default value: `true`
714
721
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
+
715
730
##### `backuprotate`
716
731
717
732
Data type: `Any`
@@ -740,9 +755,9 @@ Default value: `false`
740
755
741
756
Data type: `Any`
742
757
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.
744
759
745
-
Default value: `[]` (backs up all databases)
760
+
Default value: []
746
761
747
762
##### `file_per_database`
748
763
@@ -1201,6 +1216,52 @@ The name of the user. This uses the 'username@hostname' or username@hostname.
1201
1216
1202
1217
## Functions
1203
1218
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.
Copy file name to clipboardExpand all lines: manifests/server/backup.pp
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@
39
39
# @param delete_before_dump
40
40
# 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.
41
41
# @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.
43
43
# @param file_per_database
44
44
# Use file per database mode creating one file per database backup.
0 commit comments