Skip to content

Commit 8a7383f

Browse files
authored
fix(ins): removed invalid content types (#4256)
* fix(ins): removed invalid content types * fix(ins): fix cloud-init table
1 parent 7b9c655 commit 8a7383f

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

compute/instances/how-to/use-boot-modes.mdx

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,26 +68,29 @@ Follow the instructions below to reboot an existing Instance using cloud-init.
6868
1. Click **Instances** in the **Compute** section of the side menu. The [Instances page](https://console.scaleway.com/instance/servers) displays.
6969
2. Click the Instance you wish to use with cloud-init.
7070
3. Click the **Advanced settings** tab.
71-
4. In the **Cloud-init** section, use the <Icon name="toggle" /> toggle to activate **Use cloud-init**.
71+
4. In the **Cloud-init** section, use the toggle icon to activate **Use cloud-init**.
7272
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.
7373

7474
Cloud-init supports different input formats for user-data:
7575

76-
|Format|Starts with|Description|
77-
| ---- | ------------- | --------- |
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.|
81-
|**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-
|**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`||
76+
| Format | Starts with | Description |
77+
|------------------------|------------------|----------------------------------------------------------------------------------------------|
78+
| **Cloud Config File** | `#cloud-config` | This file contains `cloud-config` data. |
79+
| **Shell Script** | `#!` | A shell script executed at `rc.local` like level during first boot. |
80+
| **Include File** | `#include` | Contains a list of one or more URLs. Content from these URLs is processed similarly. |
81+
| **Gzip Compressed Content** | N/A | Gzip compressed content is decompressed and used as if uncompressed. Useful for data limits.|
82+
| **MIME multipart archive** | N/A | Specifies multiple data types in one file (e.g., shell script + cloud-config). |
83+
| **Upstart Job** | `#upstart-job` | Specifies an Upstart job to be executed. |
84+
| **Cloud Boothook** | `#cloud-boothook` | Contains scripts run very early in the boot process. |
85+
| **Part Handler** | `#part-handler` | Provides custom handling for specific data parts. |
86+
87+
<Message type="note">
88+
Only the content type `text/plain` is currently supported.
89+
</Message>
8690
6. Click **Save**.
8791
7. Click **Reboot** in the top right corner of the page, and confirm the reboot of your Instance when prompted.
8892

8993
Your Instance is rebooted using cloud-init.
90-
9194
## How to change the boot volume
9295

9396
The [boot-on-block](/compute/instances/concepts/#boot-on-block) feature allows Instances to boot from attached [Block Storage](/compute/instances/concepts/#block-volumes) volumes instead of local volumes. When [creating an Instance](/compute/instances/how-to/create-an-instance/), you can select Block Storage as a boot volume.

0 commit comments

Comments
 (0)