diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-10-09 22:04:02 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-10-09 22:04:02 +0300 |
| commit | f4504129f6a1bfce8fc81f69b0f90f340acb1d34 (patch) | |
| tree | 80a912e83b9d9a6dc9626d15b71573afc597f5eb /templates | |
| parent | e037ecfa8cc0133a84fbed791b7658c474c3e748 (diff) | |
Add postgres jail conf
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/etc_jail.conf.j2 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/etc_jail.conf.j2 b/templates/etc_jail.conf.j2 index 0b8c18b..25955ce 100644 --- a/templates/etc_jail.conf.j2 +++ b/templates/etc_jail.conf.j2 @@ -32,10 +32,13 @@ path = "/usr/local/jails/containers/${name}"; {% for jail in jails %} {{ jail.name }} { $num = "{{ jail.num }}"; - {% if jail.name == "ingress" %} + {% if jail.name == "ingress" -%} exec.poststart = "jexec ${name} ifconfig ${epl}b 192.168.2.${num}/16 up"; exec.poststart = "jexec ${name} ifconfig epw1b up"; exec.poststart += "jexec ${name} service dhclient restart epw1b"; {% endif %} + {%if jail.name == "postgres" -%} + allow.sysvipc; + {% endif %} } {% endfor %} |
