aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/project/templates
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/project/templates')
-rw-r--r--ansible/project/templates/jail.conf.j219
1 files changed, 19 insertions, 0 deletions
diff --git a/ansible/project/templates/jail.conf.j2 b/ansible/project/templates/jail.conf.j2
new file mode 100644
index 0000000..c5063d7
--- /dev/null
+++ b/ansible/project/templates/jail.conf.j2
@@ -0,0 +1,19 @@
+{{ jail_name }} {
+ # 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}";
+
+ # NETWORK
+ ip6.addr = {{ jail_ipv6 }};
+ interface = vtnet0;
+} \ No newline at end of file