Created by Craig Tracey and last modified
Get this branch:
bzr branch lp:~craigtracey/cloud-init/resolv-conf-config
Only Craig Tracey can upload to this branch. If you are Craig Tracey please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Craig Tracey

Recent revisions

763. By ctracey <email address hidden>

Adding a doc example for resolv_conf handler.

As per harlowja's suggestion addding an example to the doc directory for

762. By Craig Tracey

Fixing missing argument to get_cfg_option_bool

Forgot to pass cfg to this function, and thus this would have never

761. By Craig Tracey

Adding a resolv.conf configuration module (LP: #1100434)

Managing resolv.conf can be quite handy when running in an environment
where you would like to control DNS resolution, despite being provided
DNS server information by DHCP. This module will allow one to define the
structure of their resolv.conf and write it PER_ONCE.

Right now this makes the most sense on RedHat, and therefore, has defined
'distros' as such.

760. By Scott Moser

DataSourceConfigDrive: consider CD rom as valid config-drive source.

previously, there was an attempt in the config drive source to limit
the source device to a "full block device" rather than a partition.

This was done by a simplistic approach of checking that the last
character of the name was not a number. That was filtering out
CD-rom devices (sr0).

Now, we have a bit more sophisticated approach to that same problem.
We filter out block devices that have a 'partition' entry in
/sys/class/block/DEVICE_NAME/partition .

759. By Joshua Harlow

tests: Add a context manager function in test helpers.

This function can be used to ensure that mocker objects
are restored and verified during usage if exceptions are
thrown while the mock object is being used.

Ensure it is used in the config drive test when multiple
mock objects are being created and restored.

758. By Vlastimil Holer

Allow 'sr0' to be specified as a device for mounts

Previously cloud-config to get a '/dev/sr0' entry written to /etc/fstab
would have had to have the full /dev/sr0. This change allows cloud-config
to reference it without the '/dev/' prefix. Like:
 | mounts:
 | - [ sr0, /media/sr0 ]

757. By Gerard Dethier

DataSourceCloudStack: fallback to default route if no virtual router found

Changes in revision 753 broke cloud-init on ubuntu, as it has a different
dhclient directory than Fedora where the change was developed and tested.

This change does 2 things:
 * searches multiple directories (including /var/lib/dhcp) for the lease
 * adds a fallback to the old code path of choosing the default route
   as the virtual router if there were no virtual routers found in the
   lease files.

756. By Scott Moser

fix 'lock_password' for cloud-config user setup

This simiplifies the logic, by just making it independent of 'system'.

755. By Joshua Harlow

fix redaction of password field in log (LP: #1096417)

We were trying to avoid the user's password being written to the log, but that
was looking for the wrong option.

754. By Scott Moser

add ChangeLog entry for previous commit

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
This branch contains Public information 
Everyone can see this information.