From 8b83f11917e6d4b58c3800ba4d01eefcd9e4d2f5 Mon Sep 17 00:00:00 2001 From: Stanislaw Adaszewski Date: Mon, 11 May 2020 23:16:39 +0200 Subject: [PATCH] Ability to override hostname in compose. --- focker/compose.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/focker/compose.py b/focker/compose.py index 928fa03..5ccf12b 100644 --- a/focker/compose.py +++ b/focker/compose.py @@ -130,7 +130,8 @@ def build_jails(spec): overrides={ 'exec.stop': jailspec.get('exec.stop', '/bin/sh /etc/rc.shutdown'), 'ip4.addr': jailspec.get('ip4.addr', '127.0.1.0'), - 'interface': jailspec.get('interface', 'lo1') + 'interface': jailspec.get('interface', 'lo1'), + 'host.hostname': jailspec.get('host.hostname', jailname) }) setup_dependencies(spec, generated_names)