You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for gitlab HA installations, there is a .pgpass file that needs to be created on any application_role or pgbouncer_role nodes. Normally this is generated manually by running gitlab-ctl write-pgpass.... command, which creates a file at the userhome for gitlab-consul user (default's to /home/gitlab-consul.
This means we can use a template to create this file and automate this requirement just by having the file present.
create variable for pgpass_location, defaults to /home/gitlab-consul/.pgpass
create template for .pgpass.erb
create variable for pgbouncer_password and inject it into .pgpass.erb
Optional/possibly required:
make host, database, user, and hostuser template variables for the .pgpass.erb template
for gitlab HA installations, there is a
.pgpass
file that needs to be created on anyapplication_role
orpgbouncer_role
nodes. Normally this is generated manually by runninggitlab-ctl write-pgpass....
command, which creates a file at theuserhome
forgitlab-consul
user (default's to/home/gitlab-consul
.This means we can use a template to create this file and automate this requirement just by having the file present.
pgpass_location
, defaults to/home/gitlab-consul/.pgpass
.pgpass.erb
pgbouncer_password
and inject it into.pgpass.erb
Optional/possibly required:
host
,database
,user
, andhostuser
template variables for the.pgpass.erb
templateThe pattern for this file is such:
example outcome would be (with default values shown):
The text was updated successfully, but these errors were encountered: