Add rg jail.
This commit is contained in:
parent
7c506f9e7f
commit
79a2ec6f53
@ -38,6 +38,10 @@ jail_list:
|
|||||||
enabled: true
|
enabled: true
|
||||||
conf:
|
conf:
|
||||||
src: public_dns
|
src: public_dns
|
||||||
|
- name: rg
|
||||||
|
enabled: true
|
||||||
|
conf:
|
||||||
|
src: rg
|
||||||
bhyve_dataset: zdata/vm
|
bhyve_dataset: zdata/vm
|
||||||
bhyve_canmount: "on"
|
bhyve_canmount: "on"
|
||||||
# efi_dev: /dev/gpt/EFI
|
# efi_dev: /dev/gpt/EFI
|
||||||
|
15
ansible/roles/jail/files/jails/rg.conf
Normal file
15
ansible/roles/jail/files/jails/rg.conf
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
rg {
|
||||||
|
path = "/jail/${name}";
|
||||||
|
vnet;
|
||||||
|
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start jail_nat jail${name} 10.215.1.1/24";
|
||||||
|
exec.poststop += "sleep 10; /usr/local/bin/jail_netgraph_bridge stop jail_nat jail${name}";
|
||||||
|
vnet.interface += "jail${name}";
|
||||||
|
|
||||||
|
devfs_ruleset = 14;
|
||||||
|
mount.devfs;
|
||||||
|
mount.fstab = "/etc/fstab.${name}";
|
||||||
|
|
||||||
|
exec.start += "/bin/sh /etc/rc";
|
||||||
|
exec.stop = "/bin/sh /etc/rc.shutdown jail";
|
||||||
|
exec.consolelog = "/var/log/jail_${name}_console.log";
|
||||||
|
}
|
@ -26,7 +26,7 @@ function by_src {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function by_bin {
|
function by_bin {
|
||||||
DESTRELEASE=14.1-RELEASE
|
DESTRELEASE=14.3-RELEASE
|
||||||
DESTARCH=`uname -m`
|
DESTARCH=`uname -m`
|
||||||
SOURCEURL=http://ftp.freebsd.org/pub/FreeBSD/releases/$DESTARCH/$DESTRELEASE/
|
SOURCEURL=http://ftp.freebsd.org/pub/FreeBSD/releases/$DESTARCH/$DESTRELEASE/
|
||||||
for component in base ports; do fetch $SOURCEURL/$component.txz -o - | tar -xf - -C "$DESTDIR" ; done
|
for component in base ports; do fetch $SOURCEURL/$component.txz -o - | tar -xf - -C "$DESTDIR" ; done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user