~raharper/cloud-init:ubuntu/devel/newupstream-20180910

Last commit made on 2018-09-10
Get this branch:
git clone -b ubuntu/devel/newupstream-20180910 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:
ubuntu/devel/newupstream-20180910
Repository:
lp:~raharper/cloud-init

Recent commits

0e8a1bc... by Ryan Harper

releasing cloud-init version 18.3-39-g757247f9-0ubuntu1

344f69a... by Ryan Harper

update changelog (New upstream snapshot 18.3-39-g757247f9).

e9d7d45... by Ryan Harper

merge from master at 18.3-39-g757247f9

757247f... by Chad Smith

config: disable ssh access to a configured user account

Cloud config can now disable ssh access to non-root users.

When defining the 'users' list in cloud-configuration a boolean
'ssh_redirect_user: true' can be provided to disable ssh logins for
that user. Any ssh 'public-keys' defined in cloud meta-data will be added
and disabled in .ssh/authorized_keys. Any attempts to ssh as this user
using acceptable ssh keys will be presented with a message like the
following:

Please login as the user "ubuntu" rather than the user "youruser".

c8fc29a... by Ryan Harper

releasing cloud-init version 18.3-38-gd47d404e-0ubuntu1

8540816... by Ryan Harper

update changelog (New upstream snapshot 18.3-38-gd47d404e).

c60744e... by Ryan Harper

merge from master at 18.3-38-gd47d404e

d47d404... by Chad Smith

tests: print failed testname instead of docstring upon failure

a8dcad9... by Scott Moser

tests: Disallow use of util.subp except for where needed.

In many cases, cloud-init uses 'util.subp' to run a subprocess.
This is not really desirable in our unit tests as it makes the tests
dependent upon existance of those utilities.

The change here is to modify the base test case class (CiTestCase) to
raise exception any time subp is called. Then, fix all callers.
For cases where subp is necessary or actually desired, we can use it
via
  a.) context hander CiTestCase.allow_subp(value)
  b.) class level self.allowed_subp = value

Both cases the value is a list of acceptable executable names that
will be called (essentially argv[0]).

Some cleanups in AltCloud were done as the code was being updated.

db50bc0... by Ryan Harper

sysconfig: refactor sysconfig to accept distro specific templates paths

Multiple distros use sysconfig format but have different content
and paths to certain files. Update distros to specify these
template paths in their renderer_configs dictionary.