Created by Scott Moser and last modified
Get this branch:
bzr branch lp:~smoser/cloud-init/trunk.1536706
Only Scott Moser can upload to this branch. If you are Scott Moser please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Scott Moser

Recent revisions

1202. By Scott Moser on 2016-04-06

fix tests and hopefully actually work

1201. By Scott Moser on 2016-04-06

rh_subscription: only check subscription if configured

The rh_subscription config module would attempt to connect to the RHN servers
even when no config is provided.
Now, instead check to make sure that valid config is provided first.
That consists of username and password or a activation key.

1200. By Scott Moser on 2016-04-06

fix adding of users when no group is specified

revision 1179 regressed adding a user that did not have a 'groups'
entry present in cloud-config.
This handles that correctly, making 'add_user' able to take:
  a.) groups="group1,group2"
  b.) groups=["group1", "group2"]
  c.) groups=None
  d.) no groups parameter

Additionally, if a primary group is specified it will also be created.

End result is that this is functional:
 groups: ["sudo"]
   - name: sysop
     primary-group: sysop
     groups: "sudo,adm"
     shell: /bin/bash
   - name: user1
     primary-group: users
     groups: sudo
   - name: foo1
   - name: bar
     gecos: Bar
     groups: ["bargroup"]

Resulting in:
 $ groups sysop
 sysop : sysop adm sudo
 $ groups user1
 user1 : users sudo
 $ groups foo1
 foo1 : foo1
 $ groups bar
 bar : bar bargroup

1199. By Scott Moser on 2016-04-06

write_files: fix decompression of content

When provided with gzipped data, an exception would be raised
because of a conversion to string.

This fixes the issue and adds a test for write_files.

1198. By Scott Moser on 2016-04-04

systemd: do not specify After of obsolete syslog.target (LP: #1536964)

syslog.target is obsolete in debian, this fixes a lintian warning.

1197. By Scott Moser on 2016-04-04

chef: fix chef installation from gems

Installation from gems was previously always broken. This
fixes the order or parameters calling install_chef_from_gems.

1196. By Scott Moser on 2016-04-04

disk_setup: correctly send --force to mkfs on block devices

Send the --force flag to mkfs or other filesystems when target
is a block device. This fixes a general code flow issue where
we were setting the --force flag.

1195. By Scott Moser on 2016-04-04

locale: list unsupported environment settings in warning

Now if you log in with unsupported locale, you'll see:
 The unknown environment variables are:
   LC_CTYPE=en_GB.utf-8 LC_MESSAGES=en_GB.utf-8 LC_ALL=en_GB.utf-8

1194. By Scott Moser on 2016-04-04

DataSource: set ds_cfg to be a dictionary

if the Datasource does not have an entry in config, then
set it to be a empty dictionary rather than None.
Also remove places that did this elsewhere.

1193. By Scott Moser on 2016-04-04

FreeBSD: improvements for packages, setting password and timezone

 - Implement set_passwd
 - Implement set_timezone
 - support installing packages
 - Use /bin/tcsh as default user shell (FreeBSD default)
 - Change default username to freebsd
 - Enable set-passwords, package-update-upgrade-install and timezone modules

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.