Skip to content

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

Notifications You must be signed in to change notification settings

adcloud/chef-keys

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

chef-keys

Creates keys in /home/ubuntu/.ssh/ from a data bag.

Assumptions

/home/ubuntu belongs to user ubuntu which belongs to group ubuntu.

Attributes

  • keys/databag: string containing name of data bag containing the keys
  • keys/key_name: name of the keypair to be copied

Recipes

  • keys: copies keys into /home/ubuntu/.ssh/

Data bag structure example

"ssh_keys": {
  "machine_1": {
    "id_rsa": "private key goes here",
    "id_rsa.pub": "public key goes here"
  }
}

Legal

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%