Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 779 Bytes

README.mdown

File metadata and controls

37 lines (21 loc) · 779 Bytes

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