Skip to content

Commit

Permalink
Add section describing user-data formats supported.
Browse files Browse the repository at this point in the history
user-data can be either in the cloud-config format, or
a shell script. This paragraph adds this difference and
how it's treated.
  • Loading branch information
ahkok committed Nov 9, 2015
1 parent 7cefb90 commit ec4841a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/cloud-config.5
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ instance. This data is parsed by \fBcloud-init\fR(1) which then configures
the cloud instance based on the information in the cloud-config.

.SH "DESCRIPTION"
.PP
The user\-data as provided can be of several formats. \fBcloud\-init\fR(1)
supports the \fBcloud\-config\fR format, but also supports generic shell
scripts. If the user\-data starts with \fB#!\fR, it is assumed that the
user\-data is a generic shell script, and \fBcloud\-init\fR will attempt
to execute the data as a script. If the user\-data starts with the
\fB#cloud-config\fR stanza, it is assumed the user\-data is in the
\fBcloud\-config\fR format, described below.

.PP
The \fBcloud\-config\fR format is used to structure configuration data
provided to the cloud instance. This data is structured in the YAML
Expand Down

0 comments on commit ec4841a

Please sign in to comment.