Skip to content

Instantly share code, notes, and snippets.

@MaxAnderson95
Last active May 22, 2023 18:18
Show Gist options
  • Select an option

  • Save MaxAnderson95/bfa74f65c4295dbd889b7137cb6ee877 to your computer and use it in GitHub Desktop.

Select an option

Save MaxAnderson95/bfa74f65c4295dbd889b7137cb6ee877 to your computer and use it in GitHub Desktop.

Revisions

  1. MaxAnderson95 revised this gist May 22, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions cloud-config.yaml
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    #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)'
  2. MaxAnderson95 created this gist May 22, 2023.
    3 changes: 3 additions & 0 deletions cloud-config.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    # Requires that the node template used has the jq utility installed.
    runcmd:
    - 'hostnamectl set-hostname $(cloud-init query -a | jq -r .v1.local_hostname)'