rabbitmq_config resource
Use the rabbitmq_config Chef InSpec audit resource to test configuration data for the RabbitMQ daemon located at /etc/rabbitmq/rabbitmq.config on Linux and Unix platforms.
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
paramsis the list of parameters configured in the RabbitMQ config file{ should cmp 5671 }tests the value ofrabbit.ssl_listenersas read fromrabbitmq.configversus the value declared in the test
Examples
The following examples show how to use this Chef InSpec audit resource.
Test the list of TCP listeners:
describe rabbitmq_config.params('rabbit', 'tcp_listeners') do
it { should eq [5672] }
end