diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-06-24 14:57:10 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-06-24 14:57:10 +0300 |
| commit | 48db9ffeb402ce670ef8283d4ca211d4299ea058 (patch) | |
| tree | 1afaacd8dd63d1708ca8cb472ecf5395907872a2 /templates | |
| parent | 1ae6ea46e91f5fe5074d3ec2fefd87abaa6d695d (diff) | |
Set up jails infra
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/etc_jail.conf.j2 | 22 |
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 %} |
