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
- echo "Hello from raw cloud-init!" > /home/ubuntu/message.txt
126
+
EOF
127
+
}
128
+
```
129
+
78
130
### With private network
79
131
80
132
```terraform
@@ -305,6 +357,8 @@ The following arguments are supported:
305
357
-`ipam_ip_ids` - (Optional) List of IPAM IP IDs to assign to the server in the requested private network.
306
358
-`zone` - (Defaults to [provider](../index.md#zone)`zone`) The [zone](../guides/regions_and_zones.md#zones) in which the server should be created.
307
359
-`partitioning` (Optional) The partitioning schema in JSON format
360
+
-`cloud_init` - (Optional) Configuration data to pass to cloud-init such as a YAML cloud config or a user-data script. Accepts either a string containing the content or a path to a file (for example `file("cloud-init.yml")`). Max length: 127998 characters. Updates to `cloud_init` will update the server user-data via the API and do not trigger a reinstall; however, a reboot of the server is required for the OS to re-run cloud-init and apply the changes. Only supported for OSes that have cloud-init enabled.
361
+
-`cloud_init` - (Optional) Configuration data to pass to cloud-init such as a YAML cloud config or a user-data script. Accepts either a string containing the content or a path to a file (for example `file("cloud-init.yml")`). Max length: 127998 characters. Updates to `cloud_init` will update the server user-data via the API and do not trigger a reinstall; however, a reboot of the server is required for the OS to re-run cloud-init and apply the changes. Not all BareMetal offers and OS images support cloud-init — check the OS/offer metadata (for example `cloud_init_supported`) before use.
308
362
-`protected` - (Optional) Set to true to activate server protection option.
309
363
-`project_id` - (Defaults to [provider](../index.md#project_id)`project_id`) The ID of the project the server is associated with.
310
364
@@ -320,6 +374,7 @@ In addition to all arguments above, the following attributes are exported:
320
374
-`offer_id` - The ID of the offer.
321
375
-`offer_name` - The name of the offer.
322
376
-`os_name` - The name of the os.
377
+
-`cloud_init` - The cloud-init user-data associated with the server. This value can be either a path to a file containing the user-data or the raw user-data content itself. Updating this field requires a server reboot for the changes to take effect. Only available for OS and offers that support cloud-init.
323
378
-`private_network` - The private networks attached to the server.
324
379
-`id` - The ID of the private network.
325
380
-`mapping_id` - The ID of the Server-to-Private Network mapping.
- echo "Hello from raw cloud-init!" > /home/ubuntu/message.txt
127
+
EOF
128
+
}
129
+
```
130
+
79
131
### With private network
80
132
81
133
```terraform
@@ -306,6 +358,8 @@ The following arguments are supported:
306
358
- `ipam_ip_ids` - (Optional) List of IPAM IP IDs to assign to the server in the requested private network.
307
359
- `zone` - (Defaults to [provider](../index.md#zone) `zone`) The [zone](../guides/regions_and_zones.md#zones) in which the server should be created.
308
360
- `partitioning` (Optional) The partitioning schema in JSON format
361
+
- `cloud_init` - (Optional) Configuration data to pass to cloud-init such as a YAML cloud config or a user-data script. Accepts either a string containing the content or a path to a file (for example `file("cloud-init.yml")`). Max length: 127998 characters. Updates to `cloud_init` will update the server user-data via the API and do not trigger a reinstall; however, a reboot of the server is required for the OS to re-run cloud-init and apply the changes. Only supported for OSes that have cloud-init enabled.
362
+
- `cloud_init` - (Optional) Configuration data to pass to cloud-init such as a YAML cloud config or a user-data script. Accepts either a string containing the content or a path to a file (for example `file("cloud-init.yml")`). Max length: 127998 characters. Updates to `cloud_init` will update the server user-data via the API and do not trigger a reinstall; however, a reboot of the server is required for the OS to re-run cloud-init and apply the changes. Not all BareMetal offers and OS images support cloud-init — check the OS/offer metadata (for example `cloud_init_supported`) before use.
309
363
- `protected` - (Optional) Set to true to activate server protection option.
310
364
- `project_id` - (Defaults to [provider](../index.md#project_id) `project_id`) The ID of the project the server is associated with.
311
365
@@ -321,6 +375,7 @@ In addition to all arguments above, the following attributes are exported:
321
375
- `offer_id` - The ID of the offer.
322
376
- `offer_name` - The name of the offer.
323
377
- `os_name` - The name of the os.
378
+
- `cloud_init` - The cloud-init user-data associated with the server. This value can be either a path to a file containing the user-data or the raw user-data content itself. Updating this field requires a server reboot for the changes to take effect. Only available for OS and offers that support cloud-init.
324
379
- `private_network` - The private networks attached to the server.
325
380
- `id` - The ID of the private network.
326
381
- `mapping_id` - The ID of the Server-to-Private Network mapping.
0 commit comments