~wesley-wiedenmeier/cloud-init:revert-63501f44

Last commit made on 2016-12-21
Get this branch:
git clone -b revert-63501f44 https://git.launchpad.net/~wesley-wiedenmeier/cloud-init
Only Wesley Wiedenmeier can upload to this branch. If you are Wesley Wiedenmeier please log in for upload directions.

Branch merges

Branch information

Name:
revert-63501f44
Repository:
lp:~wesley-wiedenmeier/cloud-init

Recent commits

17d4e9a... by Wesley Wiedenmeier

Add unittests for stages.fetch_base_config()

f49cf57... by Wesley Wiedenmeier

Revert "kernel command line: override all local settings"

This reverts commit 63501f44eff7ef2d6083900c47180faf444662fc.

93cf879... by Scott Moser

pep8: whitespace fix

7709233... by Michael Felt

Update the list of valid ssh keys.

Update ssh_util.py with latest list of keys (from openssh-7.3p1/sshkeys.c),
and remove extinct keys ending with "-<email address hidden>"

Added keys:
  rsa-sha2-256,
  rsa-sha2-512,
  ed25519,
  ssh-ed25519,
  <email address hidden>

Removed both of the double entries for the keys:
  <email address hidden>
  <email address hidden>

0715631... by Scott Moser

network: add ENI unit test for statically rendered routes.

This just adds a unit test for a case found to be failing in curtin.
The issue was reported under bug 1649652.

c011294... by Lars Kellogg-Stedman

set_hostname: avoid erroneously appending domain to fqdn

In some situations, cloud-init will erroneously append a default
domain to an already fully qualified hostname, resulting in something
like 'localhost.localdomain.localdomain'. This patch checks to see if
the value returned by util.get_hostname() contains a '.', and if it
does treats it as a fully qualified name.

Resolves: rhbz#1389048
LP: #1647910

39fb5a0... by Anhad Jai Singh <email address hidden>

doc: change 'nobootwait' to 'nofail' in docs

'nobootwait' is an upstart specific extension to the mount syntax that is
not supported by other mount systems. As Ubuntu 16.04 moved from upstart
to systemd, support for 'nobootwait' was lost.

All examples using 'nobootwait' are updated to use the standard 'nofail',
which gives the expected behaviour of not failing to boot in case a volume
is missing. There are subtle differences in semantics between
'nobootwait' and 'nofail', but it is the best substitute that gives
behaviour similar to the upstart specific option.

1b6d162... by Joshua Harlow

Replace an expired bit.ly link in code comment.

The bit.ly link seems to have expired. Replace it with link to
'latest' version of EC2 docs.

ca3ae67... by Scott Moser

user-groups: fix bug when groups was provided as string and had spaces

Cloud-config provided like:
  users:
    - default
    - name: foobar
      groups: sudo, adm

Would result in adduser being called as:
  useradd foobar --groups 'sudo, adm' -m
Which would cause error:
  useradd: group ' adm' does not exist

The fix here is just to always normalize groups and remove whitespace.

Additionally a fix and unit tests to explicitly set system=False
or no_create_home=True. Previously those paths did not test the value
of the entry, only the presense of the entry.

LP: #1354694

c9c9197... by Scott Moser

mounts: use mount -a again to accomplish mounts

During recent changes to cc_mounts, on systemd systems, we started using
  systemctl daemon-reload
rather than 'mount -a' to get mounts done.

The belief was that since entries in /etc/fstab would be written
to tell systemd that they should be after cloud-init
(x-systemd.requires=cloud-init.service) that the reload would then
let systemd mount the units as expected.

That doesn't seem to work, and new mount entries end up not getting
mounted. The change here moves back to using 'mount -a', but
then also does a systemctl daemon-reload.

LP: #1647708