Skip to content

Commit

Permalink
rubocop fixes and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Quackenbush committed Mar 19, 2019
1 parent 016632e commit 829d6c5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ Plugins can be installed by using the `mysql_plugin` defined type. See `examples
* `mysql::client::install`: Installs MySQL client.
* `mysql::backup::mysqldump`: Implements mysqldump backups.
* `mysql::backup::mysqlbackup`: Implements backups with Oracle MySQL Enterprise Backup.
* `mysql::backup::xtrabackup`: Implements backups with XtraBackup from Percona.
* `mysql::backup::xtrabackup`: Implements backups with XtraBackup from Percona or Mariabackup.

### Parameters

Expand Down
2 changes: 1 addition & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ _Private Classes_

* `mysql::backup::mysqlbackup`: Manage the mysqlbackup client.
* `mysql::backup::mysqldump`: "Provider" for mysqldump
* `mysql::backup::xtrabackup`: "Provider" for Percona XtraBackup
* `mysql::backup::xtrabackup`: "Provider" for Percona XtraBackup or MariaBackup
* `mysql::bindings::client_dev`: Private class for installing client development bindings
* `mysql::bindings::daemon_dev`: Private class for installing daemon development bindings
* `mysql::bindings::java`: Private class for installing java language bindings.
Expand Down
7 changes: 7 additions & 0 deletions manifests/server/backup.pp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
# backuppassword => 'mypassword',
# backupdir => '/tmp/backups',
# }
# class { 'mysql::server::backup':
# backupmethod => 'mariabackup',
# provider => 'xtrabackup',
# backupdir => '/tmp/backups',
# }
#
# @param backupuser
# MySQL user with backup administrator privileges.
Expand All @@ -25,6 +30,8 @@
# Group owner for the backup directory. This parameter is passed directly to the file resource.
# @param backupcompress
# Whether or not to compress the backup (when using the mysqldump provider)
# @param backupmethod
# The execution binary for backing up. ex. mysqldump, xtrabackup, mariabackup
# @param backuprotate
# Backup rotation interval in 24 hour periods.
# @param ignore_events
Expand Down
3 changes: 1 addition & 2 deletions spec/classes/mysql_server_backup_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,7 @@ class { 'mysql::server': }
context 'with mariabackup' do
let(:params) do
default_params.merge(provider: 'xtrabackup',
backupmethod: 'mariabackup'
)
backupmethod: 'mariabackup')
end

it 'contain the mariabackup executor' do
Expand Down

0 comments on commit 829d6c5

Please sign in to comment.