cookbook-gitlab-deprecated icon indicating copy to clipboard operation
cookbook-gitlab-deprecated copied to clipboard

Add postfix to dependency for email sending

Open lieryan opened this issue 10 years ago • 3 comments

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

lieryan avatar Mar 05 '15 10:03 lieryan

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.

atomic-penguin avatar Mar 05 '15 19:03 atomic-penguin

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.

lieryan avatar Mar 06 '15 07:03 lieryan

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.

atomic-penguin avatar Mar 06 '15 15:03 atomic-penguin