Created
April 2, 2015 09:11
-
-
Save salgo/02000916073be8e755ea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
execute 'create-ssh-key-' + account_id do | |
user account_id | |
cwd user_home | |
environment( | |
'HOME' => user_home, | |
'USER' => account_id | |
) | |
command 'ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa' | |
not_if { ::File.exist?(File.join(user_home, '.ssh', 'id_rsa')) } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment