This takes a template stored in inst/cloudconfig and inserts ssh_keys into the first user.

cloud_config(name, ssh_keys = NULL)

Arguments

name

Name of template

ssh_keys

(character) A character vector of key names, an integer vector of key ids, or NULL, to use all keys in your account. Accounts with the corresponding private key will be able to log in to the droplet. See keys() for a list of the keys that you've added. Default: NULL

Value

A string. (Can't return yaml because the yaml package strips off comments, and the first comment is extremely important.)

Examples

if (FALSE) { cat(cloud_config("ubuntu")) }