2022-06-19 09:03:52 -06:00
|
|
|
# cloud-init
|
|
|
|
|
|
|
|
> Command line tool for managing cloud instance initialization.
|
2025-06-28 12:46:55 +03:00
|
|
|
> More information: <https://cloudinit.readthedocs.io/en/latest/reference/cli.html>.
|
2022-06-19 09:03:52 -06:00
|
|
|
|
|
|
|
- Display the status of the most recent cloud-init run:
|
|
|
|
|
|
|
|
`cloud-init status`
|
|
|
|
|
|
|
|
- Wait for cloud-init to finish running and then report status:
|
|
|
|
|
|
|
|
`cloud-init status --wait`
|
|
|
|
|
|
|
|
- List available top-level metadata keys to query:
|
|
|
|
|
|
|
|
`cloud-init query --list-keys`
|
|
|
|
|
|
|
|
- Query cached instance metadata for data:
|
|
|
|
|
|
|
|
`cloud-init query {{dot_delimited_variable_path}}`
|
|
|
|
|
|
|
|
- Clean logs and artifacts to allow cloud-init to rerun:
|
|
|
|
|
|
|
|
`cloud-init clean`
|