Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation fails if nginx is absent #121

Open
xaniasd opened this issue Feb 27, 2014 · 7 comments
Open

Installation fails if nginx is absent #121

xaniasd opened this issue Feb 27, 2014 · 7 comments
Labels

Comments

@xaniasd
Copy link

xaniasd commented Feb 27, 2014

Hi,
I want to install GitLab with Apache, however the following resource breaks the installation if nginx is not present in the system.

 # gitlab
  file { '/etc/nginx/conf.d/gitlab.conf':
    ensure => file,
    content => template('gitlab/nginx-gitlab.conf.erb'),
    owner => root,
    group => root,
    mode => '0644',
  }

Removing it resolves the issue so if you want to allow the option of using Apache instead of nginx, you might want to consider making this optional.

Cheers

@igalic
Copy link
Collaborator

igalic commented Feb 27, 2014

We are considering these things, see #102 & #111.

@xaniasd
Copy link
Author

xaniasd commented Feb 27, 2014

I've seen those issues, but no conclusive decision yet. I guess my point is that this one is an easy fix ;-)

keep up the good work!

@atomaka
Copy link
Collaborator

atomaka commented Feb 27, 2014

Unfortunately, it's an easy fix that breaks current installations that rely on a configured nginx. Anything that breaks current functionality needs to be given serious consideration. Good to confirm that it is only one resource causing an issue though.

One of the slow points here is that we would likely need to add Passenger support along with Apache support adding a bit more complexity to the problem. Are you using Passenger or Unicorn for your application server, @xaniasd?

@xaniasd
Copy link
Author

xaniasd commented Feb 27, 2014

I see. How about making it optional but defaulting to run unless explicitly configured not to?

I'm using Unicorn. If there's something I can check for you with my set-up, let me know.

@lmello
Copy link
Contributor

lmello commented Apr 1, 2014

my suggestion would be to have a switch like gitlab_webserver => nginx|apache
then people could choose which webserver to use, and we would have a if test to supply the correct config file for the correct webserver. this would require some refactoring of spec tests.
and that the default behaviour be to install the nginx file.

@sbadia sbadia added the bug label Apr 3, 2014
@sammcj
Copy link

sammcj commented Sep 11, 2014

May I asked why you'd want to use it with Apache over Nginx?
Nginx is significantly faster and easier to configure.

@igalic
Copy link
Collaborator

igalic commented Sep 11, 2014

i'm not sure the latter really makes a difference with puppet ;)

(and with my apache software foundation hat on: i disagree that nginx is faster ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants