FTBpro / mongodb_cookbook

Chef cookbook to install MongoDB 2.6.8 on Ubuntu Trusty 14.04

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mongodb Cookbook

This recipe installs the latest MongoDB package from Ubuntu's apt repository. It will also create an admin user on the database.

Requirements

apt cookbook

Attributes

mongodb::default

Key Type Description Default
['mongodb']['admin_user']['username'] String Username for the admin user blank
['mongodb']['admin_user']['password'] String Password for the admin user blank

NOTE: You can also upload a databag called "mongodb" with a "admin_user" item which has username and password fields. If you choose this way there is no need to override the default attributes.

Usage

mongodb::default

Just include mongodb in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[mongodb]"
  ]
}

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Authors: Erez Rabih

About

Chef cookbook to install MongoDB 2.6.8 on Ubuntu Trusty 14.04


Languages

Language:Ruby 61.3%Language:HTML 38.7%