Commit b45505035ca0b4a5e5fd6be2607a6727ed25f2df

Authored by Jacob Vosmaer
1 parent f61a3950

Fix gitlab-core option parsing in module Gitlab

files/gitlab-cookbooks/gitlab/libraries/gitlab.rb
... ... @@ -27,6 +27,7 @@ module Gitlab
27 27 bootstrap Mash.new
28 28 postgresql Mash.new
29 29 redis Mash.new
  30 + gitlab_core Mash.new
30 31 node nil
31 32  
32 33 class << self
... ... @@ -48,7 +49,7 @@ module Gitlab
48 49 end
49 50  
50 51 Gitlab['postgresql']['sql_password'] ||= generate_hex(50)
51   - Gitlab['gitlab-core']['secret_token'] ||= generate_hex(64)
  52 + Gitlab['gitlab_core']['secret_token'] ||= generate_hex(64)
52 53  
53 54 if File.directory?("/etc/gitlab")
54 55 File.open("/etc/gitlab/gitlab-secrets.json", "w") do |f|
... ... @@ -57,8 +58,8 @@ module Gitlab
57 58 'postgresql' => {
58 59 'sql_password' => Gitlab['postgresql']['sql_password'],
59 60 },
60   - 'gitlab-core' => {
61   - 'secret_token' => Gitlab['gitlab-core']['secret_token'],
  61 + 'gitlab_core' => {
  62 + 'secret_token' => Gitlab['gitlab_core']['secret_token'],
62 63 }
63 64 })
64 65 )
... ...