mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-12-16 06:50:21 +00:00
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=''.
|
||
|---|---|---|
| .. | ||
| assets/cloud-init | ||
| __init__.py | ||
| manifest-schema.yml | ||
| README.rst | ||
| tasks.py | ||
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``