Commit 259f647877fb89fd1c19b9c12b67b36ebf8336f6
1 parent
bd8eb47c
Exists in
master
and in
17 other branches
Remove unused sql_ro helpers
Showing
2 changed files
with
0 additions
and
6 deletions
Show diff stats
files/gitlab-cookbooks/gitlab/libraries/chef_server.rb
@@ -48,7 +48,6 @@ module GitLab | @@ -48,7 +48,6 @@ module GitLab | ||
48 | end | 48 | end |
49 | 49 | ||
50 | GitLab['postgresql']['sql_password'] ||= generate_hex(50) | 50 | GitLab['postgresql']['sql_password'] ||= generate_hex(50) |
51 | - GitLab['postgresql']['sql_ro_password'] ||= generate_hex(50) | ||
52 | 51 | ||
53 | if File.directory?("/etc/gitlab") | 52 | if File.directory?("/etc/gitlab") |
54 | File.open("/etc/gitlab/gitlab-secrets.json", "w") do |f| | 53 | File.open("/etc/gitlab/gitlab-secrets.json", "w") do |f| |
@@ -56,7 +55,6 @@ module GitLab | @@ -56,7 +55,6 @@ module GitLab | ||
56 | Chef::JSONCompat.to_json_pretty({ | 55 | Chef::JSONCompat.to_json_pretty({ |
57 | 'postgresql' => { | 56 | 'postgresql' => { |
58 | 'sql_password' => GitLab['postgresql']['sql_password'], | 57 | 'sql_password' => GitLab['postgresql']['sql_password'], |
59 | - 'sql_ro_password' => GitLab['postgresql']['sql_ro_password'] | ||
60 | }, | 58 | }, |
61 | }) | 59 | }) |
62 | ) | 60 | ) |
files/gitlab-cookbooks/gitlab/libraries/helper.rb
@@ -38,10 +38,6 @@ class PgHelper | @@ -38,10 +38,6 @@ class PgHelper | ||
38 | user_exists?(node['gitlab']['postgresql']['sql_user']) | 38 | user_exists?(node['gitlab']['postgresql']['sql_user']) |
39 | end | 39 | end |
40 | 40 | ||
41 | - def sql_ro_user_exists? | ||
42 | - user_exists?(node['gitlab']['postgresql']['sql_ro_user']) | ||
43 | - end | ||
44 | - | ||
45 | def user_exists?(db_user) | 41 | def user_exists?(db_user) |
46 | psql_cmd(["-d 'template1'", | 42 | psql_cmd(["-d 'template1'", |
47 | "-c 'select usename from pg_user' -A", | 43 | "-c 'select usename from pg_user' -A", |