August 2019
Beginner
608 pages
16h 7m
English
The secondary database node is also configured in this script. The gitlab.rb file is a bit different, but we can see the role that's defined at the top:
roles ['geo_secondary_role']
Here's listen_address for PostgreSQL that's defined:
postgresql['listen_address'] = ""{{ hostvars[groups['gitlab'][1]]['ansible_eth0']['ipv4']['address'] }}""
We can also see the two addresses of the database servers in the array of allowed hosts:
postgresql['md5_auth_cidr_addresses'] = ["{{ hostvars[groups['gitlab'][1]]['ansible_eth0']['ipv4']['address'] }}"]
The database password hash that was generated on the primary node is inserted here, as well as the clear text password:
postgresql['sql_user_password'] = "{{ generated_db_pass ...Read now
Unlock full access