Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-6823

mysql : duplicate declaration of Mysql_user@[localhost]

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mysql
    • Labels:
    • Environment:

      OS: RHEL 7.4

      mysql::server::package_name: mariadb-server

    • Template:
      MODULES Bug Template
    • Epic Link:
    • Team:
      Modules
    • Method Found:
      Customer Feedback
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      Module Version: 5.3.0
      Puppet Version: 4.10
      OS Name/Version: RHEL 7.4

      If mysql::server::backup is included and mysql::server::remove_default_accounts is set to true, then the result is a duplicate declaration error.

      Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Mysql_user[@localhost] is already declared in file /local/puppetoss/envs/cph/cph_server/modules/mysql/manifests/server/account_security.pp:3; cannot redeclare at /local/puppetoss/envs/cph/cph_server/modules/mysql/manifests/backup/mysqldump.pp:31 at /local/puppetoss/envs/cph/cph_server/modules/mysql/manifests/backup/mysqldump.pp:31:3 on node...
      

       

      Desired Behavior:

      mysql::server::backup class can be included while mysql::server::remove_default_accounts is set to true

      Actual Behavior:

      mysql::server::backup class conflicts with mysql::server::account_security class.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            cgrycki Chris Grycki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support