Chef-keys is a project mainly written in Ruby, it's free.
Chef cookbook: Copies ssh keys from data bag to `/home/chef/.ssh/`.
Creates keys in /home/chef/.ssh/
from a data bag.
/home/chef
belongs to user chef
which belongs to group chef
.
keys/databag
: string containing name of data bag containing the keyskeys/key_name
: name of the keypair to be copiedkeys
: copies keys into /home/chef/.ssh/
"ssh_keys": {
"machine_1": {
"id_rsa": "private key goes here",
"id_rsa.pub": "public key goes here"
}
}