analogsea (version 1.0.7.2)

cloud_config: Generate cloud config file.

Description

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

Usage

cloud_config(name, ssh_keys = NULL)

Value

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

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

Examples

Run this code
if (FALSE) {
cat(cloud_config("ubuntu"))
}

Run the code above in your browser using DataLab