From bf518e969f1e49609a9b85117e69e689d99cfafb Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Sun, 13 Jun 2021 11:28:37 +0700 Subject: [PATCH] Set hostname in ignition config --- .../pxe-boot/templates/http/ignition/ignition.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/metal/roles/pxe-boot/templates/http/ignition/ignition.yaml b/metal/roles/pxe-boot/templates/http/ignition/ignition.yaml index 04ce181b..8fbb99de 100644 --- a/metal/roles/pxe-boot/templates/http/ignition/ignition.yaml +++ b/metal/roles/pxe-boot/templates/http/ignition/ignition.yaml @@ -4,4 +4,12 @@ passwd: users: - name: core ssh_authorized_keys: - - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBbqNJWKwLmwkeHQVUVT/pEis/wvRqRSKG9Dpl166NGp + - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBbqNJWKwLmwkeHQVUVT/pEis/wvRqRSKG9Dpl166NGp # TODO template + +storage: + # Set hostname + files: + - path: /etc/hostname + mode: 0644 + contents: + inline: metal3