summaryrefslogtreecommitdiff
path: root/cloudinit/sources
AgeCommit message (Collapse)Author
2015-01-06tools/run-pep8: remove leading ',' fed to --ignoreScott Moser
--ignore was being called with ',E121,E...' rather than 'E121,E...'. that resulted in odd behavior, missing the pep8 errors that are fixed here.
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-17Explicitly import only types being comparedNeal Shrader
2014-10-17Correct handling of single/multiple ssh keysNeal Shrader
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-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-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.
2014-09-04Fix a couple more cases of exceptional logsJoshua Harlow
2014-09-04Reduce logging levels and fix broken call to _fetch_available_versionsJoshua Harlow
2014-09-03improved logging of errors around module loading/searchingScott Moser
2014-09-02Fix logic statement and pep8 issueJoshua Harlow
2014-09-02Remove/adjust the verbose 'failed at attempted import of' logJoshua Harlow
Instead of using this log (which really isn't a failure) we should instead of just return the looked up locations and then if there really is an error the caller can handle the usage of the looked up locations as they choose fit.
2014-08-27no functional changes, but some minor changes.Scott Moser
2014-08-27Fix retry cb to reflect what used to existJoshua Harlow
2014-08-27Fixed more of the slowness around fetching and retryingJoshua Harlow
2014-08-26Show the available versions in the debug log messageJoshua Harlow
2014-08-26Log a warning when unable to fetch the openstack versionsJoshua Harlow
2014-08-26Just use os.path.exists directlyJoshua Harlow
2014-08-26Add logging around failure to read optional/mandatory pathsJoshua Harlow
2014-08-26Refactor vendor_data handlingJay Faulkner
vendor_data is guaranteed to be a dict if it exists; if it doesn't exist ensure it's represented by an empty dict to avoid checking it to see if it's a dict.
2014-08-26Add failback for older Openstack configdrive versionsJay Faulkner
- Also utilizing the constants defined in cloudinit/sources/helpers/openstack.py for configdrive versions
2014-08-26Optimize away most of the path_exists checksJoshua Harlow
2014-08-26further remove evidence of pylint.Scott Moser
This just removes comments '# pylint:' things and other code remnents of pylint.
2014-08-26Upgrade configdrive versionJay Faulkner
- Upgrade configdrive to use 2013-10-17 - Fix issue with vendor_data.json parsing Co-Authored-By: Paul Querna <pquerna@apache.org>
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-21use url_helper to combine urlScott Moser
This seems cleaner, to avoid duplicate '/' being added.
2014-08-18fix: Updated some syntax to be pep8 compliantJoseph Bajin
2014-08-18new: Added FreeBSD support to ConfigDriveJoseph Bajin
2014-06-02SmartOS test: do not require existance of /dev/ttyS1.Scott Moser
LP: #1316597
2014-05-30CloudSigma: only poll on serial device after dmidecode check.Kiril Vladimiroff
On systems with a ttyS1 and nothing attached, the read attempts that the cloud sigma datasource would do would block. Also, Add timeouts for reading/writting from/to the serial console LP: #1316475
2014-05-30minor cleanups.Scott Moser
* do not run dmidecode on arm. * line length * comment that 60 second time out is expected
2014-05-30Use dmidecode to detect if cloud-init runs in CloudSigma's infrastructureKiril Vladimiroff
2014-05-27Enable vendordata for CloudSigma (LP: #1303986)Ben Howard
2014-03-27change 'default' encoding to be "None"Scott Moser
Instead of just trying to see if userdata decodes as the indication that it should be encoded, the user must explicitly set this. The "just try it" will fail in the case where the user had other use of user-data and wanted a blob of data to go through unrecognized by cloud-init. In cases where there can be mistake in automatic behavior, and some users may be relaying on old behavior, its best to just require explicit use.
2014-03-25Added base64 decoding of user data for OpenNebula.Enol Fernandez
2014-03-20NoCloud: fix broken seedfrom on the kernel command lineScott Moser
This was broken in the VendorData add. LP: #1295223