~bitfehler/cloud-init:bitfehler/load_seed

Last commit made on 2019-10-14
Get this branch:
git clone -b bitfehler/load_seed https://git.launchpad.net/~bitfehler/cloud-init
Only Conrad Hoffmann can upload to this branch. If you are Conrad Hoffmann please log in for upload directions.

Branch merges

Branch information

Name:
bitfehler/load_seed
Repository:
lp:~bitfehler/cloud-init

Recent commits

64ce489... by Conrad Hoffmann <email address hidden>

Support seeded network-config in local mode only

8ba83bb... by Conrad Hoffmann <email address hidden>

Return empty dict on invalid yaml in load_seed()

Also add a test for this to emphasize that this is the expected
behavior.

efb12b3... by Conrad Hoffmann

More kwargs and better exception handling

90186f8... by Conrad Hoffmann

Improve tests for load_seed

Make test name more descriptive (again) and provide test for URL
handling capabilities.

5a07ceb... by Conrad Hoffmann

Remove read_seeded and read_optional_seed

They are no longer used, mostly replaced by calls to `load_seed`.

475b563... by Conrad Hoffmann

Port several data sources to use load_seed

Use `load_seed` instead of either `read_seeded` or `read_optional_seed`
for the following data sources: CloudStack, NoCloud, OVF. This removes
all usage of both of these functions.

For the nocloud(-net) data source, this enables support for reading a
network-config from a user-supplied seed. This addresses the following
bugs:

https://bugs.launchpad.net/cloud-init/+bug/1809180
https://bugs.launchpad.net/cloud-init/+bug/1809277

For the other data sources, semantics were not changed, though this
change should facilitate e.g. supporting a seed network-config.

48fd9c8... by Conrad Hoffmann

Add load_seed function to facilitate seed loading

It can handle both local files and remote URLS, and otherwise has an
interface similar to pathprefix2dict, supporting required and optional
files (e.g. to support network-config without requiring it). It parses
meta-data and network-config to YAML, others must be handled by the
caller.

Intended to be a replacement for `read_seeded` and `read_optional_seed`.
Includes some basic tests.

5e4792c... by Markus Schade

Add missing dsname for Hetzner Cloud datasource

b993b0a... by Dan Watkins

doc: indicate that netplan is default in Ubuntu now

feebec1... by Chad Smith

azure: add region and AZ properties from imds compute location metadata

This allows cloud-init query region to show valid region data for Azure