diff --git a/files/gitlab-cookbooks/gitlab/libraries/gitlab.rb b/files/gitlab-cookbooks/gitlab/libraries/gitlab.rb index 9c6609c..386d6f8 100644 --- a/files/gitlab-cookbooks/gitlab/libraries/gitlab.rb +++ b/files/gitlab-cookbooks/gitlab/libraries/gitlab.rb @@ -27,6 +27,7 @@ module Gitlab bootstrap Mash.new postgresql Mash.new redis Mash.new + gitlab_core Mash.new node nil class << self @@ -48,7 +49,7 @@ module Gitlab end Gitlab['postgresql']['sql_password'] ||= generate_hex(50) - Gitlab['gitlab-core']['secret_token'] ||= generate_hex(64) + Gitlab['gitlab_core']['secret_token'] ||= generate_hex(64) if File.directory?("/etc/gitlab") File.open("/etc/gitlab/gitlab-secrets.json", "w") do |f| @@ -57,8 +58,8 @@ module Gitlab 'postgresql' => { 'sql_password' => Gitlab['postgresql']['sql_password'], }, - 'gitlab-core' => { - 'secret_token' => Gitlab['gitlab-core']['secret_token'], + 'gitlab_core' => { + 'secret_token' => Gitlab['gitlab_core']['secret_token'], } }) ) -- libgit2 0.21.2