Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- edunav-rabbitmq Cookbook
- ============================
- This is a cookbook for managing RabbitMQ with Chef. It is intended for 2.6.1 or later releases.
- TODO: 1) Automate search apps for deleting.
- Requirements
- ------------
- This cookbook depends on the `erlang` cookbook.
- Works on:
- - CentOS 6.4
- - Ubuntu 13.04
- Recipes
- -------
- ### default
- Manage user on installed RabbitMQ server.
- In this cookbook we have two type of users.
- User such as developer and user as application credentials.
- User as deleloper search in databag by group.
- Databag where search and group what we search setts in attributes marked "dev_users"
- User as application add from databag which we setting in attributes marked "app_user"
- This databag must be like this
- {
- "id": "item_with_creds",
- "app_creds": {
- "expample_app": {
- "login": "example_user",
- "password": "example_password"
- }
- }
- }
- Attributes
- ----------
- # Data bag where application rabbitmq user (such as developers) credentials stored
- default['edunav-rabbitmq']['dev_users']['databag'] = 'users'
- default['edunav-rabbitmq']['dev_users']['search_group'] = 'rabbitmq'
- # Data bag where application rabbitmq user (for application) credentials stored
- default['edunav-rabbitmq']['app_users']['databag'] = 'credentials'
- default['edunav-rabbitmq']['app_users']['databag_item'] = 'rabbitmq'
- # Setting up rabbitmq application, application = vhost
- default['edunav-rabbitmq']['broker']['apps'] = []
- default['edunav-rabbitmq']['broker']['delete_apps'] = []
- Usage
- -----
- #### edunav-rabbitmq::default
- Just include `edunav-rabbitmq` in your node's `run_list`:
- ```json
- {
- "name":"my_node",
- "run_list": [
- "recipe[edunav-rabbitmq]"
- ]
- }
- ```
- Limitations
- -----------
- For an already running cluster, these actions still require manual intervention:
- - changing the :erlang_cookie
- - turning :cluster from true to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement