spuder / puppet-gitlab

A puppet module to install gitlab 7
Apache License 2.0
36 stars 44 forks source link

Feature Request: Enable parameters to use external resources #129

Closed cdenneen closed 9 years ago

cdenneen commented 9 years ago

Postgres, Redis, etc.

This allows leverage of existing services to be used as backend for GitLab. Also allows for use of RDS in Amazon.

spuder commented 9 years ago

I don't think this is possible with gitlabs current architecture. All services are bundled in with omnibus. For example, the gitlab.rb file lets you specify different ports for redis & postgres , but not different hosts for those services.

If you want to use external services, you probably will need to build gitlab from source.

cdenneen commented 9 years ago

According to gitlab docs it would just be a matter of modifying few yaml files. Now the package would/could install services but probably could be disabled? Maybe need to open ticket with gitlab directly?

spuder commented 9 years ago

If it is possible to modify the gitlab.rb file to use an external redis instance, then you can set puppet_manage_config false and add that configuration line yourself.

However, I don't see any options around that in their omnibus installation instructions. I'm pretty sure you will need to install from source, or open a feature request with gitlabhq

cdenneen commented 9 years ago

opened: https://github.com/gitlabhq/gitlabhq/issues/8989

Even if installer did install then this module could override the config/database.yml and config/resque.yml to add external hosts to connection info no?

spuder commented 9 years ago

This module doesn't modify those files directly. With omnibus installs, the omnibus service reads the contents of the gitlab.rb file and then it modifies the database.yml and resque.yml files. Everything is now abstracted through the gitlab.rb unless you install from source.