Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
37 lines (20 sloc) 0.702 kB

chef-keys

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

Assumptions

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

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/chef/.ssh/

Data bag structure example

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

Legal

Jump to Line
Something went wrong with that request. Please try again.