edelight / chef-mongodb

MongoDB Chef cookbook
https://community.opscode.com/cookbooks/mongodb
Apache License 2.0
362 stars 3 forks source link

Wrong configuration of attributes for centos. sysvinit race condition. #365

Open dennybaa opened 9 years ago

dennybaa commented 9 years ago

Hello,

Using centos 7 with install_method = 'distro' and using package mongodb-server, not mongodb-org-server. There following issues:

  1. System user is mongodb not mongod.
  2. Cookbook provides configuration for redhat sysvinit (not systemd). But the distro ships already with systemd services for mongo which are tried by default and service doesn't start.

Here are workarounds to make it work https://gist.github.com/anonymous/7b987146509a19a313cd.

I guess, the cookbook should provide native support for systemd or just doesn't work with the described scenario...

huyanhvn commented 8 years ago

https://github.com/edelight/chef-mongodb/pull/409