~gpiccoli/cloud-init:master

Last commit made on 2019-01-30
Get this branch:
git clone -b master https://git.launchpad.net/~gpiccoli/cloud-init
Only Guilherme G. Piccoli can upload to this branch. If you are Guilherme G. Piccoli please log in for upload directions.

Branch merges

Branch information

Name:
master
Repository:
lp:~gpiccoli/cloud-init

Recent commits

94a6452... by Paride Legovini on 2019-01-30

Resolve flake8 comparison and pycodestyle over-ident issues

Fixes:
 - flake8: use ==/!= to compare str, bytes, and int literals
 - pycodestyle: E117 over-indented

8ee294d... by Chad Smith on 2019-01-28

opennebula: also exclude epochseconds from changed environment vars

In addition to EPOCHREALTIME there is also an EPOCHSECONDS environment
variable that OpenNebula needs to exclude as it is expected to change.
This commit supplements the other exclusion in commit
d1a2fe7307e9cf2251d1f9a666c12d71d3f522d6.

Without this fix, unittests will intermittently fail if
parse_shell_config is run across a timing boundary where the
EPOCHSECONDS changes mid-test.

LP: #1813641

09dcecf... by Robert Schweikert on 2019-01-28

systemd: Render generator from template to account for system differences.

The systemd generator used had a hard coded path for the location target
file to create. This path does not apply to all distributions.
Make the generator and template to have the path set during build time.

3f12012... by Robert Schweikert on 2019-01-28

sysconfig: On SUSE, use STARTMODE instead of ONBOOT

ONBOOT is not recognized on openSUSE and SUSE Linux Enterprise,
add the STARTMODE setting

LP: #1799540

7a6ed1a... by Paride Legovini on 2019-01-28

flake8: use ==/!= to compare str, bytes, and int literals

d1a2fe7... by Chad Smith on 2019-01-26

opennebula: exclude EPOCHREALTIME as known bash env variable with a delta

This branch is needed to allow cloud-init to sbuild on Ubuntu Disco.

OpenNebula:parse_shell_config tries to do a comparison of bash
environment values, excluding expected environment variables which
are known to change.

Bash on Ubuntu Disco surfaces a new EPOCHREALTIME environment variable
which wasn't in previous bash environments, this var needs to be
ignored by parse_shell_config too.

LP: #1813383

c724805... by Chad Smith on 2019-01-25

tox: fix disco httpretty dependencies for py37

LP: #1813361

7a46965... by Paride Legovini on 2019-01-25

run-container: uncomment baseurl in yum.repos.d/*.repo when using a proxy

When using a proxy it is often useful to know in advance which mirrors
are to be contacted, so a whitelist can be set up. This is not easy when
using the yum.conf(5) mirrorlist option, as the retrieved list of mirrors
may change. The repository definition may also specify a canonical mirror
with the 'baseurl' option; this option is often commented out by default
to favor the usage of worldwide mirrors. This patch uncomments 'baseurl'
when an http_proxy is being used, so the canonical mirror is used *in
addition to* the mirrors retrieved from the mirrorlist.

c283321... by Johnson Shi on 2019-01-25

lxd: install zfs-linux instead of zfs meta package

When using the LXD module cloud-init will attempt
to install ZFS if it does not exist on the target
system. However instead of installing the `zfsutils-linux`
package it attempts to install `zfs` resulting in an error.

Ubuntu Xenial (16.04) has zfs meta package, but Bionic (18.04)
does not. Use the specific base package instead of zfs meta.

Co-authored-by: Michael Skalka <email address hidden>

LP: #1799779

b74ebca... by Robert Schweikert on 2019-01-23

net/sysconfig: do not write a resolv.conf file with only the header.

Writing the file with no dns information may prevent distro tools
from writing a resolv.conf file with dns information obtained from
a dhcp server.