[Puppet-dev][mongodb] Feature: db, user creation

19 views
Skip to first unread message

Roman Sokolkov

unread,
Dec 25, 2013, 9:31:39 AM12/25/13
to puppe...@googlegroups.com
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?

Reply all
Reply to author
Forward
0 new messages