summaryrefslogtreecommitdiff
path: root/cloudinit
AgeCommit message (Collapse)Author
2014-10-23Show the handle method for the cc_ubuntu_init_switch moduleJoshua Harlow
2014-10-23Add a link to the module codeJoshua Harlow
2014-10-23Not that log_cfgs are not shown.Joshua Harlow
2014-10-23Add the beginnings of module documentationJoshua Harlow
2014-10-20fix for rhel7 by using 'uses_systemd' to detect upstart/systemdScott Moser
2014-10-20Add Digital Ocean Datasource.Scott Moser
This adds a DataSource for DigitalOcean's metadata service. The service is documented at https://developers.digitalocean.com/metadata/ .
2014-10-20open 0.7.7Scott Moser
2014-10-17Explicitly import only types being comparedNeal Shrader
2014-10-17Correct handling of single/multiple ssh keysNeal Shrader
2014-10-17Expose uses_systemd as a distro functionJoshua Harlow
Without this change the tests are currently failing on rhel7 since a location where a hostname file is written no longer exists at that location when systemd is active. To avoid this allow the test to inspect if the distro has systemd enabled and avoid testing the file when systemd is being used so the test passes. We likely need to figure out a better way to test features that no longer exist as files but exist as commands with systemd in general.
2014-10-16Use existing metadata crawler to populate datasourceNeal Shrader
2014-10-16Make metadata timeout/retries configurableNeal Shrader
Defaulting to only trying once.
2014-10-16Add DigitalOcean DataSourceNeal Shrader
The DigitalOcean metadata service is an AWS-style service available over HTTP via the link local address 169.254.169.254. The specifics of the API are documented at: https://developers.digitalocean.com/metadata/
2014-10-08fix: Use continue to skip inside a loop.Harm Weites
2014-10-08fix: Take care of FreeBSD nic devicenames since they differ dependingHarm Weites
on the platform involved. Xen/KVM (Azure?) use different drivers, which results in different device names.
2014-10-02freebsd: Use the proper virtio FreeBSD network interface name.Scott Moser
2014-10-01return only the filename, as it might be all knownScott Moser
2014-10-01message clean upScott Moser
2014-10-01remove debug printScott Moser
2014-10-01fixScott Moser
2014-10-01check for existing file in /proc/swaps to be safe.Scott Moser
2014-10-01pyflakesScott Moser
2014-10-01handle non-dictionary 'swap' inputScott Moser
2014-10-01nice log messageScott Moser
2014-10-01add debug statement for recommendedScott Moser
2014-10-01maxsize must be 'None' otherwise it is zero, and no swap allowedScott Moser
2014-09-30support human2bytes, separate handling out to methodScott Moser
2014-09-30add code for setting up swap fileScott Moser
2014-09-29further platform cleanupScott Moser
2014-09-29fix re-use of 'platform' in local scopeScott Moser
2014-09-22support 'mtype' as a list, and fix up freebsd mount typesScott Moser
this supports a list of input, and cleans up that list for the platform specific mount types. Basically, mtype = None means 'mount -t auto' or the equivalent for the platform. and 'iso9660' means "iso type".
2014-09-22merge from trunkScott Moser
2014-09-17MetadataMaterializer support custom leaf decoderScott Moser
This allows the caller to supply their own leaf decoder, which will then be in charge of translating the content of the url.
2014-09-17cc_grub_dpkg consider /dev/xvda as a candidate for grub installationScott Moser
HVM instances on EC2 have grub on /dev/xvda. The bug here resulted in a prompt on grub update. LP: #1336855
2014-09-15merge from trunkScott Moser
2014-09-15Remove pylint: linesJay Faulkner
2014-09-15Fix bug 1338614Jay Faulkner
util.log_time()'s return value was what was being sent to fork_cb. This means the resize ran in parallel and the call to fork_cb threw a traceback (trying to call Nonetype). By permitting fork_cb to take kwargs, and using the correct method syntax, this now forks and resizes in the background as appropriate.
2014-09-12netinfo: log error on failure of route infoScott Moser
2014-09-11when loading vendordata allow it to be string or listScott Moser
2014-09-10Openstack: Vendor data cleanupScott Moser
For now, this vendor data handling is just added to openstack. However, in an effort to allow sanely handling of multi-part vendor-data that is namespaced, we add openstack.convert_vendordata_json . That basically takes whatever was loaded from vendordata and takes the 'cloud-init' key if it is a dict. This way the author can namespace cloud-init, basically telling it to ignore everything else.
2014-09-10OpenStack: search less urls to determine if MD service is there.Scott Moser
We were checking for presense of meta_data.json for each supported metadata version. Instead just check that /openstack is there. This reduces the time to check on EC2 or any other cloud.
2014-09-10drop version= from readersScott Moser
instead of taking a version that they should look for, the readers now just select the highest supported version. definitely a use case later for having version= but nothing is using it now.
2014-09-10fix log messageScott Moser
2014-09-10make BaseReader select latest supported versionScott Moser
2014-09-10merge from trunkScott Moser
2014-09-10fix a bug, use a list instead of tuple for _versionsScott Moser
using tuple for _versions was just not necessary. fix reference to undefined os_versions.
2014-09-10log as warn if things are obviously wrongScott Moser
If something is broken as in a built in config, or code just broken, then logging warning during search for metadata is ok.
2014-09-10pyflakes fixes.Scott Moser
make pyflakes now passes.
2014-09-10Only use vendordata under cloud-init key for ConfigDriveJay Faulkner
This data will be treated the same as vendordata from other sources.
2014-09-08Update read_config_drive to use OS_VERSIONS tuple for readersJay Faulkner
Updated read_config_drive: removed the unused version kwarg, used the OS_VERSIONS tuple from the openstack helper to avoid hardcoding versions. Added a comment to the tuple in helpers/openstack.py asking for it to be kept in chronological order.