Skip to content

Instantly share code, notes, and snippets.

@PredatorVI
Last active August 29, 2015 14:27
Show Gist options
  • Save PredatorVI/fbe3e490b9f2441909bf to your computer and use it in GitHub Desktop.
Save PredatorVI/fbe3e490b9f2441909bf to your computer and use it in GitHub Desktop.
RabbitMQ state error
rabbitmq:
version: "3.5.4-1"
plugin:
rabbitmq_management:
- enabled
policy:
rabbitmq_policy:
- name: HA
- pattern: '.*'
- definition: '{"ha-mode": "all"}'
vhost:
virtual_host:
- owner: myuser
- conf: .*
- write: .*
- read: .*
user:
dbarmor_processor:
- password: blah
- force: True
- perms:
- '/':
- '.*'
- '.*'
- '.*'
dbarmor_web:
- password: blah
- force: True
- perms:
- '/':
- '.*'
- '.*'
- '.*'
webpulse:
- password: blah
- tags: administrator
- force: True
- perms:
- '/':
- '.*'
- '.*'
- '.*'
#Formula included below from: https://github.com/PredatorVI/rabbitmq-formula
include:
- rabbitmq.latest
rabbit_cookie:
file.managed:
- name: /var/lib/rabbitmq/.erlang.cookie
- source: salt://myapp/erlang.cookie
- user: rabbitmq
- group: rabbitmq
- mode: 400
- require:
- pkg: rabbitmq-server
ERROR WHEN RUNNING:
The minion function caused an exception: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/minion.py", line 1161, in _thread_return
return_data = func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/salt/modules/state.py", line 523, in highstate
whitelist=kwargs.get('whitelist')
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 2968, in call_highstate
return self.state.call_high(high)
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 2067, in call_high
ret = dict(list(disabled.items()) + list(self.call_chunks(chunks).items()))
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1623, in call_chunks
running = self.call_chunk(low, running, chunks)
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1769, in call_chunk
self._mod_init(low)
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 612, in _mod_init
self.states['{0}.{1}'.format(low['state'], low['fun'])] # pylint: disable=W0106
File "/usr/lib/python2.7/dist-packages/salt/utils/lazy.py", line 90, in __getitem__
raise KeyError(key)
KeyError: 'rabbitmq_plugin.enabled'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment