Skip to content

Commit bdb6ddf

Browse files
committed
doc: update for ionoscloud provider
Signed-off-by: Jan Larwig <[email protected]>
1 parent 0f6065b commit bdb6ddf

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

docs/supported-platforms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Ignition is currently supported for the following platforms:
2020
* [Hetzner Cloud] (`hetzner`) - Ignition will read its configuration from the instance userdata. Cloud SSH keys are handled separately.
2121
* [Microsoft Hyper-V] (`hyperv`) - Ignition will read its configuration from the `ignition.config` key in pool 0 of the Hyper-V Data Exchange Service (KVP). Values are limited to approximately 1 KiB of text, so Ignition can also read and concatenate multiple keys named `ignition.config.0`, `ignition.config.1`, and so on.
2222
* [IBM Cloud] (`ibmcloud`) - Ignition will read its configuration from the instance userdata. Cloud SSH keys are handled separately.
23-
* [IONOS Cloud] (`ionoscloud`) - Ignition will read its configuration from the instance user-data. Per default the user-data are injected on a disk or partition with the label `OEM` which can be customized using the environment variable `IGNITION_CONFIG_DEVICE_LABEL`.
23+
* [IONOS Cloud] (`ionoscloud`) - Ignition will read its configuration from an injected user-data file. Per default the user-data is injected in a disk or partition with the label `OEM` and location `/config/user-data`. If this is different for your image build process or configuration you can customize the location for fetching the data using the kernel flags `deviceLabelKernelFlag` and `userDataKernelFlag`.
2424
* [KubeVirt] (`kubevirt`) - Ignition will read its configuration from the instance userdata via config drive. Cloud SSH keys are handled separately.
2525
* Bare Metal (`metal`) - Use the `ignition.config.url` kernel parameter to provide a URL to the configuration. The URL can use the `http://`, `https://`, `tftp://`, `s3://`, `arn:`, or `gs://` schemes to specify a remote config.
2626
* [Nutanix] (`nutanix`) - Ignition will read its configuration from the instance userdata via config drive. Cloud SSH keys are handled separately.

internal/providers/ionoscloud/ionoscloud.go

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@
1414
//
1515
// NOTE: This provider is still EXPERIMENTAL.
1616
//
17-
// The IONOS Cloud provider fetches the ignition config from the user-data
18-
// available in an injected file at /var/lib/cloud/seed/nocloud/user-data.
17+
// The IONOS Cloud provider fetches the ignition config from a user-data file.
1918
// This file is created by the IONOS Cloud VM handler before the first boot
20-
// through the cloud init user data handling.
19+
// and gets injected into a device at /config/user-data by default.
2120
//
22-
// User data with the directive #cloud-config will be ignored
21+
// The kernel parameters deviceLabelKernelFlag and userDataKernelFlag can be
22+
// used during the build process of images and for the VM initialization to
23+
// specify on which disk or partition the user-data is going to be injected.
24+
//
25+
// User data files with the directive #cloud-config and #!/bin/ will be ignored
2326
// See for more: https://docs.ionos.com/cloud/compute-services/compute-engine/how-tos/boot-cloud-init
2427

2528
package ionoscloud
@@ -48,7 +51,7 @@ const (
4851
deviceLabelKernelFlag = "ignition.config.device"
4952
defaultDeviceLabel = "OEM"
5053
userDataKernelFlag = "ignition.config.path"
51-
defaultUserDataPath = "config.ign"
54+
defaultUserDataPath = "config/user-data"
5255
)
5356

5457
func init() {

0 commit comments

Comments
 (0)