Skip to content

Conversation

@norvellj
Copy link
Contributor

Adds a simple systemd service set-hostname-imds which will retrieve the local-hostname from IMDS and set the system hostname. This service can be used in systems that don't have another solution like cloud-init or systemd-networkd setting the hostname.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Adds a simple systemd service set-hostname-imds which will retrieve
the local-hostname from IMDS and set the system hostname. This service
can be used in systems that don't have another solution like
cloud-init or systemd-networkd setting the hostname.
@joeysk2012
Copy link

Reviewed an approved internally.

@joeysk2012 joeysk2012 merged commit 9432c13 into amazonlinux:main Jun 27, 2025
4 checks passed
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.

2 participants