Commit e922eb54 authored by Nick Thomas's avatar Nick Thomas

Merge branch 'docs/gb/update-geo-replication-docs' into 'master'

Update Geo replication setup docs for Omnibus installation

Closes #3955

See merge request gitlab-org/gitlab-ee!3313
parents 56a975d0 96184873
...@@ -68,15 +68,17 @@ The following guide assumes that: ...@@ -68,15 +68,17 @@ The following guide assumes that:
``` ```
1. Omnibus GitLab has already a replication user called `gitlab_replicator`. 1. Omnibus GitLab has already a replication user called `gitlab_replicator`.
You must set its password manually. Replace `thepassword` with a strong You must set its password manually. You will be prompted to enter a
password: password:
```bash ```bash
sudo -u gitlab-psql /opt/gitlab/embedded/bin/psql -h /var/opt/gitlab/postgresql \ gitlab-ctl set-replication-password
-d template1 \
-c "ALTER USER gitlab_replicator WITH ENCRYPTED PASSWORD 'thepassword'"
``` ```
This command will also read `postgresql['sql_replication_user']` Omnibus
setting in case you have changed `gitlab_replicator` username to something
else.
1. Edit `/etc/gitlab/gitlab.rb` and add the following. Note that GitLab 9.1 added 1. Edit `/etc/gitlab/gitlab.rb` and add the following. Note that GitLab 9.1 added
the `geo_primary_role` configuration variable: the `geo_primary_role` configuration variable:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment