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

puppetlabs-mysql : mysql::server::includedir doesn't accept array of paths

    XMLWordPrintable

    Details

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

      puppetlabs-mysql v6.2.0

      puppet 5.5.10

      CentoOS 7

    • Template:
      MODULES Bug Template
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Hi, I've found that I cannot supply such config through hiera:

      mysql::server::includedir:

      • '/etc/my.cnf.d'
      • '/etc/percona-xtradb-cluster.conf.d/'

      This results in:

      Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, 'mysql::dirname' parameter 'path' expects a value of type Undef or String, got Tuple (file: /etc/puppetlabs/code/environments/production/modules/mysql/manifests/server/config.pp, line: 27, column: 25) on node XXX

       

      It looks like wrapping file config.pp lines 27-34 in includepathdir.each |String path| {} should help. Also templates/my.cnf.erb needs to support more than one includedir then.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            uosiu Krzysztof Hajdamowicz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support