Commit 06a8d950c063515bacf5460fc5b00bde219369f1

Authored by Jacob Vosmaer
1 parent 6d6f13ef

No need to use a template

files/gitlab-cookbooks/gitlab/recipes/gitlab-core.rb
... ... @@ -39,12 +39,11 @@ should_notify = OmnibusHelper.should_notify?("gitlab-core")
39 39  
40 40 secret_token_config = File.join(gitlab_core_etc_dir, "secret")
41 41  
42   -template secret_token_config do
43   - source "secret_token"
  42 +file secret_token_config do
  43 + content node['gitlab']['gitlab-core']['secret_token']
44 44 owner "root"
45 45 group "root"
46 46 mode "0644"
47   - variables(node['gitlab']['gitlab-core'].to_hash)
48 47 notifies :restart, 'service[gitlab-core]' if should_notify
49 48 end
50 49  
... ...
files/gitlab-cookbooks/gitlab/templates/default/secret_token.erb
... ... @@ -1 +0,0 @@
1   -<%= @secret_token %>