~chad.smith/cloud-init:feature/add-sysinfo-and-cloud-cfg-to-instance-data

Last commit made on 2020-02-16
Get this branch:
git clone -b feature/add-sysinfo-and-cloud-cfg-to-instance-data https://git.launchpad.net/~chad.smith/cloud-init
Only Chad Smith can upload to this branch. If you are Chad Smith please log in for upload directions.

Branch merges

Branch information

Name:
feature/add-sysinfo-and-cloud-cfg-to-instance-data
Repository:
lp:~chad.smith/cloud-init

Recent commits

5c5ed48... by Chad Smith

instance-data: add merged cloud.cfg and system_info to top-level keys

Cloud-config userdata provided as jinja templates can now be distro
and platform aware. Add top-level 'cfg' key to represent merged
cloud.cfg from disk and 'sys_info' which captures distro and platform
info from cloudinit.util.system_info.

Now users can specify
  ## template: jinja
  #cloud-config
  {% if sys_info.variant == 'centos' %}
  yum install blah
  {% endif %}

LP: #1829441

c90932f... by Chad Smith

docs: mount_default_files is a list of 6 items, not 7 (#212)

ecffd25... by Ryan Harper

azurecloud: fix issues with instances not starting (#205)

The azurecloud platform did not always start instances
during collect runs. This was a result of two issues. First
the image class _instance method did not invoke the start()
method which then allowed collect stage to attempt to run
scripts without an endpoint. Second, azurecloud used the
image_id as both an instance handle (which is typically
vmName in azure api) as well as an image handle (for image
capture). Resolve this by adding a .vm_name property to
the AzureCloudInstance and reference this property in
AzureCloudImage.

Also in this branch

- Fix error encoding user-data when value is None
- Add additional logging in AzureCloud platform
- Update logging format to print pathname,funcName and line number
  This greatly eases debugging.

LP: #1861921

81c7477... by Ryan Harper

unittest: fix stderr leak in cc_set_password random unittest output. (#208)

890aca4... by Ryan Harper

cc_disk_setup: add swap filesystem force flag (#207)

616d0a6... by =?utf-8?q?Igor_Gali=C4=87?= <email address hidden>

import sysvinit patches from freebsd-ports tree (#161)

bugzilla ref: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224361
svn rev: https://svnweb.freebsd.org/ports?view=revision&revision=457768

b285efb... by Edwin Kofler <email address hidden>

docs: fix typo (#195)

fixes typo at doc/examples/cloud-config-disk-setup.txt; Cavaut => Caveat

06e324f... by Robert Schweikert

sysconfig: distro-specific config rendering for BOOTPROTO option (#162)

- Introduce the "flavor" configuration option for the sysconfig renderer
  this is necessary to account for differences in the handling of the
  BOOTPROTO setting between distributions (lp#1858808)
  + Thanks to Petr Pavlu for the idea
- Network config clean up for sysconfig renderer
  + The introduction of the "flavor" renderer configuration allows us
    to only write values that are pertinent for the given distro
- Set the DHCPv6 client mode on SUSE (lp#1800854)

Co-authored-by: Chad Smith <email address hidden>

LP: #1800854

1bb1896... by Dan Watkins

cloudinit: replace "from six import X" imports (except in util.py) (#183)

0ecbd88... by Paride Legovini

run-container: use 'test -n' instead of 'test ! -z' (#202)

Fixes shellcheck warning SC2236.