🚧 This instance is under construction; expect occasional downtime. Runners available in /repos. Questions? Ask in #wikimedia-gitlab on libera.chat, or under GitLab on Phabricator.

README.md 945 Bytes
Newer Older
1
gitlab-settings
Brennen Bearnes's avatar
Brennen Bearnes committed
2
===============
3

4
5
6
A collection of GitLab CE settings for the [Wikimedia GitLab instance][wmf-gl],
along with Python utilities for applying them via [the settings
API][gl-settings].
7
8

[gl-settings]: https://docs.gitlab.com/ce/api/settings.html
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[wmf-gl]: https://gitlab.wikimedia.org/

Installing
----------

```sh
pip3 install -r requirements.txt
```

Usage
-----

View current instance settings:

```sh
24
./settings view
25
26
```

27
28
29
30
Show differences between instance settings and what's specified explicitly in
the local `settings.yaml`:

Update instance settings from `settings.yaml`:
31
32

```sh
33
./settings update
34
35
```

36
37
38
39
40
41
Update replica instance from `settings-replica.yaml`:

```sh
./settings --instance https://gitlab-replica.wikimedia.org --settings-file ./settings-replica.yaml update
```

42
43
44
45
46
47
Apply project settings (at the moment, this disables wikis and issue tracking
for any projects that have turned it on):

```sh
./configure-projects
```