Hello, everyone.
I am new to puppetlabs development process, but would like to assist in. We
have a lot of internal puppet developments and some of them could be back
ported to the trunk.
MongoDB module[1] doesn't have interface for creating databases and users.
I would like to propose my change[2] implementing this feature, like this
was done for MySQL[3].
In short, code below will create 'testdb' database with 'user1' user and
default role 'dbAdmin'.
mongodb::db { 'testdb':
user => 'user1',
password => 'pass1',
}
Roles could be tuned by passing 'roles' param( i.e. roles => ['readWrite',
'dbAdmin'] ). Password passed to mongo server in the hashed state.
Could you please devote some time for comments and review?
Thanks, Roman Sokolkov
[1]: https://github.com/puppetlabs/puppetlabs-mongodb
[2]: https://github.com/puppetlabs/puppetlabs-mongodb/pull/70
[3]:
https://github.com/puppetlabs/puppetlabs-mysql/blob/master/manifests/db.pp
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-dev/CADGJUjwWGAoLq8_%2B8AgdSsWkkB9XyVCt-%3D%3Dk%2B1arMhXyhQ%2BN_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.