summaryrefslogtreecommitdiff
path: root/cloudinit/transforms
AgeCommit message (Collapse)Author
2012-06-20Always provide a path here, in this case the root pathharlowja
2012-06-20Uppercase constants, remove need to use cloud.paths.join since scripts_d ↵harlowja
should already be modified
2012-06-19More path joinings found + update in logging of when we translate a pathJoshua Harlow
2012-06-19Fix logging message spellingJoshua Harlow
2012-06-19More paths missed (durn), but now fixed.Joshua Harlow
2012-06-19Make most of all the places use the paths join() function so that testing ↵Joshua Harlow
with non-real read/write paths is easier.
2012-06-19Use the given module as the root module for the given mod to be used from.Joshua Harlow
2012-06-18Removed this for now.Joshua 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-161. Fix the welcome_msg name to welcome_message (oops)Joshua Harlow
2. Adjust that name in the cloud.cfg 3. Add in the ability to specify a dictionary that is the transform instead of a list which makes the config look nicer when users have custom transforms with arguments and such.
2012-06-16Match the transform named final_msg by adding a _msg to the transform name.Joshua Harlow
2012-06-16Remove default since it will never be called that way and apply default ↵Joshua Harlow
since its not currently being called that way
2012-06-16Remove the need to have transforms start with "cc_".Joshua Harlow
1. Just let them have no prefix (ie blank) unless this isn't wanted later.
2012-06-161. Add a constant for the "cc_" prefix, so that it can be easily changed if ↵Joshua Harlow
desired.
2012-06-161. Change to fixup transform/form transform nameJoshua Harlow
2. Check lowercase name against .py instead of unknown case.
2012-06-161. Add comment as to what http proxy setting meansJoshua Harlow
2. Adjust so file contents will join with a string instead of appending to something that might not be a string
2012-06-16Clean up this log statement to be more useful.Joshua Harlow
2012-06-16Cleanups around the usage of the apt pipe line value.Joshua Harlow
1. Add a comment onto why this is done 2. Fix the usage of range to search the list and not a string 3. Make the filecontents template just one multiline variable.
2012-06-16Some simple fixes that will make the python 3 translation easierJoshua Harlow
2012-06-16Only set an env variable for instance id if we actually got one.Joshua Harlow
2012-06-15Fixups to ensure that pylint does not find anything major wrong.Joshua Harlow
2012-06-15Update comment about distro handling its timezoneJoshua 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-15Added a new transform that can be used to show and initial welcome message ↵Joshua Harlow
to users. It is similar to the final msg one, but is used at the start of cloud init instead.
2012-06-15Moved the handlers from a user_data directory to a handler directory.Joshua Harlow