Last active
May 22, 2023 18:18
-
-
Save MaxAnderson95/bfa74f65c4295dbd889b7137cb6ee877 to your computer and use it in GitHub Desktop.
Set proper hostname for Rancher-launched RKE2 clusters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
# Requires that the node template used has the jq utility installed. | |
runcmd: | |
- 'hostnamectl set-hostname $(cloud-init query -a | jq -r .v1.local_hostname)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment