Page MenuHomePhabricator

Create a GitLab settings script / repo
Closed, ResolvedPublic

Description

Per discussion on T279545, it'd be a good idea to script GitLab settings changes, both to save clicking in the settings interface and track / discuss changes over time.

This is the initial set of recommendations from Speed & Function:

https://gerrit.wikimedia.org/r/plugins/gitiles/operations/gitlab-ansible/+/refs/heads/master/HOWTO.md#manual-settings-to-be-changed-in-gitlab-ui-after-installation

These are the docs for the settings API:

https://docs.gitlab.com/ce/api/settings.html

This isn't extremely urgent, but should be done before we get into adoption for projects outside of RelEng.

Event Timeline

brennen added a subscriber: thcipriani.

This will eventually live somewhere else, but @thcipriani and I roughed out wmf-gitlab-tools/gitlab-settings. The settings.yaml there covers (almost) everything we currently have set that normally has to be handled through the web interface.

TODO:

  • Add an appropriate license to the wmf-gitlab-tools repo. The confirm bit is from scap, which is GPL3 I think, though maybe replacing that and using MIT for same-as-GitLab licensing would be appropriate.
  • If we're going to bikeshed the repo name, maybe this is better as wmf-gitlab-config.
  • Figure out how to handle options that take an array of strings, like import_sources.