Creates keys in /home/ubuntu/.ssh/
from a data bag.
/home/ubuntu
belongs to user ubuntu
which belongs to group ubuntu
.
keys/databag
: string containing name of data bag containing the keyskeys/key_name
: name of the keypair to be copied
keys
: copies keys into/home/ubuntu/.ssh/
"ssh_keys": {
"machine_1": {
"id_rsa": "private key goes here",
"id_rsa.pub": "public key goes here"
}
}
- Written by Carlo Zottmann
- Liability in case of anything: definitely not me.
- License: WTFPL.
- Modified by Sven Gebhardt for adcloud