Skip to content

Commit aa82f83

Browse files
committed
Merge pull request #500 from nerdlich/patch-1
User needs PROCESS privilege when doing file-per-database backup
2 parents 09c63fb + b40865d commit aa82f83

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

manifests/server/backup.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
ensure => present,
3030
user => "${backupuser}@localhost",
3131
table => '*.*',
32-
privileges => [ 'SELECT', 'RELOAD', 'LOCK TABLES', 'SHOW VIEW' ],
32+
privileges => [ 'SELECT', 'RELOAD', 'LOCK TABLES', 'SHOW VIEW', 'PROCESS' ],
3333
require => Mysql_user["${backupuser}@localhost"],
3434
}
3535

spec/classes/mysql_server_backup_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
)}
2020

2121
it { should contain_mysql_grant('testuser@localhost/*.*').with(
22-
:privileges => ["SELECT", "RELOAD", "LOCK TABLES", "SHOW VIEW"]
22+
:privileges => ["SELECT", "RELOAD", "LOCK TABLES", "SHOW VIEW", "PROCESS"]
2323
)}
2424

2525
it { should contain_cron('mysql-backup').with(

0 commit comments

Comments
 (0)