Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
None
-
None
-
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.