Custom DataSource

Custom 3rd-party out-of-tree DataSources can be added to cloud-init by:

  1. Implement a DataSource in a Python file.

  2. Place that file in as a single Python module or package in folder included in $PYTHONPATH.

  3. Extend the base configuration’s datasource_pkg_list to include the Python package where the DataSource is located.

  4. Extend the base-configuration’s datasource_list to include the name of the custom DataSource.