August 2019
Beginner
608 pages
16h 7m
English
We have to define the main URL for the GitLab instance:
external_url 'http://{{ hostvars[groups['gitlab'][0]]['geo_primary_address'] }}'
For this demonstration, we will disable SSL:
letsencrypt['enable'] = false
The role remains the same:
roles ['geo_primary_role']
In the Ansible script, we are going to generate a database password that we will use on our secondary node as well:
postgresql['sql_user_password'] = "{{ generated_db_pass }}"
We will explicitly make the PostgreSQL database listen on the eth0 interface:
postgresql['listen_address'] = "{{ hostvars[groups['gitlab'][0]]['ansible_eth0']['ipv4']['address'] }}"
Here, we will define the IP addresses that will be allowed to connect to the database. We have ...
Read now
Unlock full access