Re: git: 2775b9b0bcc2 - main - nuageinit: add support for OpenStack network config

From: Mateusz Piotrowski <0mp_at_FreeBSD.org>
Date: Tue, 29 Oct 2024 14:08:06 UTC
Hey Baptiste,

> On 29. Oct 2024, at 14:24, Baptiste Daroussin <bapt@freebsd.org> wrote:
…
> URL: https://cgit.FreeBSD.org/src/commit/?id=2775b9b0bcc278dd4183b57784953c26a3fcdc89
…
>    nuageinit: add support for OpenStack network config
> 
>    Add naive support for openstack network config.
>    if no config driver have been found, try to detect that we are running a
>    VM on openstack via the smbios information, use the first iface
>    available and temporary activate dhcp on it, to be able to fetch the
>    necessary informations for cloudinit.
> 
>    While here make the rc script execute after devmatch, some ethernet
>    device might be attached via devmatch and may be needed for cloudinit.
…
> diff --git a/libexec/rc/rc.d/nuageinit b/libexec/rc/rc.d/nuageinit
…
> @@ -14,6 +14,18 @@ start_cmd="nuageinit_start"
> stop_cmd=":"
> rcvar="nuageinit_enable"
> 
> +fetch_openstack()
> +{
> +	cd /media/nuageinit/openstack/latest
> +	for file in meta_data.json network_data.json user_data; do
> +		fetch http://169.254.169.254/openstack/latest/$file || :

Is it intended to fetch over HTTP?


Best,

Mateusz