analogsea (version 0.6.0)

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)

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

Run this code
# NOT RUN {
cat(cloud_config("ubuntu"))
# }

Run the code above in your browser using DataCamp Workspace