Changed the backup user grant in backup.pp to use the ensure variable instead of always assuming 'present'

This commit is contained in:
Steve Saliman 2014-07-11 11:25:10 -06:00
parent c6acbf5a53
commit 30249552d4

View file

@ -26,7 +26,7 @@ class mysql::server::backup (
} }
mysql_grant { "${backupuser}@localhost/*.*": mysql_grant { "${backupuser}@localhost/*.*":
ensure => present, ensure => $ensure,
user => "${backupuser}@localhost", user => "${backupuser}@localhost",
table => '*.*', table => '*.*',
privileges => [ 'SELECT', 'RELOAD', 'LOCK TABLES', 'SHOW VIEW', 'PROCESS' ], privileges => [ 'SELECT', 'RELOAD', 'LOCK TABLES', 'SHOW VIEW', 'PROCESS' ],