summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-08-26Remove pylintJay Faulkner
pylint was not passing, and per smoser in IRC pylint can/should be removed.
2014-08-26fix(pep8): Fix various pep8 violations and version-lock pep8Jay Faulkner
Fixed all complaints from running "make pep8". Also version locked pep8 in test-requirements.txt to ensure that pep8 requirements don't change without an explicit commit.
2014-08-26ssh_authkey_fingerprints: fix bug that prevented disabling the moduleScott Moser
Module intended to allow disabling by configuration, but that was broken. Now this allows: no_ssh_fingerprints = True LP: #1340903
2014-08-22ec2_utils.py: get_instance_metadata explicitly add trailing /Scott Moser
This change works around a bug in CloudStack's EC2 api implementation. That is filed upstream at [1]. The fix is safe for openstack and EC2 use cases as well. EC2 and OpenStacks' EC2 metadata service both return a list with access to either of: <url_base>/latest/meta-data <url_base>/latest/meta-data/ Additionally, the responses explicitly contain a trailing '/' for items that have a child. The ec2_utils code then just re-uses the trailng / there. Thus, only the top level request for 'meta-data/' needs the explicit fix. This also changes test cases. Those test cases failed without fixing them. If ever this regressed, those would fail again. -- [1] https://issues.apache.org/jira/browse/CLOUDSTACK-7405 LP: #1356855
2014-08-22docs: fix disk-setup to reference 'table_type'Scott Moser
LP: #1313114
2014-08-21fix rendering resolv.conf if no 'options' are providedScott Moser
this makes some changes to the cc_resolv_conf to make its generate_resolv_conf method more easily callable (for future test). Also sets it up so that 'options' is always defined when the template is rendered. LP: #1328953
2014-08-21settings: fix typo resulting in OpenStack and GCE not running.Scott Moser
LP: #1329583
2014-08-21systemd: make cloud-init block ssh service startup to guarantee keys existScott Moser
LP: #1333920
2014-08-21use url_helper to combine urlScott Moser
This seems cleaner, to avoid duplicate '/' being added.
2014-08-13remove un-used 'end' in result.json and status.jsonScott Moser
2014-07-31ubuntu-init-switch: support disabling of reboot, minor tweeks.Scott Moser
- modify timeout for ~60 seconds before going on. - allow specifying 'reboot' on 'cloud-init single' or in config. - use stdin for subprocess so log is less noisy. - reboot --force: this is required this early in boot for upstart and to my experience at this point always required for systemd
2014-07-31ubuntu-init-switch: fix for determining if systemdScott Moser
/run/systemd/ seems to exist even if systemd is not the init system. but /run/systemd/system/ only exists if it has been used as init.
2014-07-31add ubuntu-init-switch module for testing systemd.Scott Moser
The module is useful primarily for testing in Ubuntu's transition to systemd. It should be very harmless elsewhere as it defaults to doing nothing, and will only run if configured as 'ubuntu' distro *and* 'dpkg' is available.
2014-07-31exit and warn if no 'dpkg' (probably wrong distro)Scott Moser
2014-07-31add some doc to moduleScott Moser
2014-07-31fix path to systemdScott Moser
2014-07-31fix for config, allow specifying target for cloud-init --singleScott Moser
2014-07-31initial commit oif iniit_switchScott Moser
2014-07-29cc_power_state_change: improve TypeError messagesScott Moser
Include the value that was found to be invalid in the error message.
2014-07-29do not put comments in /etc/timezoneScott Moser
comments in /etc/timezone are not expected, and can cause problems if another tool tries to read it. LP: #1341710
2014-07-24SeLinuxGuard: remove invalid check for sanity around restorecon, fix testScott Moser
previous commit occurred because the selinux test was failing in a schroot where there was no /etc/hosts. Now, fix that test more correctly, and fix some bad assumptions in the SeLinuxGuard.
2014-07-24test: make selinux test skipped if selinux not available.Scott Moser
Also, in debian packaging depend on it (so it wont skip there).
2014-07-24change trunk packaging to be more modern.Scott Moser
use pybuild and drop cdbs. This also now runs test during that build and does then require build dependencies.
2014-07-24pep8 fixes (2 unrelated to this mp)Scott Moser
2014-07-24remove duplicate entry in control.inScott Moser
2014-07-24remove print statement from setup.pyScott Moser
2014-07-24merge from trunkScott Moser
2014-07-24bddeb: do not sign by defaultScott Moser
instead of making the common use case need to pass '-us -uc', make the less common use case pass '--sign'.
2014-07-24default bddeb to building both systemd and upstartScott Moser
2014-07-24change default path of systemd files to /lib/sysemd/system.Scott Moser
2014-07-24Merge systemd instlal paths.Dimitri John Ledkov
2014-07-24refactor redundant systemd_rootDimitri John Ledkov
2014-07-24Use pkg-configDimitri John Ledkov
2014-07-24Yeah, tests pass now.Dimitri John Ledkov
2014-07-23fix httpretty based test cases if http_proxy is set.Scott Moser
previously this would fail: http_proxy=http://foo.bar make test now it will pass. This works around a bug where httpretty is not able to patch http operations if http_proxy is set. https://github.com/gabrielfalcao/HTTPretty/issues/122
2014-07-23moreDimitri John Ledkov
2014-07-23use override targetsDimitri John Ledkov
2014-07-23moreDimitri John Ledkov
2014-07-23moreDimitri John Ledkov
2014-07-23moreDimitri John Ledkov
2014-07-23more import statementsDimitri John Ledkov
2014-07-23Use nosetests and absolute importsDimitri John Ledkov
2014-07-23Use testsDimitri John Ledkov
2014-07-23fix upDimitri John Ledkov
2014-07-23fix upsDimitri John Ledkov
2014-07-23refactorDimitri John Ledkov
2014-07-23Modernise packaging, and allow multiple init system installation (based on ↵Dimitri John Ledkov
smoser pastebins).
2014-07-23Make systemd root installation dir appropriate for debian-like systems, else ↵Dimitri John Ledkov
fallback to universally acceptable one.
2014-07-21Allow the usage of jinja2 templatesScott Moser
This drops the hard requirement on Cheetah. Jinja is a python 2.4->3.x compatible templating engine, allow its optional usage (until we can depreciate cheetah) by allowing for specifying a template file header that can define which template engine to use. If the template file header does not specify a renderer, then assume that that is cheetah. If cheetah is not available, then use a limited builtin renderer on a best effort basis, and log the warning. LP: #1219223
2014-07-21add package info for bddeb/brpmScott Moser