~raharper/cloud-init:sysconfig-handle-global-static-routes

Last commit made on 2018-03-27
Get this branch:
git clone -b sysconfig-handle-global-static-routes https://git.launchpad.net/~raharper/cloud-init
Only Ryan Harper can upload to this branch. If you are Ryan Harper please log in for upload directions.

Branch merges

Branch information

Name:
sysconfig-handle-global-static-routes
Repository:
lp:~raharper/cloud-init

Recent commits

c79e5fc... by Ryan Harper

Make tox happy

2b459ab... by Ryan Harper

reduce vertical spacing some more

- move regex out of loop and compress to two lines
- keep list comprehension to filter non route entries from regex search
- convert match into dictionary in one line
- use ternary operator to append matched route when found
- network_config is not needed in _assert_static_routes
- no longer break out network_config to pass to static_routes
- add an else clause to assert_static_routes to make sure we don't
  have rendered static routes file when we shouldnt

5afdc68... by Ryan Harper

net/sysconfig refactors

- move ip-route keyword mapping outside of loop
- move prefix 'any' to entry construction

194f739... by Ryan Harper

net/sysconfig: handle global static routes

Cloud-init network-config V1 format allows configuration of "global"
static routes which are not directly associated with any interface
in particular. These routes were not rendered under sysconfig which
generally prefers routes to be part of an interface subnet configuration.
If the configuration includes global routes, sysconfig will now render
these static routes to /etc/sysconfig/static-routes file with the 'any'
parameter indicating it will be active for any network interface.

This change does not affect existing subnet routes which continue to
be rendered into /etc/sysconfig/network-scripts/route-$iface and
route6-$iface as needed.

20e3dda... by do3meli

FreeBSD: resizefs module now able to handle zfs/zpool.

Previously there was no support at all for zfs file system. With this
change it is now possible to use the resizefs module to grow a zpool to
its maximum partition size on FreeBSD.

LP: #1721243

4fe4070... by Chad Smith

cc_puppet: Revert regression of puppet creating ssl and ssl_cert dirs

Replace regressed cc_puppet functionality from a1f678f8.

The following content was inadvertently dropped:
 - chown /var/lib/puppet/ssl as puppet:root.
 - Automatic creation of /var/lib/puppet/ssl/certs

bdeec31... by Scott Moser

Enable IBMCloud datasource in settings.py.

This just got missed in the IBMCloud datasource addition.
Add it to the builtin list of datasources.

e0f644b... by Scott Moser

IBMCloud: Initial IBM Cloud datasource.

This adds a specific IBM Cloud datasource.
IBM Cloud is identified by:
 a.) running on xen
 b.) one of a LABEL=METADATA disk or a LABEL=config-2 disk with
     UUID=9796-932E

The datasource contains its own config-drive reader that reads
only the currently supported portion of config-drive needed for
ibm cloud.

During the provisioning boot, cloud-init is disabled.

See the docstring in DataSourceIBMCloud.py for more more information.

68d798b... by Scott Moser

tests: remove jsonschema from xenial tox environment.

Ubuntu 16.04 (xenial) does not have jsonschema installed by default. As
it is listed in requirements, the tox environment will always have it
installed.

Add the helper tools/pipremove that removes pip packages. Then use that
to remove jsonschema without noise of always running and ignoring a
'pip uninstall jsonschema'.

0c2f1ea... by Scott Moser

tests: Fix newly added schema unit tests to skip if no jsonschema.

The recently added snap and ubuntu_advantage modules had unit tests
that exercised jsonschema. Those throw error if jsonschema is
not present. Fix to skip in that scenario.