sensu / sensu-chef

Sensu Chef cookbook.
https://supermarket.chef.io/cookbooks/sensu
Apache License 2.0
222 stars 280 forks source link

Manage rabbitmq ssl directory permissions #569

Closed biox closed 6 years ago

biox commented 7 years ago

OS

Description

This change was necessary in my case because our systems have a default umask of 0027. The RabbitMQ directories /etc/rabbimq/ssl and /etc/rabbitmq/ssl/clients are currently created using the system umask - defaulting to root/root ownership. The RabbitMQ server could not access the ssl or clients directories, required for it to run with certificates enabled.. This change resolves that problem.

Motivation and Context

I experienced this issue, and there was no obvious solution. To help other people find this post, I had the following symptoms:

How Has This Been Tested?

I have implemented this locally and it fixes the transport connection issue. Just to reiterate, everything else was setup properly besides the directory permissions.

I do not know if writing a test to check if RabbitMQ can access /etc/rabbitmq/ssl/* is within the scope of this cookbook.

Types of change

Checklist:

majormoses commented 6 years ago

released: https://supermarket.chef.io/cookbooks/sensu/versions/4.0.6