From 76e932b3c369b5c77e970f56bd74b3361dd9352e Mon Sep 17 00:00:00 2001 From: Mike Fedosin Date: Fri, 12 Jul 2019 17:40:31 +0200 Subject: [PATCH] OpenStack: set correct hostnames for masters and workers This commit sets hostnames equal to OpenStack node names. --- .../common/openstack/units/afterburn-hostname.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 templates/common/openstack/units/afterburn-hostname.yaml diff --git a/templates/common/openstack/units/afterburn-hostname.yaml b/templates/common/openstack/units/afterburn-hostname.yaml new file mode 100644 index 0000000000..d758bd4fd7 --- /dev/null +++ b/templates/common/openstack/units/afterburn-hostname.yaml @@ -0,0 +1,13 @@ +name: "afterburn-hostname.service" +enabled: true +contents: | + [Unit] + Description=Afterburn Hostname + Before=kubelet.service + + [Service] + ExecStart=/usr/bin/afterburn --provider openstack-metadata --hostname=/etc/hostname + Type=oneshot + + [Install] + WantedBy=multi-user.target