Cook cookbook for creating MongoDB users

We are going to deploy MongoDB with the help of a chef. We found some cookbooks that take care of installing MongoDB on the server. However, none of the cookbooks we found supports MongoDB user setup.

We would prefer to store authorization information for MongoDB users in encrypted data packets.

Is there a cookbook that does this?

+4
source share
1 answer

I do not believe that there are currently public cookbooks. You probably want to build the following two cookbooks:

https://github.com/edelight/chef-mongodb

  • Already have a library that connects to the Mongo server. You will probably want to use it as an example of how to interact with mongo in the chef's library.

https://github.com/opscode-cookbooks/database

  • The main recipe is for creating databases and users from a database (adaptation for encryption will be trivial)
  • There are good library providers for interacting with several types of databases. You simply use the connection examples from the first cookbook to redefine these providers for mongo.
+3
source

Source: https://habr.com/ru/post/1498384/


All Articles