Skip to content

Instantly share code, notes, and snippets.

@pwistrand
Created March 22, 2014 11:04
Show Gist options
  • Save pwistrand/9705304 to your computer and use it in GitHub Desktop.
Save pwistrand/9705304 to your computer and use it in GitHub Desktop.
rabbitmq-repo:
pkgrepo.managed:
- name: deb http://www.rabbitmq.com/debian/ testing main
- key_url: http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
require:
- pkg: python-apt
rabbitmq-server:
pkg:
- latest
- name: rabbitmq-server
- requires:
- pkgrepo: rabbitmq-repo
service:
- running
- enable: True
- watch:
- pkg: rabbitmq-server
rabbitmq_plugin:
- enabled
- name: rabbitmq_management
@pwistrand
Copy link
Author

How do we write this rabbitmq state so that the service is restarted when after the plugin is enabled?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment