August 2019
Beginner
608 pages
16h 7m
English
The first declaration in the gitlab.rb.postgres.j2 template is which role the instance will play in our infrastructure:
# Disable all components except PostgreSQL roles ['postgres_role']
The next setting is to determine whether a database should be initialized as a master database, which should only be performed on the master node:
# Only the master database should become master {% if hostvars[inventory_hostname].role == "slave" %} repmgr['master_on_initialization'] = false {% endif %}
The general database properties are the same for the master and the slaves. The database should listen on all interfaces and be prepared to sync their data:
# Database properties postgresql['listen_address'] ...
Read now
Unlock full access