Skip to content

re-setting of privileges each puppet run after adding privileges for another database to puppet controlled user #1543

Open
@o4ier

Description

@o4ier

Describe the Bug

Creating a new, additional database on mysqlserver (by hand) and granting puppet controlled user privileges on it causes setting of privileges on each puppet run, because the set privileges are not evaluated correctly

Expected Behavior

granting a puppet controlled user privileges on another databases should not cause endless re-setting of privileges for that user

Steps to Reproduce

Steps to reproduce the behavior:

  1. create a database (eg. database1) with this module
  2. create a user (eg. user1) with this module
  3. grant user1 privileges (eg. 'ALL') on database1 with this module
  4. run puppet multiple times -> no more changes after initial set up
  5. create a new database (eg. database2) by hand on the system
  6. grant user1 privileges (eg. 'ALL') on database2
  7. run puppet (multiple times) -> each puppet run changes the privileges for user1@database1

Environment

  • Version 1.13.2.0
  • Platform RHEL 8 and 9

Additional Context

I still have another issue ( #1502 ) /pr ( #1503 ) open/existing, which somehow got lost on my desk.
Can I reopen the pr and use it to fix both issues?
Or should I create a new pr for this issue, after the first one is accepted after i fixed it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions