From 52adcd3f40df7c8b64cede675526eb4fe682e0cd Mon Sep 17 00:00:00 2001 From: phaer Date: Wed, 2 Mar 2022 14:30:19 +0100 Subject: [PATCH 1/2] resize /var, not /... because cloud-inits growpart can only resize the last partition --- modules/host/templates/userdata.yaml.tpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/host/templates/userdata.yaml.tpl b/modules/host/templates/userdata.yaml.tpl index e9d9845..5ac25d9 100644 --- a/modules/host/templates/userdata.yaml.tpl +++ b/modules/host/templates/userdata.yaml.tpl @@ -1,4 +1,9 @@ #cloud-config + +# Resize /var, not /, as that's the last partition in MicroOS image. +growpart: + devices: ["/var"] + write_files: # Configure private network @@ -40,4 +45,3 @@ runcmd: # Finishing automatic reboot via Kured setup - rebootmgrctl set-strategy off - \ No newline at end of file From cd0702514737bbb3ffee390b015a408bd3f0ad06 Mon Sep 17 00:00:00 2001 From: Paul Haerle Date: Wed, 2 Mar 2022 20:54:29 +0100 Subject: [PATCH 2/2] add note regarding lifecycle values --- terraform.tfvars.example | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/terraform.tfvars.example b/terraform.tfvars.example index 047c8bc..d424058 100644 --- a/terraform.tfvars.example +++ b/terraform.tfvars.example @@ -1,4 +1,10 @@ -# You need to replace these +# Values in this file serve as an example only, +# you are expected to adapt them to your needs. +# +# Some of them, notably "location" and "public_key" have no effect after the initial cluster has been setup. +# This is in order to keep terraform from re-provsioning all nodes at once which would loose data. You should +# instead change the value here and then manually re-provsion each node one-by-one. Grep for "lifecycle". + hcloud_token = "xxxxxxxxxxxxxxxxxxYYYYYYYYYYYYYYYYYYYzzzzzzzzzzzzzzzzzzzzz" public_key = "/home/username/.ssh/id_ed25519.pub" # Must be "private_key = null" when you want to use ssh-agent, for a Yubikey like device auth or an SSH key-pair with passphrase