summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-03-03Makefile: add make check target to run pep8, pyflakes, unittestsRyan Harper
Run a check of pep8, pyflakes (py27), pyflakes3 (py34), and use nosetest and nosetest3 to run unittests. We should pass all of these.
2016-03-02Fix logic error in lxd config checkRyan Harper
If the cloud-config does not contain and lxd dictionary then we should not attempt to install the package. Change the latter half of the check to negate the dictionary type check. This fix prevents us from always installing lxd, rather than only installing when we have a config. Fix pyflakes check on init_cfg dict error message.
2016-02-25lxd: add support for setting up lxd using 'lxd init'Scott Moser
If lxd key is present in cfg, then run 'lxd init' with values from the 'init' entry in lxd configuration as flags.
2016-02-25merge with trunkScott Moser
2016-02-25minor cleanupsScott Moser
2016-02-16Handle escaped quotes in WALinuxAgentShim.find_endpointScott Moser
LP: #1488891
2016-02-15Correct lock_passwd in docsDaniel Watkins
2016-02-04Merge from trunk and resolve text conflict in ChangeLogWesley Wiedenmeier
2016-02-04Use mock in test_handler_lxd.py and add test for lxd installationWesley Wiedenmeier
2016-02-04 - Ensure that lxd is installed before running lxd init.Wesley Wiedenmeier
- Handle init cfg separately from main cfg to allow multiple sections under lxd config to be handled independantly. - Check for properly formatted lxd init cfg
2016-02-04Added example cc_lxd configWesley Wiedenmeier
2016-02-04systemd: support using systemd-detect-virt to detect containerScott Moser
running-in-container is a wrapper around systemd-detect-virt -c, and was removed from ubuntu. This adjusts to run if only running-in-container is available. LP: #1539016
2016-02-04SmartOS: Add support for Joyent LX-Brand Zones Scott Moser
LX-brand zones on Joyent's SmartOS use a different metadata source (socket file) than the KVM-based SmartOS virtualization (serial port). This patch adds support for recognizing the different flavors of virtualization on SmartOS and setting up a metadata source file object. After the file object is created, the rest of the code for the datasource LP: #1540965
2016-02-04tox: use test-requirements.txt and requirements.txtScott Moser
This just allows stops us from repeating ourselves in tox.ini from what is in test-requirements and requirements.txt.
2016-02-04SmartOS: Add support for Joyent LX-Brand Zones (LP: #1540965)Robert Jennings
LX-brand zones on Joyent's SmartOS use a different metadata source (socket file) than the KVM-based SmartOS virtualization (serial port). This patch adds support for recognizing the different flavors of virtualization on SmartOS and setting up a metadata source file object. After the file object is created, the rest of the code for the datasource LP: #1540965
2016-02-03lxd: add support for setting up lxd using 'lxd init'Wesley Wiedenmeier
If lxd key is present in cfg, then run 'lxd init' with values from the 'init' entry in lxd configuration as flags.
2016-01-29Correct lock_passwd in docsRobert Jennings
2016-01-28Use systemd-detect-virt to detect a container.Martin Pitt
running-in-container is an Ubuntu-ism and going away. LP: #1539016
2015-11-30systemd/power_state: fix power_state when cloud-final exited failureScott Moser
if a runcmd exited failure, then power_state would not work. This was because systemd was killing off subprocesses, and cloud-init implemented power off with a subprocess that waited for the parent to exit. LP: #1449318
2015-11-18Azure: get instance id from dmi instead of SharedConfigScott Moser
Replace the use of SharedConfig.xml in both the walinuxagent case, and the case where we communicate with the Azure fabric ourselves. The instance id present in the dmi data is unfortunately different that that in the SharedConfig. This means that something needs to handle migration so that a reboot after newer version is installed will not re-run first instance things. In Ubuntu this is being handled in packaging. LP: #1506187
2015-11-09cc_mounts: use 'nofail' if system uses systemd. (LP: #1514485)Scott Moser
'nofail' is the systemd equivalent of the mountall/upstart 'nobootwait'. So, if a system uses systemd, then use 'nofail' in /etc/fstab for ephemeral mounts.
2015-11-09With Ubuntu 15.10, "nobootwait" != "nofail". The "nobootwait" was an UbuntuBen Howard
specific option. This change was dropped in 15.10 (LP: #1514485).
2015-11-05ubuntu templates: enable backportsScott Moser
Previous commit intended to enable backports, but failed to do so.
2015-11-03Ubuntu templates: make sources.list consistent with ISO installs.Scott Moser
This modifies a designed decision to have trimmer sources.list than one would find on a server iso install. Specifically, here we now enable: restricted and multiverse and backports. LP: #1177432
2015-11-02Fixed per MP reviewBen Howard
2015-11-02Enable backports source pockets for Ubuntu archives (LP: #1177432).Ben Howard
2015-10-30Use DMI data to find Azure instance IDs.Daniel Watkins
This replaces the use of SharedConfig.xml in both the walinuxagent case, and the case where we communicate with the Azure fabric ourselves.
2015-10-20AltCloud: Remove --quiet option from udevadm callDaniel Watkins
2015-10-20Remove --quiet option from udevadm in AltCloudDarren Worrall
--quiet is no longer supported LP: #1507526
2015-10-14azure: support extracting SSH key values from ovf-env.xmlScott Moser
Azure has or will be offering shortly the ability to directly define the SSH key value instead of a fingerprint in the ovf-env.xml file. This patch favors defined SSH keys over the fingerprint method (LP: #1506244).
2015-10-14AZURE: support extracting SSH key values from ovf-env.xmlBen Howard
Azure has or will be offering shortly the ability to directly define the SSH key value instead of a fingerprint in the ovf-env.xml file. This patch favors defined SSH keys over the fingerprint method (LP: #1506244).
2015-10-09support configuring and installing the Ubuntu fan driverScott Moser
#cloud-config fan: config: | # fan 240 10.0.0.0/8 eth0/16 dhcp 10.0.0.0/8 eth1/16 dhcp off # fan 241 241.0.0.0/8 eth0/16 dhcp config_path: /etc/network/fan LP: #1504604
2015-10-09support configuring and installing the Ubuntu fan driverScott Moser
#cloud-config fan: config: | # fan 240 10.0.0.0/8 eth0/16 dhcp 10.0.0.0/8 eth1/16 dhcp off # fan 241 241.0.0.0/8 eth0/16 dhcp config_path: /etc/network/fan LP: #1504604
2015-10-09Refactor tests to test helper method directly, and remove need for test helper.Daniel Watkins
2015-10-09Refactor WALinuxAgentShim.find_endpoint to use a helper method for IP ↵Daniel Watkins
address unpacking.
2015-10-09Convert test helper to staticmethod.Daniel Watkins
2015-10-09Handle colons in packed strings in WALinuxAgentShim.find_endpoint.Daniel Watkins
This fixes bug 1488896.
2015-10-09Handle escaped quotes in WALinuxAgentShim.find_endpoint.Daniel Watkins
This fixes bug 1488891.
2015-09-29MAAS: fix issues with url_helper and oauth moduleScott Moser
This would cause problems in the event that we actually had a bad clock. We add a retry in the main (for test) also, to ensure that the oauth timestamp fix gets in place. LP: #1499869
2015-09-17webhook: report with json dataScott Moser
the handler was passing a dictionary to readurl which was then passing that on to requests.request as 'data'. the requests library would urlencode that, but we want the json data posted instead. LP: #1496960
2015-09-15Change Snappy SSH enabled default from false to 'auto' (LP: #1494816)Ben Howard
2015-09-11snappy: enable ssh on snappy if ssh keys are provided or password authScott Moser
If the user provides ssh keys or requests password auth in their user-data then we will enable ssh by default. LP: #1494816
2015-09-11cc_snappy: update doc string, change default to 'auto'Scott Moser
2015-09-11Refinements on SSH enablementBen Howard
2015-09-11Ubuntu Snappy: conditionally enable SSH on SnappyBen Howard
When a user provides authentication tokens, enable SSH unless SSH has been explicitly disabled (LP: #1494816).
2015-09-08 power_state: support 'condition' argumentScott Moser
if 'condition' is provided to config in power_state, then consult it before powering off. This allows the user to shut down only if a condition is met, and leave the system in a debuggable state otherwise. An example is as simple as: power_state: mode: poweroff condition: ['sh', '-c', '[ -f /disable-poweroff ]']
2015-09-08NoCloud: fix consumption of vendor-dataScott Moser
the content of vendordata was was being assigned to vendordata, rather than vendordata_raw. The result was that it is not processed for includes or part handlers or other things as it is in other datasources. LP: #1493453
2015-09-03reporting/events: catch a final remaining incorrect use of 'reporting'Scott Moser
2015-09-02sync curtin reporting changes back to cloud-initScott Moser
this pulls in the reporting framework that we'd been working on in curtin back to cloud-init.
2015-09-02fix test_as_dictScott Moser