From 3719d850c70075d4e5d36eb7da8759a5a1a8f37a Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 5 Jan 2020 23:09:33 -0500 Subject: [PATCH] Fix setting hostname in debootstrap script --- client-api/provisioner/examples/debootstrap_script.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client-api/provisioner/examples/debootstrap_script.py b/client-api/provisioner/examples/debootstrap_script.py index 02058181..b5deeb2e 100644 --- a/client-api/provisioner/examples/debootstrap_script.py +++ b/client-api/provisioner/examples/debootstrap_script.py @@ -156,7 +156,9 @@ iface ens2 inet dhcp # Written by the PVC provisioner option rfc3442-classless-static-routes code 121 = array of unsigned integer 8; interface "ens2" { - request subnet-mask, broadcast-address, time-offset, routers, +""" + """ send fqdn.fqdn = "{hostname}"; + send host-name = "{hostname}"; +""".format(hostname=vm_name) + """ request subnet-mask, broadcast-address, time-offset, routers, domain-name, domain-name-servers, domain-search, host-name, dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers, netbios-name-servers, netbios-scope, interface-mtu,