Skip to content

Conversation

cadejacobson
Copy link
Contributor

@cadejacobson cadejacobson commented Oct 9, 2025

This PR adds the ability to call azure-init --hostname, which begins the process of adding more granular control to azure-init. This PR also adds the public set_hostname() function which is accessible from third party Rust projects for consumption.

This resolves #259.

How to use

  1. Call azure-init --help to see the new --hostname option.
  2. Call azure-init --hostname to only set the hostname (retrieved from IMDS) and return.
  3. Call azure-init to complete the entire provision setup as before.

Testing done

This PR has been tested with manual running locally and the testinit process in the CI/CD pipeline.

@cadejacobson cadejacobson changed the title [Not for review] - Hostname flag prototype Add hostname flag Oct 15, 2025
@cadejacobson cadejacobson marked this pull request as ready for review October 15, 2025 21:25
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.

[RFE] Add set-hostname flag to Azure-init CLI

1 participant