Created
January 13, 2016 23:02
-
-
Save paulc/71272f821981ee3763e2 to your computer and use it in GitHub Desktop.
jail.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface = "lo1"; | |
host.hostname = "$name"; | |
ip4.addr = "172.16.0.$ip"; | |
path = "/jail/run/$name"; | |
exec.prestart = "/sbin/zfs clone zroot/jail/template/10.2-RELEASE/[email protected] zroot/jail/run/$name && | |
/usr/sbin/sysrc -f /jail/run/$name/etc/rc.conf hostname=$name && | |
/sbin/mount -t devfs -o ruleset=4 . /jail/run/$name/dev"; | |
exec.start = "/bin/sh /etc/rc"; | |
exec.stop = "/bin/sh /etc/rc.shutdown"; | |
exec.poststop = "/sbin/umount /jail/run/$name/dev; | |
/sbin/zfs destroy zroot/jail/run/$name"; | |
exec.clean; | |
j01 { $ip = 1; } | |
j02 { $ip = 2; } | |
j03 { $ip = 3; } | |
j04 { $ip = 4; } | |
j05 { $ip = 5; } | |
j06 { $ip = 6; } | |
j07 { $ip = 7; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment