Skip to content

providers/hetzner: private ipv4 addresses in attributes#1094

Merged
travier merged 1 commit intocoreos:mainfrom
apricote:hetzner-private-ips
Jul 23, 2024
Merged

providers/hetzner: private ipv4 addresses in attributes#1094
travier merged 1 commit intocoreos:mainfrom
apricote:hetzner-private-ips

Conversation

@apricote
Copy link
Copy Markdown
Contributor

Adds new attributes AFTERBURN_HETZNER_PRIVATE_IPV4_* set to the servers IPv4 addresses in private networks.

This is useful for e.g. discovery of etcd members that should communicate over the private network.


I do not really know Rust well, so please take a closer look at the code :)

Adds new attributes `AFTERBURN_HETZNER_PRIVATE_IPV4_*` set to the
servers IPv4 addresses in private networks.

This is useful for e.g. discovery of etcd members that should
communicate over the private network.

Signed-off-by: Julian Tölle <julian.toelle97@gmail.com>
@tormath1
Copy link
Copy Markdown
Contributor

For information, it has been successfully tried on Flatcar:

$ cat /run/metadata/flatcar
COREOS_HETZNER_PUBLIC_IPV4=37.27.86.69
COREOS_HETZNER_INSTANCE_ID=50773413
COREOS_HETZNER_REGION=eu-central
COREOS_HETZNER_AVAILABILITY_ZONE=hel1-dc2
COREOS_HETZNER_PRIVATE_IPV4_0=10.0.0.2
COREOS_HETZNER_PRIVATE_IPV4_1=10.1.0.2
COREOS_HETZNER_HOSTNAME=snapshot-177311839-ubuntu-4gb-hel1-1

(flatcar/scripts#2141)

Copy link
Copy Markdown
Member

@travier travier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM. I have not tested it however.

@travier
Copy link
Copy Markdown
Member

travier commented Jul 23, 2024

Thanks @tormath1 !

@travier travier merged commit 5733dc0 into coreos:main Jul 23, 2024
@travier
Copy link
Copy Markdown
Member

travier commented Jul 23, 2024

and thanks @apricote for the PR 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants