debops / ansible-gitlab

Install, upgrade and manage GitLab instance
GNU General Public License v3.0
51 stars 23 forks source link

Support for GitLab 9.1, 9.2 and 9.3. #84

Closed bfabio closed 7 years ago

drybjed commented 7 years ago

@bfabio Nice work. However, @cultcom is also working on a parallel PR https://github.com/debops/ansible-gitlab/pull/81 which adds support for Debian Stretch. The Travis-CI test at the moment cannot handle both PRs because you are changing the playbook and removing a variable (which is fine, BTW, no issue there).

How about this - let's do the Stretch changes first because the current test playbook works with that PR, then I'll change the playbook and we do the 9.x PR next?

bfabio commented 7 years ago

@drybjed Sounds good.

cultcom commented 7 years ago

@bfabio Hi, I already had something similar in my queue, look at my changes here:https://github.com/cultcom/ansible-gitlab/tree/cultcom-9.x

Maybe you can adopt the gitaly versions and the service file. The systemd service file still needs some attendance I think.

drybjed commented 7 years ago

@bfabio, can you rebase this PR on the recent changes merged in the master branch? I'll update the Travis test playbook to not include the removed variable.

cultcom commented 7 years ago

@bfabio what are 'libsqlite3-dev' and 'python-mysqldb' meant for?

the later one should be included by debops.mariadb_server or am I wrong here?

cultcom commented 7 years ago

@bfabio and the "gitconfig" template does not need a version check for > 9.x. The writeback was first mentioned here https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/update/8.11-to-8.12.md

bfabio commented 7 years ago

@cultcom python-mysqldb should not be required, I misinterpreted the output from the CI build.

libsqlite3-dev should be required by bundle install, I think it can be removed using gitlab_ce_bundle_install_without. Let's see what Travis has to say about that.

I removed the conditional in gitconfig.j2, thanks for the hint.

bfabio commented 7 years ago

@cultcom Also, I'm going to merge your changes if that's ok with you.

drybjed commented 7 years ago

@bfabio Forgot apt_key task, I think?

bfabio commented 7 years ago

@drybjed Yup :)

cultcom commented 7 years ago

@bfabio I just pushed a cleanup for the gitaly service file, have a look at it as well please. Your are welcome to integrate the useful stuff from my branch ;-)

drybjed commented 7 years ago

Guys, don't forget to add yourselves to the COPYRIGHT file.

drybjed commented 7 years ago

@bfabio, while you are working on this PR, is it OK for me to merge https://github.com/debops/ansible-gitlab/pull/86 which has mostly cosmetic changes? You will need to rebase your PR afterwards.

bfabio commented 7 years ago

@drybjed, sure, go ahead.

drybjed commented 7 years ago

@bfabio The PR has been merged, you need to rebase this one.

drybjed commented 7 years ago

@bfabio Anything else planned for the PR? Let me know when it's ready to merge.

drybjed commented 7 years ago

@bfabio Another PR merged, can you fix the conflicts and rebase once again? I guess this PR can be merged next?

bfabio commented 7 years ago

@drybjed I would like to add @cultcom's work and install gitaly as well, because it turns out gitlab-shell doesn't handle its absence, even when gitaly is explicitly disabled in the configuration file.

cultcom commented 7 years ago

@drybjed @bfabio I am not sure but until 9.2 the documentation mentioned gitaly as optional. The 9.3 update guide is missing that part but does not explicitly mark it mandatory. On the other hand the example config changed to use it by default.

alinalexandru commented 7 years ago

Is there anything left to do until it will be merged? I can help, as I want to be able to install version 9.3 via ansible.

cultcom commented 7 years ago

@alinalexandru I think the gitaly installation part is still missing if you like you may add it. Unfortunately I am currently out of time for it.

alinalexandru commented 7 years ago

Don't know what is gitaly. I have to learn about it

alinalexandru commented 7 years ago

This steps fo I have to follow ? https://docs.gitlab.com/ce/install/installation.html#install-gitaly

drybjed commented 7 years ago

@alinalexandru Yes, sounds like it. Keep in mind that debops.gitlab uses different home directory path. You can check how IIRC gitlab-workhorse was installed to see how the role handled Go applications.

bfabio commented 7 years ago

This should be all.

I didn't test this in production though, so testers are welcome.

drybjed commented 7 years ago

@bfabio Great, thanks for your work!

@alinalexandru Any chance for you to test this PR before merging?

alinalexandru commented 7 years ago

Only next week. BTW. are the runners updated?

drybjed commented 7 years ago

@alinalexandru Do you mean debops.gitlab_runner? There are some pending PRs, I'll try to look them over during the weekend.

alinalexandru commented 7 years ago

meanwhile 9.4 was released 😄

drybjed commented 7 years ago

@alinalexandru I'm testing the upgrade path of this PR on one of my hosts, if it passes, I'm going to merge it in about 1-2 hours.

alinalexandru commented 7 years ago

@drybjed Do you think is difficult to add support for 9.4?

drybjed commented 7 years ago

From the upgrade instructions it looks like there are no major changes. Just adding the correct versions to the version map should be enough. Want to try it?

alinalexandru commented 7 years ago

I don't have time now, but I will try when I will put gitlab via ansible.