Add a public_dns jail.
This jail will host the authoritative zone for my domains.
This commit is contained in:
parent
f10964623d
commit
334ec8b49b
@ -27,6 +27,10 @@ jail_list:
|
|||||||
enabled: true
|
enabled: true
|
||||||
conf:
|
conf:
|
||||||
src: admin_git
|
src: admin_git
|
||||||
|
- name: public_dns
|
||||||
|
enabled: true
|
||||||
|
conf:
|
||||||
|
src: public_dns
|
||||||
bhyve_dataset: zdata/vm
|
bhyve_dataset: zdata/vm
|
||||||
bhyve_canmount: "on"
|
bhyve_canmount: "on"
|
||||||
# efi_dev: /dev/gpt/EFI
|
# efi_dev: /dev/gpt/EFI
|
||||||
|
14
ansible/roles/jail/files/jails/public_dns.conf
Normal file
14
ansible/roles/jail/files/jails/public_dns.conf
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
public_dns {
|
||||||
|
path = "/jail/main/jails/${name}";
|
||||||
|
vnet;
|
||||||
|
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start jail_nat jail${name} 10.215.1.1/24";
|
||||||
|
exec.poststop += "/usr/local/bin/jail_netgraph_bridge stop jail_nat jail${name}";
|
||||||
|
vnet.interface += "jail${name}";
|
||||||
|
|
||||||
|
devfs_ruleset = 14;
|
||||||
|
mount.devfs;
|
||||||
|
|
||||||
|
exec.start += "/bin/sh /etc/rc";
|
||||||
|
exec.stop = "/bin/sh /etc/rc.shutdown jail";
|
||||||
|
exec.consolelog = "/var/log/jail_${name}_console.log";
|
||||||
|
}
|
@ -63,6 +63,11 @@
|
|||||||
// admin_git
|
// admin_git
|
||||||
"hw-address": "58:9c:fc:10:fc:5a",
|
"hw-address": "58:9c:fc:10:fc:5a",
|
||||||
"ip-address": "10.215.1.210"
|
"ip-address": "10.215.1.210"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// public_dns
|
||||||
|
"hw-address": "58:9c:fc:10:ff:80",
|
||||||
|
"ip-address": "10.215.1.211"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user