diff options
Diffstat (limited to 'internal/tmpl')
| -rw-r--r-- | internal/tmpl/jail.conf.tmpl | 1 | ||||
| -rw-r--r-- | internal/tmpl/tmpl.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/internal/tmpl/jail.conf.tmpl b/internal/tmpl/jail.conf.tmpl index 446c8c8..c82b3a6 100644 --- a/internal/tmpl/jail.conf.tmpl +++ b/internal/tmpl/jail.conf.tmpl @@ -1,6 +1,7 @@ {{.Name}} { path = "{{.JailRoot}}"; host.hostname = "{{.Name}}.skiff.local"; + interface = "{{.Iface}}"; ip4.addr = "{{.IP}}"; exec.start = "/bin/sh /etc/rc"; exec.stop = "/bin/sh /etc/rc.shutdown"; diff --git a/internal/tmpl/tmpl.go b/internal/tmpl/tmpl.go index 68e917d..12baa70 100644 --- a/internal/tmpl/tmpl.go +++ b/internal/tmpl/tmpl.go @@ -37,6 +37,7 @@ type JailConfData struct { Name string JailRoot string IP string + Iface string } func JailConf(d JailConfData) (string, error) { return Render(jailConf, d) } |
