sensu / sensu-chef

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

sensu installation fails due to rabbitmq cookbook #585

Open ff-pjha opened 6 years ago

ff-pjha commented 6 years ago

Recipe: sensu::rabbitmq

Do we need to pass the user explicitly from our recipe ? Why this is required?

ff-pjha commented 6 years ago

I am having a amazon machine which is equivalent to RHEL/Centos 6. In my own cookbook I have made the dependency of sensu cookbook for server and rabbitmq recipe. But then also it not compiling. Why we should explicitly pass any value or change any thing for user. If I add user explicitly as user "rabbitmq" from my cookbook, then its throws Recipe: sensu::rabbitmq

Through chef its really becoming difficult.

jtimberman commented 6 years ago

Amazon is a different distribution than RHEL-family. They have diverged enough that ohai, which provides Chef's platform detection, has amazon as a separate platform family than RHEL or Fedora.

Further, the rabbitmq cookbook does not list amazon as a specifically supported distribution meaning that testing is not done against it.

Sensu has a list of supported platforms in its cookbook metadata and you'll probably have more success using one of those platforms instead.

majormoses commented 6 years ago

As Josh points out the cookbook does not officially support Amazon Linux or Amazon Linux 2. I am open to adding support if you can provide a contribution here and in the upstream rabbitmq cookbook.

ff-pjha commented 6 years ago

Yes can you add support for Amazon Linux. May I know what are the steps I need to do ?

Regards Prakash

On Mon, Mar 26, 2018 at 12:29 AM, Ben Abrams notifications@github.com wrote:

As Josh points out the cookbook does not officially support Amazon Linux or Amazon Linux 2. I am open to adding support if you can provide a contribution here and in the upstream rabbitmq cookbook.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sensu/sensu-chef/issues/585#issuecomment-375994418, or mute the thread https://github.com/notifications/unsubscribe-auth/Acx7D9OsDFmFb2sP-5mQ71Tc4nClcCcNks5th-kOgaJpZM4QMPEb .

majormoses commented 6 years ago

May I know what are the steps I need to do ?

I don't run amazon linux so this is not currently a priority for me to do but essentially you need to figure out what is different from rhel families and amazon linux and add it in a case statement for the platform. For the sensu client, api, and server installer this would be here: https://github.com/sensu/sensu-chef/blob/v4.3.0/recipes/_linux.rb#L67-L91. For the rabbitmq cookbook changes it would need to happen either here or more likely needs to be addressed upstream in the rabbitmq cookbook I would probably start by raising an issue with the rabbitmq cookbook as I'd be willing to bet it will be needed to update the upstream cookbook from my quick review.