You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compute/instances/how-to/use-boot-modes.mdx
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,17 +72,19 @@ Follow the instructions below to reboot an existing Instance using cloud-init.
72
72
5. Enter your **user-data**. User data is the mechanism by which a user can pass information contained in a local file to an Instance at launch time. The typical use case is to pass something like a shell script or a configuration file as user data.
73
73
74
74
Cloud-init supports different input formats for user-data:
75
-
75
+
<Messagetype="note">
76
+
Only the content type `text/plain` is supported.
77
+
</Message>
76
78
|Format|Starts with|Description|
77
79
| ---- | ------------- | --------- |
78
-
|**Cloud Config File**|`#cloud-config` or `Content-Type: text/cloud-config`| This file contains `cloud-config` data|
79
-
|**Shell Script**|`#!` or `Content-Type: text/x-shellscript`|A shell script will be executed at `rc.local` like level during first boot.|
80
-
|**Include File**|`#include`or `Content-Type: text/x-include-url`|An include file contains a list of one or different URLs, one per line. Each of the URLs will be read, and their content will be passed through this same set of rules. The content read from the URL can either be gzipped, mime-multi-part, or plain text.|
80
+
|**Cloud Config File**|`#cloud-config`| This file contains `cloud-config` data|
81
+
|**Shell Script**|`#!`|A shell script will be executed at `rc.local` like level during first boot.|
82
+
|**Include File**|`#include`|An include file contains a list of one or different URLs, one per line. Each of the URLs will be read, and their content will be passed through this same set of rules. The content read from the URL can either be gzipped, mime-multi-part, or plain text.|
81
83
|**Gzip Compressed Content**||Gzip compressed content will be uncompressed and then be used as if it were not compressed. This is useful as user data is limited to 16384 bytes.|
82
84
|**MIME multipart archive**||It is possible to specify more than one type of data by using a MIME multipart file. This can be used to specify both, a shell script and a cloud-config task.|
83
-
|**Upstart Job**|`#upstart-job` or `Content-Type: text/upstart-job`||
84
-
|**Cloud Boothook**|`#cloud-boothook` or `Content-Type: text/cloud-boothook`||
85
-
|**Part Handler**|Starts with `#part-handler` or `Content-Type: text/part-handler`||
85
+
|**Upstart Job**|`#upstart-job`||
86
+
|**Cloud Boothook**|`#cloud-boothook`||
87
+
|**Part Handler**|Starts with `#part-handler`||
86
88
6. Click **Save**.
87
89
7. Click **Reboot** in the top right corner of the page, and confirm the reboot of your Instance when prompted.
0 commit comments