cloud-init

Command line tool for managing cloud instance initialization. More information: <https://cloudinit.readthedocs.io>.

Install

All systems
curl cmd.cat/cloud-init.sh
Debian Debian
apt-get install cloud-init
Ubuntu
apt-get install cloud-init
image/svg+xml Kali Linux
apt-get install cloud-init
CentOS
yum install cloud-init
Fedora
dnf install cloud-init
Windows (WSL2)
sudo apt-get update sudo apt-get install cloud-init
Raspbian
apt-get install cloud-init

Command line tool for managing cloud instance initialization. More information: <https://cloudinit.readthedocs.io>.

  • 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

© tl;dr; authors and contributors