atomic-penguin / cookbook-gitlab-deprecated

Gitlab cookbook
128 stars 84 forks source link

Add postfix to dependency for email sending #91

Open lieryan opened 9 years ago

lieryan commented 9 years ago

After cookbook install, Gitlab cannot send emails (e.g. for new account creation, etc). Adding dependency to postfix would fix that.

atomic-penguin commented 9 years ago

Its necessary to have an LSB compatible MTA with a sendmail command for e-mail alerts from the application. It is not necessary that MTA be postfix.

lieryan commented 9 years ago

That's true. But is there any reason the cookbook shouldn't install a default MTA if one isn't already provisioned in the machine (like how currently the cookbook installs MySQL if neither gitlab::mysql nor gitlab::postgres specified in the runlist)?

At the very least, I think it should be documented in the README that the user also need to either add an LSB-compatible MTA cookbook or add their own recipe to configure initializers/smtp_settings.rb to get email working. Since many important functionalities of Gitlab requires email, having it work straight from the oven would be nice.

atomic-penguin commented 9 years ago

The mysql issue was not our design decision. It was more of a quick reaction to the removal of mysql::server recipe in the Chef maintained mysql cookbook. Most likely will adopt an omnibus-gitlab installation and just drop mysql support in the 8.0 release of the cookbook as postgres will be included in the omnibus package.

I agree there needs to be an smtp_settings template to configure an SMTP connector.