Skip to content
Snippets Groups Projects
Unverified Commit 2badf8d1 authored by Ian Baum's avatar Ian Baum
Browse files

Update pgbouncer ini generation to only use pgbouncer_user

parent 3b1fcd2d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -63,8 +63,6 @@ file 'databases.json' do
notifies :run, 'execute[generate databases.ini]', :immediately
end
 
ini_user = node['gitlab']['postgresql']['pgbouncer_user'] || node['gitlab']['pgbouncer']['databases_ini_user']
execute 'generate databases.ini' do
command lazy {
<<~EOF
Loading
Loading
@@ -74,7 +72,7 @@ execute 'generate databases.ini' do
--hostuser #{node['gitlab']['pgbouncer']['databases_ini_user']} \
--pg-host #{node['gitlab']['pgbouncer']['listen_addr']} \
--pg-port #{node['gitlab']['pgbouncer']['listen_port']} \
--user #{ini_user}
--user #{node['gitlab']['postgresql']['pgbouncer_user']}
EOF
}
action :nothing
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment