HomeFreeBSD

nuageinit: add basic support for cloudinit.

Description

nuageinit: add basic support for cloudinit.

this is a very early script to support cloudinit, it does not intend to
be a full featured cloudinit client, but will support a good enough
subset to be viable in most case.

It support nocloud and openstack config-2 config drive mode (iso9660 or
msdosfs)

The following features are currently supported:

  • adding users (including a default user named 'freebsd' with password 'freebsd'
  • adding groups
  • adding ssh keys
  • static ipv4, static ipv6, dynamic ipv4

With this one is able to use the 'bring your own image feature" out of
box.

It is expected that the script grows the support of other clouds
supporting cloud-init, contributions are welcomed.

It is designed to be only run once via the firstboot mecanism.

Sponsored by: OVHCloud
Differential Revision: https://reviews.freebsd.org/D44141

(cherry picked from commit a42d6f76018e4ed8324e319ab48aac904bda437c)
(cherry picked from commit c051f22bce42d920abba61bd7cf4ef5b6a270ffa)
(cherry picked from commit b8c053c9a612651d4909f7a323088f3e92485b7b)
(cherry picked from commit 9eae9233fdcc946945f4191e1413f548adfa2943)

Details

Provenance
baptAuthored on Nov 23 2022, 7:00 PM
Differential Revision
D44141: nuageinit: add basic support for cloudinit.
Parents
rG7ced57106295: ccdconfig: reference gpart rather than fdisk and disklabel
Branches
Unknown
Tags
Unknown