Bug 264286 - sysutils/firstboot-cloudsetup: Add new port
Summary: sysutils/firstboot-cloudsetup: Add new port
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Baptiste Daroussin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-27 14:20 UTC by Jørn Åne de Jong
Modified: 2022-05-27 15:20 UTC (History)
0 users

See Also:


Attachments
[patch] firstboot-cloudsetup v1.0 (1.98 KB, patch)
2022-05-27 14:20 UTC, Jørn Åne de Jong
no flags Details | Diff
[patch] firstboot-cloudsetup v1.0 (2.02 KB, patch)
2022-05-27 14:41 UTC, Jørn Åne de Jong
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jørn Åne de Jong 2022-05-27 14:20:42 UTC
Created attachment 234264 [details]
[patch] firstboot-cloudsetup v1.0

A shell script for provisioning FreeBSD hosts on OpenNebula at first boot [1].
This script was originally written to be used for VPS hosts at Ungleich,
a Swiss VPS hoster with a strong focus on IPv6.

This script works as a lightweight replacement for the original OpenNebula scripts, which also have FreeBSD support, but depend on bash, Python and Ruby. [2]
I believe this script should be able to work on any OpenNebula hosts,
but I don't have access to other hosts to try this out.

The port passes `port test` and respects %%DATADIR%%, not tested in Poudriere though.

I am not affiliated with Ungleich.

[1] https://git.sr.ht/~jornane/cloudsetup
[2] https://github.com/OpenNebula/addon-context-linux
Comment 1 Baptiste Daroussin freebsd_committer freebsd_triage 2022-05-27 14:22:47 UTC
hello can you provide a git format-patch ? if no, no problem I will deal with it, if yes, then great as it would ease giving you credit ;)
Comment 2 Jørn Åne de Jong 2022-05-27 14:41:30 UTC
Created attachment 234267 [details]
[patch] firstboot-cloudsetup v1.0
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-05-27 15:20:28 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3d6e3986a57795cd8fa0680cce25a2fe04859703

commit 3d6e3986a57795cd8fa0680cce25a2fe04859703
Author:     Jørn Åne de Jong <git@jornane.no>
AuthorDate: 2022-05-27 14:39:58 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2022-05-27 15:19:25 +0000

    sysutils/firstboot-cloudsetup: Add new port

    Configure network and user data from cloud configuration at first boot.
    The configuration is written before the netif service is started.
    Compatible with OpenNebula.

    PR:     264286

 sysutils/Makefile                             |  1 +
 sysutils/firstboot-cloudsetup/Makefile (new)  | 20 ++++++++++++++++++++
 sysutils/firstboot-cloudsetup/distinfo (new)  |  3 +++
 sysutils/firstboot-cloudsetup/pkg-descr (new) |  5 +++++
 sysutils/firstboot-cloudsetup/pkg-plist (new) | 10 ++++++++++
 5 files changed, 39 insertions(+)
Comment 4 Baptiste Daroussin freebsd_committer freebsd_triage 2022-05-27 15:20:44 UTC
pushed with small changes:
Next time, please make a patch which is relative to the ports tree when providing a git format-patch
WWW is supposed to be in pkg-descr
I also added a post-patch to ensure the rc script do not hardcode PREFIX