Skip to content

Commit

Permalink
Store public key next to private key
Browse files Browse the repository at this point in the history
This is required by convention from the `vagrant-azure` plugin.
See Azure/vagrant-azure#188
  • Loading branch information
joe4dev committed Jul 14, 2017
1 parent aee9e43 commit 547aacf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cookbooks/cwb-server/recipes/secrets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def store_key(path, key, user)
key_path = "#{ssh_dir}/#{ssh['key_name']}.pem"
create_dir ssh_dir, app_user
store_key key_path, ssh['key'], app_user
store_key "#{key_path}.pub", ssh['pub_key'], app_user
default_env 'SSH_KEY_NAME', ssh['key_name']
default_env 'SSH_KEY_PATH', key_path

Expand Down

0 comments on commit 547aacf

Please sign in to comment.