From 3ee19645a370565bc2bdd07d87706294ce75136a Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Wed, 3 Nov 2021 13:50:40 +0100 Subject: [PATCH] stages/cloud-init: add support for configuring Azure datasource Datasources are defined in an array to preserve ordering and are then converted to objects. --- stages/org.osbuild.cloud-init | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/stages/org.osbuild.cloud-init b/stages/org.osbuild.cloud-init index 1df21fbf..1d5da2a7 100755 --- a/stages/org.osbuild.cloud-init +++ b/stages/org.osbuild.cloud-init @@ -57,6 +57,31 @@ SCHEMA = r""" } } } + }, + "datasource_list": { + "type": "array", + "items": { + "type": "string", + "enum": ["Azure"] + } + }, + "datasource": { + "type": "object", + "description": "Sources of configuration data for cloud-init.", + "minProperties": 1, + "properties": { + "Azure": { + "type": "object", + "minProperties": 1, + "properties": { + "apply_network_config": { + "type": "boolean", + "description": "Whether to use network configuration described by Azure’s IMDS endpoint", + "default": true + } + } + } + } } } }