~mdorman-m/cloud-init:master

Last commit made on 2016-10-20
Get this branch:
git clone -b master https://git.launchpad.net/~mdorman-m/cloud-init
Only Mike Dorman can upload to this branch. If you are Mike Dorman please log in for upload directions.

Branch merges

Branch information

Name:
master
Repository:
lp:~mdorman-m/cloud-init

Recent commits

f6ae1f9... by Wesley Wiedenmeier

Add documentation for logging features.

Update the summary of rsyslog module and add logging.rst to docs.

d853456... by Ryan Harper

Add support for snap create-user on Ubuntu Core images.

Ubuntu Core images use the `snap create-user` to add users to an
Ubuntu Core system. Add support for creating snap users by adding
a key to the users dictionary.
  users:
    - name: bob
      snapuser: <email address hidden>

Or via the 'snappy' dictionary:
  snappy:
    email: <email address hidden>

Users may also create a snap user without contacting the SSO by
providing a 'system-user' assertion by importing them into snapd.

Additionally, Ubuntu Core systems have a read-only /etc/passwd such that
the normal useradd/groupadd commands do not function without an additional
flag, '--extrausers', which redirects the pwd to /var/lib/extrausers.

Move the system_is_snappy() check from cc_snappy module to util for
re-use and then update the Distro class to append '--extrausers' if
the system is Ubuntu Core.

ba0adb9... by Jim Gorz <email address hidden>

Fix sshd restarts for rhel distros.

Set the default value for 'ssh_svcname' in rhel distros.
This means that it no longer needs to be set in system_info config.

9972d24... by Scott Moser

OpenNebula: replace 'ip' parsing with cloudinit.net usage.

Replace the parsing of 'ip' to get a link and mac address list
in OpenNebula's datasource with usage of cloudinit.net.

This makes test cases there not depend on 'ip' availability
and also uses common code.

e873007... by Scott Moser

Fix python2.6 things found running in centos 6.

This gets the tests running in centos 6.
  * ProcessExecutionError: remove setting of .message
    Nothing in cloud-init seems to use .message anywhere, so
    it does not seem necessary.
    The reason to change it is that on 2.6 it spits out:
    cloudinit/util.py:286: DeprecationWarning: BaseException.message
 * tox.ini: add a centos6 environment
   the tox versions listed here replicate a centos6 install with
   packages from EPEL.
   You will still need a python2.6 to run this env so we do not
   enable it by default.

f0747c4... by Joshua Harlow

Move user/group functions to new ug_util file

The amount of code to do user and group normalization
and extraction deserves its own file so move the code
that does this to a new file and update references to the
old location.

This removes some of the funkyness done in config modules
to avoid namespace and attribute clashes as well.

7ae2011... by Scott Moser

DigitalOcean: enable usage of data source by default.

Just add DigitalOcean to the list of datasources that are used
if there is no 'datasource_list' provided in config.

e772f52... by Matthew Thode

update Gentoo initscripts to run in the correct order

cloud-init-local needs to be run before net (and in the boot runlevel)
as it sets up networking config and adds it to the default runlevel.

cloud-init-local needs to be run in the boot runlevel because it
modifies services in the default runlevel. When a runlevel is started
it is cached, so modifications that happen to the current runlevel while
you are in it are not acted upon.

cloud-init needs to run after net, it does not need net because we still
want it to set up other things if it can.

808edb1... by Scott Moser

MAAS: improve the main of datasource to look at kernel cmdline config.

This just looks in one other maas related path for a config file.
The file '91_kernel_cmdline_url' is written by cloud-init when it
gets a cloud-config-url parameter.

Also now we read the config even if a url is specified to potentially
fill in credentials.

c4aeba3... by Scott Moser

tests: silence the Cheetah UserWarning about NameMapper C version.

This silences a warning made by Cheetah in pip installed environments:
  UserWarning: You don't have the C version of NameMapper installed!
  I'm disabling Cheetah's useStackFrames option ...

The reason for the monkey patching is that the warning goes to stderr
during nose and breaks up its expected output. The side affect of it
is that tests would run with Cheetah's 'useStackFrames'
enabled which is "painfully slow with the Python version of NameMapper".