Skip to content

Instantly share code, notes, and snippets.

@paulc
Created January 13, 2016 23:02
Show Gist options
  • Save paulc/71272f821981ee3763e2 to your computer and use it in GitHub Desktop.
Save paulc/71272f821981ee3763e2 to your computer and use it in GitHub Desktop.
jail.conf
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