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

puppetlabs/mongodb mongodb_user fails to create user when dbname contains (an) hyphen(s)

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • None
    • mongodb
    • None
    • Needs Assessment

    Description

      This issue is related to the following pull request :
      https://github.com/puppetlabs/puppetlabs-mongodb/pull/304

      This pull request resolved part of the problem by changing the regex to validate dbname in mongodb_database.rb but the same incorrect regex is present in mongodb_user.rb as i pointed out in the last comment on this pull request:

      lib/puppet/type/mongodb_user.rb

       21   newproperty(:database) do
       22     desc "The user's target database."
       23     defaultto do
       24       fail("Parameter 'database' must be set") if provider.database == :absent
       25     end
       26     newvalues(/^\w+$/)
       27   end
      

      Anyway, the result is we cant use dbname with hyphen because it fails when trying to create the associated users.

      Attachments

        Activity

          People

            Unassigned Unassigned
            djoby Olivier Lagiewka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support