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
@@ -37,9 +37,9 @@ Akamai's Metadata service is available in beta and limited to select data center
37
37
-**Data centers:** Washington, DC (`us-iad`) and Paris (`fr-par`)
38
38
-**Distributions:** Ubuntu 22.04 LTS and Ubuntu 20.04 LTS
39
39
40
-
Additional regions and distributions may be added throughout the beta period. When selecting a distribution in the Cloud Manager, the following icon designates distributions that *do not* yet have cloud-init support:
40
+
Additional regions and distributions may be added throughout the beta period. When selecting a distribution in the Cloud Manager, the following icon designates distributions that fully support the Metadata service:
41
41
42
-

42
+

43
43
44
44
{{< note >}}
45
45
Compute Instances deployed in a supported region can always access the [Metadata Service API](#access-the-metadata-service-api) to obtain instance data, regardless of the distribution. However, user data cannot be submitted for distributions that do not yet have cloud-init support.
@@ -74,11 +74,7 @@ linode-cli linodes create \
74
74
--metadata.user_data [your-user-data]
75
75
```
76
76
77
-
Replace *[your-root-password]* with a strong root password and *[your-user-data]* with the cloud-config data or script you wish to use. When using the API or CLI, user data must be a [base64-encoded string](https://en.wikipedia.org/wiki/Base64). You can output your cloud-config or script file as base64 by running the following command:
78
-
79
-
```command
80
-
cat *[file-path]*| base64
81
-
```
77
+
Replace *[your-root-password]* with a strong root password and *[your-user-data]* with the cloud-config data or script you wish to use. When using the CLI, user data must be a Base64-encoded string. Review the [Base64 Encoded](#base64-encoded) section below to generate the string.
82
78
{{< /tab >}}
83
79
{{< tab "Linode API" >}}
84
80
Run the API curl request below, making sure to properly paste in or reference your [API token](/docs/products/tools/api/guides/manage-api-tokens/).
Replace *[your-root-password]* with a strong root password and *[your-user-data]* with the cloud-config data or script you wish to use. When using the API or CLI, user data must be a [base64-encoded string](https://en.wikipedia.org/wiki/Base64). You can output your cloud-config or script file as base64 by running the following command:
103
-
104
-
```command
105
-
cat *[file-path]*| base64
106
-
```
98
+
Replace *[your-root-password]* with a strong root password and *[your-user-data]* with the cloud-config data or script you wish to use. When using the API, user data must be a Base64-encoded string. Review the [Base64 Encoded](#base64-encoded) section below to generate the string.
107
99
{{< /tab >}}
108
100
{{< /tabs >}}
109
101
@@ -138,6 +130,23 @@ User data can be provided in many different formats, with the most common being
138
130
139
131
- **Other formats:** Review the [User data formats](https://cloudinit.readthedocs.io/en/latest/explanation/format.html#user-data-formats) guide within the official documentation to learn more about other types of formats supported by cloud-init.
140
132
133
+
#### Base64 Encoded
134
+
135
+
When submitting user data through the Linode CLI or API, you first need to encode it into [Base64](https://en.wikipedia.org/wiki/Base64) (without any line breaks/wraps). To do that, run the command below that corresponds with your local operating system. Replace *[file]* with the name (and path, if needed) of your cloud-config or script file.
136
+
137
+
{{< tabs >}}
138
+
{{< tab "macOS">}}
139
+
```command
140
+
base64 --break=0 --input=[file]
141
+
```
142
+
{{< /tab >}}
143
+
{{< tab "Linux">}}
144
+
```command
145
+
base64 --wrap=0 [file]
146
+
```
147
+
{{< /tab >}}
148
+
{{< /tabs >}}
149
+
141
150
## Modify Cloud-Init Configuration and Save a Custom Image {#modify-cloud-init}
142
151
143
152
Our supported distribution images have cloud-init pre-installed and configured to interact with our Metadata service. Beyond submitting user data, you are not able to adjust cloud-init settings directly through the Cloud Manager, Linode CLI, or Linode API. If you do wish to deploy Compute Instances using a modified cloud-init configuration, you can use our [Images](/docs/products/tools/images/) service.
0 commit comments