summaryrefslogtreecommitdiff
path: root/cloudinit/sources
AgeCommit message (Collapse)Author
2012-06-23Fix a bunch of == None casesharlowja
2012-06-21Ensure that calling the urls happens in a specified order.Joshua Harlow
2012-06-211. Move all info() logging methods to debug() harlowja
2. Adjust comment on sources list from depends 3. For the /etc/timezone 'writing', add a header that says created by cloud-init
2012-06-201. Add an importer function that will search for a given module in a set of ↵Joshua Harlow
search module 'prefixes' that also has a potential set of required attributes. 2. Use this new importer to find the distro class, the userdata handler modules, the config modules and the datasource modules, if none can be found error out accordingly.
2012-06-20Massive pylint + pep8 fixups!Joshua Harlow
2012-06-20Change to import error instead of runtime error.Joshua Harlow
2012-06-19Fix pylint line length issues.Joshua Harlow
2012-06-19Cleanup no datasource exception to use cleaner csv list.Joshua Harlow
2012-06-19Cleanup some of the logging (its a little to verbose).Joshua Harlow
2012-06-19Syntax + comment cleanups.Joshua Harlow
2012-06-19Add the ability to check if the metadata service is up before actually using it.Joshua Harlow
1. This is very useful for testing (until we have boto timeout in a more sane manner)
2012-06-181. Fixed datasource construction (switched param order)Joshua Harlow
2. Fixed up importing of modules to handle the failure case better a. Also realized that using the import class we don't have to reimport a module via getattr, so removed that.
2012-06-18Fixed the constructor paramsJoshua Harlow
2012-06-171. Add a url response class that urlreading now returns (instead of a tuple). harlowja
a. This allows for more properties to be added as needed in the future, instead of being very restrictive. 2. Fix up all uses of the url reading to now use this new response object. 3. Also fixup user data including, such that if no response actual occurs the url content is not further processed.
2012-06-16Allow the user data processor to be passed in.Joshua Harlow
This could and should be useful for unit testing.
2012-06-16For the different base classes, ensure we are using the 'abc' module + ↵Joshua Harlow
appropriate annotations + metaclasses.
2012-06-16Fix pylint line length to big issue.Joshua Harlow
2012-06-16Some simple fixes that will make the python 3 translation easierJoshua Harlow
2012-06-16Adjust the usage of map items() to iteritems() which will help later ↵Joshua Harlow
translation to python 3.
2012-06-16Adjust the usage of map items() to iteritems() which will help later ↵Joshua Harlow
translation to python 3.
2012-06-16Adjust the usage of map items() to iteritems() which will help later ↵Joshua Harlow
translation to python 3.
2012-06-15Fixups to ensure that pylint does not find anything major wrong.Joshua Harlow
2012-06-15Complete initial cleanup for refactoring/rework.Joshua Harlow
Some of the cleanups were the following 1. Using standard (logged) utility functions for sub process work, writing, reading files, and other file system/operating system options 2. Having distrobutions impelement there own subclasses to handle system specifics (if applicable) 3. Having a cloud wrapper that provides just the functionality we want to expose (cloud.py) 4. Using a path class instead of globals for all cloud init paths (it is configured via config) 5. Removal of as much shared global state as possible (there should be none, minus a set of constants) 6. Other various cleanups that remove transforms/handlers/modules from reading/writing/chmoding there own files. a. They should be using util functions to take advantage of the logging that is now enabled in those util functions (very useful for debugging) 7. Urls being read and checked from a single module that serves this and only this purpose (+1 for code organization) 8. Updates to log whenever a transform decides not to run 9. Ensure whenever a exception is thrown (and possibly captured) that the util.logexc function is called a. For debugging, tracing this is important to not just drop them on the floor. 10. Code shuffling into utils.py where it makes sense (and where it could serve a benefit for other code now or in the future)
2012-06-15Complete cleanup for refactoring/rework that makes it comptabile with the ↵Joshua Harlow
new structure, using unified util functions, logging and eliminating code and calls.
2012-06-15Update applying network esttings to use the distro function to handle this, ↵Joshua Harlow
use logexc instead of log.exception
2012-06-15Split up time calculation, use logexc instead of log.exceptionJoshua Harlow
2012-06-11Fix this up to work with new utils/logging/datasource...Joshua Harlow
2012-06-11Add more logging in onto what is being searched for.Joshua Harlow
2012-06-11Fix this up to use the new datasource class hierachy, as well as other new ↵Joshua Harlow
objects/logging added...
2012-06-09Initial cleanupsJoshua Harlow
2012-06-08Remove is ipv4 function from here and move to utils + move exceptions to ↵Joshua Harlow
here as well as other find datasource function.
2012-06-07Move the contents of this file to __init__ in sources.Joshua Harlow
2012-06-071. Move cloud init and cloud config objects to a cloud file.Joshua Harlow
2. Cleanup main __init__ file with shell additions, constants usage, os.path usage.
2012-06-07Darn it. Those shouldn't be there!Joshua Harlow