Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. edunav-rabbitmq Cookbook
  2. ============================
  3. This is a cookbook for managing RabbitMQ with Chef. It is intended for 2.6.1 or later releases.
  4.  
  5. TODO: 1) Automate search apps for deleting.
  6.  
  7.  
  8. Requirements
  9. ------------
  10.  
  11. This cookbook depends on the `erlang` cookbook.
  12.  
  13. Works on:
  14.  
  15. - CentOS 6.4
  16. - Ubuntu 13.04
  17.  
  18. Recipes
  19. -------
  20. ### default
  21.  
  22. Manage user on installed RabbitMQ server.
  23.  
  24. In this cookbook we have two type of users.
  25.  
  26. User such as developer and user as application credentials.
  27.  
  28. User as deleloper search in databag by group.
  29.  
  30. Databag where search and group what we search setts in attributes marked "dev_users"
  31.  
  32. User as application add from databag which we setting in attributes marked "app_user"
  33.  
  34. This databag must be like this
  35.  
  36. {
  37. "id": "item_with_creds",
  38. "app_creds": {
  39. "expample_app": {
  40. "login": "example_user",
  41. "password": "example_password"
  42. }
  43. }
  44. }
  45.  
  46.  
  47. Attributes
  48. ----------
  49.  
  50.  
  51. # Data bag where application rabbitmq user (such as developers) credentials stored
  52. default['edunav-rabbitmq']['dev_users']['databag'] = 'users'
  53. default['edunav-rabbitmq']['dev_users']['search_group'] = 'rabbitmq'
  54.  
  55. # Data bag where application rabbitmq user (for application) credentials stored
  56. default['edunav-rabbitmq']['app_users']['databag'] = 'credentials'
  57. default['edunav-rabbitmq']['app_users']['databag_item'] = 'rabbitmq'
  58.  
  59. # Setting up rabbitmq application, application = vhost
  60. default['edunav-rabbitmq']['broker']['apps'] = []
  61. default['edunav-rabbitmq']['broker']['delete_apps'] = []
  62.  
  63.  
  64. Usage
  65. -----
  66. #### edunav-rabbitmq::default
  67.  
  68. Just include `edunav-rabbitmq` in your node's `run_list`:
  69.  
  70. ```json
  71. {
  72. "name":"my_node",
  73. "run_list": [
  74. "recipe[edunav-rabbitmq]"
  75. ]
  76. }
  77. ```
  78.  
  79.  
  80.  
  81.  
  82. Limitations
  83. -----------
  84. For an already running cluster, these actions still require manual intervention:
  85. - changing the :erlang_cookie
  86. - turning :cluster from true to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement