summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-09-09Merge branch 'master' into ubuntu/xenialScott Moser
2016-09-09update changelogScott Moser
2016-09-09debian/control: fix missing dependency on python3-serialScott Moser
Add python3-serial to Depends. This is not resolved by ${python3:Depends} because it is commented out in requirements.txt. pyserial is problematic both because it is not pure python and because it is not available for python2.6. The commit 26ea813d2 removed pyserial and thus lost the automatic dependency. This makes SmartOS datasource work.
2016-09-09systemd: Better support package and upgrade.Scott Moser
In systemd, package installation before the system is fully booted (systemctl is-system-running == starting) may result in the package not being started. Upgrade (package_upgrade: true) can also cause failure if that is done during systemd boot. The solution here is: a.) move config modules that do or may do package installation to 'final_modules'. That list is: - snappy - package-update-upgrade-install - fan - landscape - lxd - puppet - chef - salt-minion - mcollective b.) move cloud-final.service to run as 'Type=idle' LP: #1576692, #1621336
2016-09-08tests: cleanup tempdirs in apt_source testsScott Moser
test_handler_apt_source_v3.py was not cleaning up all its tmp dirs.
2016-09-08apt config conversion: treat empty string as not provided.Scott Moser
Old behavior allowed a user to provide: apt_mirror: "" And that was the same as: apt_mirror: null and the same as having not specified apt_mirror at all. This maintains that behavior for all old string values. LP: #1621180
2016-09-02Fix typo in default keys for phone_homeRoland Sommer
This should be fqdn, not fdqn. LP: #1607810
2016-09-01salt minion: update default pki directory for newer salt minion.Scott Moser
Assuming that the installed package creates the directory /etc/salt/pki/minion (ubuntu yakkety does), this will pick that directory for the pki_dir default. If it does not exist, then it will maintain the old directory. LP: #1609899
2016-08-31bddeb: add --release flag to specify the release in changelog.Scott Moser
./packages/bddeb --release=xenial that will get you a changelog with Distribution of xenial rather than UNRELEASED.
2016-08-26apt-config: allow both old and new format to be present.Christian Ehrhardt
This allows both v1/2 and and v3 formats to exist in config. If both are present, then prefer v3. If values are not the same then a ValueError is raised. LP: #1616831
2016-08-25python2.6: fix dict comprehension usage in _lsb_release.Joshua Harlow
This syntax doesn't work in python 2.6
2016-08-23Import version 0.7.7~bzr1256-0ubuntu1~16.04.1Scott Moser
Imported using git-dsc-commit.
2016-08-23merge trunk at 0.7.7~bzr1256Scott Moser
2016-08-23Import version 0.7.7~bzr1246-0ubuntu1~16.04.1Scott Moser
Imported using git-dsc-commit.
2016-08-23merge trunk at 0.7.7~bzr1246Scott Moser
2016-08-23Import version 0.7.7~bzr1245-0ubuntu1~16.04.1Scott Moser
Imported using git-dsc-commit.
2016-08-23merge trunk at 0.7.7~bzr1245Scott Moser
2016-08-23Import version 0.7.7~bzr1212-0ubuntu1Scott Moser
Imported using git-dsc-commit.
2016-08-23merge trunk at 0.7.7~bzr1212Scott Moser
2016-08-23Import version 0.7.7~bzr1209-0ubuntu1Scott Moser
Imported using git-dsc-commit.
2016-08-23merge trunk at 0.7.7~bzr1209Scott Moser
2016-08-23Import version 0.7.7~bzr1208-0ubuntu1Scott Moser
Imported using git-dsc-commit.
2016-08-23merge trunk at 0.7.7~bzr1208Scott Moser
2016-08-23Import version 0.7.7~bzr1200-0ubuntu1Scott Moser
Imported using git-dsc-commit.
2016-08-23merge trunk at 0.7.7~bzr1200Scott Moser
2016-08-23Import version 0.7.7~bzr1192-0ubuntu2Scott Moser
Imported using git-dsc-commit.
2016-08-23Import version 0.7.7~bzr1192-0ubuntu1Scott Moser
Imported using git-dsc-commit.
2016-08-23merge trunk at 0.7.7~bzr1192Scott Moser
2016-08-23Import version 0.7.7~bzr1189-0ubuntu1Scott Moser
Imported using git-dsc-commit.
2016-08-23merge trunk at 0.7.7~bzr1189Scott Moser
2016-08-23Import version 0.7.7~bzr1182-0ubuntu1Scott Moser
Imported using git-dsc-commit.
2016-08-23merge trunk at 0.7.7~bzr1182Scott Moser
2016-08-23Import version 0.7.7~bzr1176-0ubuntu1Scott Moser
Imported using git-dsc-commit.
2016-08-23merge trunk at 0.7.7~bzr1176Scott Moser
2016-08-23Import version 0.7.7~bzr1160-0ubuntu1Scott Moser
Imported using git-dsc-commit.
2016-08-23merge trunk at 0.7.7~bzr1160Scott Moser
2016-08-23Import version 0.7.7~bzr1156-0ubuntu2Scott Moser
Imported using git-dsc-commit.
2016-08-23Import version 0.7.7~bzr1156-0ubuntu1Scott Moser
Imported using git-dsc-commit.
2016-08-23merge trunk at 0.7.7~bzr1156Scott Moser
2016-08-23Import version 0.7.7~bzr1155-0ubuntu1Scott Moser
Imported using git-dsc-commit.
2016-08-23merge trunk at 0.7.7~bzr1155Scott Moser
2016-08-23Import version 0.7.7~bzr1154-0ubuntu1Scott Moser
Imported using git-dsc-commit.
2016-08-23Add a module that can configure spacewalk.Joshua Harlow
Spacewalk is used by some peopel to manage connections into redhat package management systems and kickstart and various other tasks, so having a system be able to do the needed tasks on first boot to integrate with that system would be very useful (to some). See: https://fedorahosted.org/spacewalk/
2016-08-23add install option for openrcMatthew Thode
Adds an install option for for OpenRC init scripts. I've also restricted installing tests more correctly. Also, don't hardcode the path to ip (/bin/ip on gentoo).
2016-08-23Generate a dummy bond name for OpenStackScott Moser
The OpenStack network_data.json does not provide a name for bond links. This change makes it so a dummy one is generated and used instead to satisfy cloud-init which does require one. In order to write the correct link (underlying 'link' names) for the bonds, we maintain a list of info by ids so we can easily get the right device name. Also: * add a vlan test case that similarly references an id rather than name. * make bond interfaces auto LP: #1605749
2016-08-22network: fix get_interface_mac for bond slave, read_sys_net for ENOTDIRScott Moser
When using get_interface_mac, on a system with bond slaves, it would return the bond_master's address. That isn't expected, and causes problems in a caller like get_interfaces_by_mac which would then seem to find duplicate macs on the system. Additionally, in read_sys_net catch a errno.ENOTDIR error as ENOENT. Opening a path as a file that has <existing_file>/anything will will raise ENOTDIR rather than ENOENT. This handles that case in read_sys_net as a if the file did not exist.
2016-08-22azure dhclient-hook cleanupsScott Moser
This adds some function to the generator to maintain the presense of a flag file '/run/cloud-init/enabled' indicating that cloud-init is enabled. Then, only run the dhclient hooks if on Azure and cloud-init is enabled. The test for is_azure currently only checks to see that the board vendor is Microsoft, not actually that we are on azure. Running should not be harmful anywhere, other than slowing down dhclient. The value of this additional code is that then dhclient having run does not task the system with the load of cloud-init. Additionally, some changes to config are done here. * rename 'dhclient_leases' to 'dhclient_lease_file' * move that to the datasource config (datasource/Azure/dhclient_lease_file) Also, it removes the config in config/cloud.cfg that set agent_command to __builtin__. This means that by default cloud-init still needs the agent installed. The suggested follow-on improvement is to use __builtin__ if there is no walinux-agent installed.
2016-08-22Minor cleanups to atomic_helper and add unit tests.Scott Moser
Change atomic_helper.write_file to have same same signature as write_file. Add some simple unit tests for atomic_helper.
2016-08-22Fix Gentoo net config generationMatthew Thode
This gets Gentoo work on simple configs with static IPs or DHCP on physical interfaces. This gets Gentoo bootable again.
2016-08-18distros: fix get_primary_arch method use of os.unameAndrew Jorgensen
os.uname is a method, not a property.