rabbitmq-server:
  pkgrepo.managed:
    - name: deb http://www.rabbitmq.com/debian/ testing main
    - key_url: http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
  pkg:
    - installed
    - require:
      - pkgrepo: rabbitmq-server
  service:
    - running
    - enable: True
    - require:
      - pkg: rabbitmq-server
    - watch:
      - file: rabbitmq-config

remove_defaults:
  rabbitmq_user.absent:
    - name: guest

rabbitmq-config:
  file.managed:
    - name: /etc/rabbitmq/rabbitmq.config
    - source: salt://rabbitmq/rabbitmq.config
    - user: root
    - group: root
    - mode: 644
    - template: jinja
    - require:
      - pkg: rabbitmq-server

rabbitmq-server:
  pkgrepo.managed:
    - name: deb http://www.rabbitmq.com/debian/ testing main
    - key_url: http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
    - require_in:
      - pkg: rabbitmq-server
  pkg:
    - latest
  service:
    - running
    - enable: True
    - require:
      - pkg: rabbitmq-server
    - watch:
      - file: rabbitmq-config

remove_defaults:
  rabbitmq_user.absent:
    - name: guest

rabbitmq-config:
  file.managed:
    - name: /etc/rabbitmq/rabbitmq.config
    - source: salt://rabbitmq/rabbitmq.config
    - user: root
    - group: root
    - mode: 644
    - template: jinja
    - require:
      - pkg: rabbitmq-server

Update the require statements and ensure that the latest RabbitMQ is installed.
Update the require statements and ensure that the latest RabbitMQ is installed.

caktus/margarita,caktus/margarita