Commit a273a299df0972acdd5abfbae38709864d930e9d

Authored by Jacob Vosmaer
1 parent 85a6fe3a

Expose ActiveRecord socket setting in attributes

files/gitlab-cookbooks/gitlab/attributes/default.rb
@@ -108,6 +108,7 @@ default['gitlab']['gitlab-rails']['db_username'] = "gitlab" @@ -108,6 +108,7 @@ default['gitlab']['gitlab-rails']['db_username'] = "gitlab"
108 default['gitlab']['gitlab-rails']['db_password'] = "password" 108 default['gitlab']['gitlab-rails']['db_password'] = "password"
109 default['gitlab']['gitlab-rails']['db_host'] = "localhost" 109 default['gitlab']['gitlab-rails']['db_host'] = "localhost"
110 default['gitlab']['gitlab-rails']['db_port'] = 6379 110 default['gitlab']['gitlab-rails']['db_port'] = 6379
  111 +default['gitlab']['gitlab-rails']['db_socket'] = nil
111 112
112 #### 113 ####
113 # Unicorn 114 # Unicorn
files/gitlab-cookbooks/gitlab/templates/default/database.yml.erb
@@ -7,3 +7,4 @@ production: @@ -7,3 +7,4 @@ production:
7 password: "<%= @db_password %>" 7 password: "<%= @db_password %>"
8 host: <%= @db_host %> 8 host: <%= @db_host %>
9 port: <%= @db_port %> 9 port: <%= @db_port %>
  10 + socket: <%= @db_socket %>