Sha256: de5243113314cf09037f331e4013462e23972325a0b3c97b9c8b7574216284e6

Contents?: true

Size: 1.02 KB

Versions: 17

Compression:

Stored size: 1.02 KB

Contents

---
title: About the rabbitmq_config Resource
---

# rabbitmq_config

Use the `rabbitmq_config` InSpec audit resource to test configuration data for the RabbitMQ daemon located at `/etc/rabbitmq/rabbitmq.config` on Linux and Unix platforms.

<br>

## Syntax

A `rabbitmq_config` resource block declares the RabbitMQ configuration data to be tested:

    describe rabbitmq_config.params('rabbit', 'ssl_listeners') do
      it { should cmp 5671 }
    end

where

* `params` is the list of parameters configured in the RabbitMQ config file
* `{ should cmp 5671 }` tests the value of `rabbit.ssl_listeners` as read from `rabbitmq.config` versus the value declared in the test

<br>

## Examples

The following examples show how to use this InSpec audit resource.

### Test the list of TCP listeners

    describe rabbitmq_config.params('rabbit', 'tcp_listeners') do
      it { should eq [5672] }
    end

<br>

## Matchers

For a full list of available matchers please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/).

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
inspec-1.51.25 docs/resources/rabbitmq_config.md.erb
inspec-1.51.21 docs/resources/rabbitmq_config.md.erb
inspec-1.51.18 docs/resources/rabbitmq_config.md.erb
inspec-1.51.6 docs/resources/rabbitmq_config.md.erb
inspec-1.51.0 docs/resources/rabbitmq_config.md.erb
inspec-1.50.1 docs/resources/rabbitmq_config.md.erb
inspec-1.49.2 docs/resources/rabbitmq_config.md.erb
inspec-1.48.0 docs/resources/rabbitmq_config.md.erb
inspec-1.47.0 docs/resources/rabbitmq_config.md.erb
inspec-1.46.2 docs/resources/rabbitmq_config.md.erb
inspec-1.45.13 docs/resources/rabbitmq_config.md.erb
inspec-1.45.9 docs/resources/rabbitmq_config.md.erb
inspec-1.44.8 docs/resources/rabbitmq_config.md.erb
inspec-1.43.8 docs/resources/rabbitmq_config.md.erb
inspec-1.43.5 docs/resources/rabbitmq_config.md.erb
inspec-1.42.3 docs/resources/rabbitmq_config.md.erb
inspec-1.41.0 docs/resources/rabbitmq_config.md.erb