bootstrap-vz/bootstrapvz/plugins/cloud_init
Veli-Matti Lintu 68d7ddb307 Commit 701678c9 changes print statements to print functions with end=' '.
As the printed strings contain newlines, this causes a space to be written
as the first character of the following line causing them to be indented.

An example config that is broken. Here disabling modules indents all the
other lines of cloud.cfg except the first one causing the username name
setting to fail as it expects indenting to be certain number of spaces.

plugins:
  cloud_init:
    metadata_sources: Ec2
    username: admin
    disable_modules:
      - locale
      - mounts

This commit removes the spaces by specifying end=''.
2018-06-13 13:20:05 +03:00
..
assets/cloud-init Add comment-header to files deployed by bootstrap-vz (resolves #429) 2018-01-20 18:18:56 +01:00
__init__.py pylint W0404(reimported) 2018-02-25 08:37:24 +00:00
manifest-schema.yml Stretch (9.0) patch #1 2016-09-24 19:03:28 +01:00
README.rst cloud-init: Clarify which values are possible for metadata sources 2017-02-13 23:18:57 +01:00
tasks.py Commit 701678c9 changes print statements to print functions with end=' '. 2018-06-13 13:20:05 +03:00

cloud-init
----------

This plugin installs and configures
`cloud-init <https://packages.debian.org/wheezy-backports/cloud-init>`__
on the system. Depending on the release it installs it from either
backports or the main repository.

cloud-init is only compatible with Debian wheezy and upwards.

Settings
~~~~~~~~

-  ``username``: The username of the account to create.
   ``required``
-  ``groups``: A list of strings specifying which additional groups the account
   should be added to.
   ``optional``
-  ``disable_modules``: A list of strings specifying which cloud-init
   modules should be disabled.
   ``optional``
-  ``metadata_sources``: A string that sets the
   `datasources <http://cloudinit.readthedocs.org/en/latest/topics/datasources.html>`__
   that cloud-init should try fetching metadata from (corresponds to
   debconf-set-selections values). The source is
   automatically set when using the ec2 provider.
   ``optional``