MCPcopy Index your code
hub / github.com/canonical/cloud-init

github.com/canonical/cloud-init @26.1 sqlite

repository ↗ · DeepWiki ↗ · release 26.1 ↗
9,413 symbols 31,923 edges 592 files 3,059 documented · 32%
README

cloud-init

Unit Tests Integration Tests Documentation

Cloud-init is the industry standard multi-distribution method for cross-platform cloud instance initialization. It is supported across all major public cloud providers, provisioning systems for private cloud infrastructure, and bare-metal installations.

Cloud instances are initialized from a disk image and instance data:

  • Cloud metadata
  • User data (optional)
  • Vendor data (optional)

Cloud-init will identify the cloud it is running on during boot, read any provided metadata from the cloud and initialize the system accordingly. This may involve setting up network and storage devices to configuring SSH access key and many other aspects of a system. Later on cloud-init will also parse and process any optional user or vendor data that was passed to the instance.

The majority of clouds and Linux / Unix OSes are supported by and ship with cloud-init. If your distribution or cloud is not supported, please get in contact with that distribution and send them our way!

Getting help

The documentation is the first place to look for help. If a thorough search of the documentation does not resolve your issue, consider the following:

To start developing cloud-init

See the contributing guide.

Core symbols most depended-on inside this repo

get
called by 807
cloudinit/net/sysconfig.py
execute
called by 483
tests/integration_tests/instances.py
format
called by 454
cloudinit/config/schema.py
get
called by 365
cloudinit/sources/helpers/cloudsigma.py
subp
called by 333
cloudinit/config/cc_ansible.py
items
called by 264
cloudinit/helpers.py
get_cloud
called by 217
tests/unittests/util.py
get_data
called by 212
cloudinit/sources/__init__.py

Shape

Method 5,536
Function 1,884
Class 1,102
Route 891

Languages

Python100%

Modules by API surface

tests/unittests/test_util.py334 symbols
tests/unittests/sources/test_azure.py284 symbols
tests/unittests/test_net.py245 symbols
tests/unittests/net/test_init.py174 symbols
cloudinit/util.py153 symbols
tests/unittests/sources/test_azure_helper.py116 symbols
tests/unittests/sources/test_vmware.py103 symbols
tests/unittests/net/test_dhcp.py100 symbols
tests/unittests/distros/test_netconfig.py95 symbols
tests/unittests/sources/test_smartos.py93 symbols
tests/unittests/config/test_schema.py93 symbols
cloudinit/sources/DataSourceAzure.py87 symbols

For agents

$ claude mcp add cloud-init \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact