Skip to content

Grants for the backupuser should be conditional #539

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 23, 2014
Merged

Grants for the backupuser should be conditional #539

merged 1 commit into from
Jul 23, 2014

Conversation

stevesaliman
Copy link
Contributor

The mysql::server::backup class checks the ensure parameter when it creates the backup user, but it assumes 'present' when it does the grants for the backup user. This means that when we try to turn off backups for a server, it removes the backup user, then tries to grant this no longer existing user permissions to perform a backup.

It will continue to try to perform the grant on each puppet run.

This pull request addresses this by changing the ensure value passed to mysql_grant from 'present' to $ensure.

igalic added a commit that referenced this pull request Jul 23, 2014
Grants for the backupuser should be conditional
@igalic igalic merged commit 4664352 into puppetlabs:master Jul 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants