aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-06-24 14:57:10 +0300
committerJan Tuomi <jan@jantuomi.fi>2025-06-24 14:57:10 +0300
commit48db9ffeb402ce670ef8283d4ca211d4299ea058 (patch)
tree1afaacd8dd63d1708ca8cb472ecf5395907872a2 /templates
parent1ae6ea46e91f5fe5074d3ec2fefd87abaa6d695d (diff)
Set up jails infra
Diffstat (limited to 'templates')
-rw-r--r--templates/etc_jail.conf.j222
1 files changed, 22 insertions, 0 deletions
diff --git a/templates/etc_jail.conf.j2 b/templates/etc_jail.conf.j2
new file mode 100644
index 0000000..bcfcef0
--- /dev/null
+++ b/templates/etc_jail.conf.j2
@@ -0,0 +1,22 @@
+# STARTUP/LOGGING
+exec.start = "/bin/sh /etc/rc";
+exec.stop = "/bin/sh /etc/rc.shutdown";
+exec.consolelog = "/var/log/jail_console_${name}.log";
+
+# PERMISSIONS
+allow.raw_sockets;
+exec.clean;
+mount.devfs;
+
+# HOSTNAME/PATH
+host.hostname = "${name}";
+path = "/usr/local/jails/containers/${name}";
+
+# JAILS
+{% for jail in jails %}
+{{ jail.name }} {
+ ip4.addr = {{ jail.ip }};
+ interface = lan0;
+}
+
+{% endfor %}