Configure RabbitMQ#

Add service accounts#

To configure the message broker for an application:

  1. Add a user for the application, in a private Pillar file, replacing PASSWORD with a strong password (uncheck Symbols) and USERNAME with a recognizable username:

    rabbitmq:
      users:
        USERNAME:
          password: "PASSWORD"
    
  2. To give the user access to the management interface, add:

    rabbitmq:
      users:
        USERNAME:
          password: "PASSWORD"
          tags:
            - management
    
  3. To give the user access to memory use, add:

    rabbitmq:
      users:
        USERNAME:
          password: "PASSWORD"
          tags:
            - management
            - monitoring
    
  4. Add the private Pillar file to the top file entry for the application.

Note

The default user named guest is deleted by default. To retain the user, update the server’s Pillar file:

rabbitmq:
  guest_enabled: True