aboutsummaryrefslogtreecommitdiff
path: root/libexec/nuageinit/tests/err.lua
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2022-11-23 19:00:39 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2024-04-11 11:52:52 +0000
commit16a6da44e28d607f2383be7c7c325090979f531f (patch)
treede938203ebf1b28b72dfd8d496c4ad19b4fe7040 /libexec/nuageinit/tests/err.lua
parent7ced57106295ac92a0584ea03e0a05b66973ed73 (diff)
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)
Diffstat (limited to 'libexec/nuageinit/tests/err.lua')
-rw-r--r--libexec/nuageinit/tests/err.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/libexec/nuageinit/tests/err.lua b/libexec/nuageinit/tests/err.lua
new file mode 100644
index 000000000000..c62fa1098f09
--- /dev/null
+++ b/libexec/nuageinit/tests/err.lua
@@ -0,0 +1,4 @@
+#!/usr/libexec/flua
+
+local n = require("nuage")
+n.err("plop")