Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
add SECRET_KEY_BASE to app config
Browse files Browse the repository at this point in the history
dwradcliffe committed Dec 30, 2014
1 parent 90abc85 commit b3c7a2b
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Berksfile.lock
Original file line number Diff line number Diff line change
@@ -215,7 +215,7 @@ GRAPH
rubygems-sensu (>= 0.0.0)
rubygems-ssh (>= 0.0.0)
rubygems-utility (>= 0.0.0)
rubygems-app (0.0.36)
rubygems-app (0.0.37)
apt (>= 0.0.0)
chef-vault (>= 0.0.0)
git (>= 0.0.0)
2 changes: 1 addition & 1 deletion cookbooks/rubygems-app/metadata.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name 'rubygems-app'

version '0.0.36'
version '0.0.37'

depends 'apt'
depends 'chef-vault'
1 change: 1 addition & 0 deletions cookbooks/rubygems-app/recipes/config.rb
Original file line number Diff line number Diff line change
@@ -35,6 +35,7 @@
s3_key: secrets['s3_key'],
s3_secret: secrets['s3_secret'],
secret_token: secrets['secret_token'],
secret_key_base: secrets['secret_key_base'],
bundler_token: secrets['bundler_token'],
bundler_api_url: secrets['bundler_api_url'],
new_relic_license_key: secrets['new_relic_license_key'],
1 change: 1 addition & 0 deletions cookbooks/rubygems-app/templates/default/secret.rb.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ENV['S3_KEY'] = "<%= @s3_key %>"
ENV['S3_SECRET'] = "<%= @s3_secret %>"
ENV['SECRET_TOKEN']= "<%= @secret_token %>"
ENV['SECRET_KEY_BASE']= "<%= @secret_key_base %>"
ENV["BUNDLER_TOKEN"] = "<%= @bundler_token %>"
ENV['BUNDLER_API_URL'] = "<%= @bundler_api_url %>"
ENV['NEW_RELIC_LICENSE_KEY'] = "<%= @new_relic_license_key %>"

0 comments on commit b3c7a2b

Please sign in to comment.