Commit ff70ee4b607bd04a8267865eac3dbd42d5aa3bc9

Authored by Jacob Vosmaer
1 parent 447bd54f

Our secret is in #{Rails.root}/.secret

files/gitlab-cookbooks/gitlab/recipes/gitlab-core.rb
@@ -37,10 +37,10 @@ end @@ -37,10 +37,10 @@ end
37 37
38 should_notify = OmnibusHelper.should_notify?("gitlab-core") 38 should_notify = OmnibusHelper.should_notify?("gitlab-core")
39 39
40 -secret_token_config = File.join(gitlab_core_etc_dir, "secret_token.rb") 40 +secret_token_config = File.join(gitlab_core_etc_dir, "secret")
41 41
42 template secret_token_config do 42 template secret_token_config do
43 - source "secret_token.erb" 43 + source "secret_token"
44 owner "root" 44 owner "root"
45 group "root" 45 group "root"
46 mode "0644" 46 mode "0644"
@@ -48,7 +48,7 @@ template secret_token_config do @@ -48,7 +48,7 @@ template secret_token_config do
48 notifies :restart, 'service[gitlab-core]' if should_notify 48 notifies :restart, 'service[gitlab-core]' if should_notify
49 end 49 end
50 50
51 -link "/opt/gitlab/embedded/service/gitlab-core/config/initializers/secret_token.rb" do 51 +link "/opt/gitlab/embedded/service/gitlab-core/.secret" do
52 to secret_token_config 52 to secret_token_config
53 end 53 end
54 54