Skip to content

Chef cookbook: Copies ssh keys from data bag to `/home/chef/.ssh/`.

Notifications You must be signed in to change notification settings

denys281/chef-keys

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

chef-keys

creates ssh keys in a destined user dir

Assumptions

Attributes

Recipes

  • keys: copies keys into /home/#{$client_username}/.ssh/

json structure example

chef.json = {
	"ssh_keys"=> {
		"username"=> $client_username,
		"usergroup"=> $client_username,
		"userhomedir"=> "/var/customers/webs/#{$client_username}",
		"id_rsa"=> "private key goes here",
		"id_rsa.pub"=> "public key goes here"
			"id_dsa"=> "private key goes here",
		"id_dsa.pub"=> "public key goes here"
	},
}

Legal

About

Chef cookbook: Copies ssh keys from data bag to `/home/chef/.ssh/`.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%