Skip to content

Instantly share code, notes, and snippets.

@dnd
Created July 17, 2014 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnd/39e2cb6ef9161b335e64 to your computer and use it in GitHub Desktop.
Save dnd/39e2cb6ef9161b335e64 to your computer and use it in GitHub Desktop.
setup-rabbit:
salt.state:
- tgt: 'G@environment:staging and G@provides:rabbitmq:*'
- tgt_type: compound
- sls:
- rabbitmq
----------
ID: setup-rabbit
Function: salt.state
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/salt/state.py", line 1380, in call
self.verify_ret(ret)
File "/usr/lib/python2.6/contextlib.py", line 34, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/pymodules/python2.6/salt/utils/context.py", line 43, in func_globals_inject
yield
File "/usr/lib/pymodules/python2.6/salt/state.py", line 1379, in call
**cdata['kwargs'])
File "/usr/lib/pymodules/python2.6/salt/states/saltmod.py", line 185, in state
__opts__,
File "/usr/lib/pymodules/python2.6/salt/output/__init__.py", line 101, in out_format
return get_printout(out, opts)(data).rstrip()
File "/usr/lib/pymodules/python2.6/salt/output/highstate.py", line 44, in output
return _format_host(host, hostdata)[0]
File "/usr/lib/pymodules/python2.6/salt/output/highstate.py", line 128, in _format_host
comment = ret['comment'].join(' ').replace('\n',
AttributeError: 'dict' object has no attribute 'join'
rabbitmq-server:
pkgrepo.managed:
- humanname: Rabbit MQ
- name: deb http://www.rabbitmq.com/debian/ testing main
- file: /etc/apt/sources.list.d/rabbitmq.list
- key_url: http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
- require_in:
- pkg: rabbitmq-server
pkg:
- installed
service.running:
- enable: True
- require:
- pkg: rabbitmq-server
- watch:
- pkg: rabbitmq-server
rabbitmq-enable-management-plugin:
rabbitmq_plugin.enabled:
- name: rabbitmq_management
#- name: rabbitmq-plugins enable rabbitmq_management
#- unless: grep rabbitmq_management /etc/rabbitmq/enabled_plugins
- require:
- pkg: rabbitmq-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment