diskimage-builder/diskimage_builder/elements/cloud-init-datasources
Simon Leinen 0ff40cf63c Turn off strict_id mode for Ec2 datasource
Recent changes in the default configuration of cloud-init in Ubuntu
cause warnings when the Ec2 datasource is used on non-Amazon clouds,
see https://bugs.launchpad.net/cloud-init/+bug/1660385

We explicitly select the previous behavior when an Ec2 datasource is
desired.

Change-Id: Iebad8f6c0017fe08013dd5fe667c6132158b71cd
Closes-bug: 1683038
2017-04-19 09:47:56 +02:00
..
install.d Turn off strict_id mode for Ec2 datasource 2017-04-19 09:47:56 +02:00
README.rst Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00

======================
cloud-init-datasources
======================

Configures cloud-init to only use an explicit list of data sources.

Cloud-init contains a growing collection of data source modules and most
are enabled by default.  This causes cloud-init to query each data source
on first boot.  This can cause delays or even boot problems depending on your
environment.

Including this element without setting `DIB_CLOUD_INIT_DATASOURCES` will cause
image builds to fail.

Environment Variables
---------------------

DIB_CLOUD_INIT_DATASOURCES
  :Required: Yes
  :Default: None
  :Description: A comma-separated list of valid data sources to limit the data
    sources that will be queried for metadata on first boot.
  :Example: ``DIB_CLOUD_INIT_DATASOURCES="Ec2"`` will enable only the Ec2 data
    source.
  :Example: ``DIB_CLOUD_INIT_DATASOURCES="Ec2, ConfigDrive, OpenStack"`` will
    enable the Ec2, ConfigDrive and OpenStack data sources.