This recipe installs the latest MongoDB package from Ubuntu's apt repository. It will also create an admin user on the database.
apt cookbook
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.
Just include mongodb
in your node's run_list
:
{
"name":"my_node",
"run_list": [
"recipe[mongodb]"
]
}
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Authors: Erez Rabih