From 48db9ffeb402ce670ef8283d4ca211d4299ea058 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Tue, 24 Jun 2025 14:57:10 +0300 Subject: Set up jails infra --- templates/etc_jail.conf.j2 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 templates/etc_jail.conf.j2 (limited to 'templates') 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 %} -- cgit v1.3