kube-hetzner / terraform-hcloud-kube-hetzner

Optimized and Maintenance-free Kubernetes on Hetzner Cloud in one command!
MIT License
2.26k stars 347 forks source link

[Feature Request]: Allow passing additional data to cloud init to create files and run scripts #956

Closed rombert closed 11 months ago

rombert commented 1 year ago

Description

This was discussed at https://github.com/kube-hetzner/terraform-hcloud-kube-hetzner/discussions/948 . Briefly, my goal is to be able to configure and start a custom Wireguard service on all provisioned nodes. To do that, I think we should expose two additional variables and end up in

The variables should initially be empty and have per-host values, since Wireguard keys cannot be shared.

I plan to work on a pull request sometime in October, but I won't mind if someone else works on it first :-)

mysticaltech commented 1 year ago

@M4t7e @ifeulner @aleksasiriski Please, I would like your input on that people 🙏

mysticaltech commented 1 year ago

@rombert Is your current implementation open-source? If so, please do share your modified cloud-init.yaml.tpl, if not, no worries.

rombert commented 1 year ago

@mysticaltech - I don't have a modification yet, I just tested this out my manually speciying cloud-init data for one VM. Nothing done in terraform yet.

mysticaltech commented 1 year ago

(Quick tip, I do not know how familiar you are with terraform, but GPT-4 sure is a decent expert, I personally use it all the time now 😄)

Silvest89 commented 12 months ago

@mysticaltech It should be configurable per node and not nodepool? This is fairly easy to implement though