summaryrefslogtreecommitdiff
path: root/cloudinit
AgeCommit message (Collapse)Author
2012-06-16Revert that last change for this file, it should be a string that is ↵Joshua Harlow
non-empty so checking against that is fine
2012-06-16Check instance id against none, and not just empty/false/0/none since 0 or ↵Joshua Harlow
empty might be valid
2012-06-16Add comment as to why the cloud object/wrapper is usefulJoshua Harlow
2012-06-16Add comment as to why this cfg class is usefulJoshua Harlow
2012-06-16Pass in the datasource as a option, instead of the lower level instance id.Joshua Harlow
This allows for others to use datasource functions if they desire to instead of being restricted. +1 for future use ;)
2012-06-16When a handler version is set but to an unknown non-int convertable value, ↵Joshua Harlow
treat it as 1
2012-06-16They are handlers not mods ;)Joshua Harlow
2012-06-16If bringing up, return whatever the bring up result is, otherwise false.Joshua Harlow
2012-06-16Add comment as to why we need to check for none/empty later when fetching an ↵Joshua Harlow
ipath.
2012-06-16Have the top level distro class take paths instead of a runner.Joshua Harlow
This allows the following: 1. Let the ubuntu subclass construct its own runner with those paths (since not every subclass may want it) Adjust the base class + subclass to reflect this, adjust stages as well to reflect the constructor changes.
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-16Correct the mount options to use a comma separated list for the mount ↵Joshua Harlow
options (if any provided/selected)
2012-06-16After the moving of items to handler/__init__ reflect those references here.Joshua Harlow
2012-06-16Add a restricted set of characters which can be used in filenames when ↵Joshua Harlow
cleaning them.
2012-06-16Allow the user data processor to be passed in.Joshua Harlow
This could and should be useful for unit testing.
2012-06-16Move the helper functions for handlers to the handler __init__ instead of ↵Joshua Harlow
being in here. This class will now just contain user data parsing, leaving the handler running to happen elsewhere.
2012-06-16Make the top level __init__ similar to the other top level __inits__ where ↵Joshua Harlow
just util functions and base classes are defined there.
2012-06-16Content handlers does not need the paths variable anymore so removed that.Joshua Harlow
2012-06-16For the different base classes, ensure we are using the 'abc' module + ↵Joshua Harlow
appropriate annotations + metaclasses.
2012-06-16Unused import removedJoshua Harlow
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 handler instead of fixup moduleJoshua Harlow
2. Add logging of unknown content types + seperate payload logging detail message into a separate function.
2012-06-161. Change to fixup transform/form transform nameJoshua Harlow
2. Check lowercase name against .py instead of unknown case.
2012-06-16Rename to fixup transform/fixup handler/form transform name instead of form mod*Joshua Harlow
2012-06-16Have the ensure file function be able to take in a file permission.Joshua Harlow
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-16Allow file rendering to pass in a file permission when writing.Joshua Harlow
2012-06-16Adjust how config is extracted in that it now can be extracted via 3 ↵Joshua Harlow
different modes. 1. Restricted - which doesn't give back the system info (used by handlers/transforms/public cfg api) 2. System - which only gives back the system info (used by distro class) 3. Paths - gives back only the system/path info (used by the path class)
2012-06-16Fix pylint line length to big issue.Joshua Harlow
2012-06-16For now just stick to using newline joining.Joshua Harlow
2012-06-161. Remove content handler iid param, not used.Joshua Harlow
2. Ensure if iid is found that it is converted to a string before path joining.
2012-06-16Have the contents formed on a previous line which seems prettier.Joshua Harlow
2012-06-161. Remove path function, since we have a path classJoshua Harlow
2. Be explict with file perms (even though its duplicated)
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-16Some simple fixes that will make the python 3 translation easierJoshua Harlow
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-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-161. Add in one function that will do output redirection from config for a ↵Joshua Harlow
given mode. 2. Adjust the usage of items() to iteritems() which will help translation to python 3.
2012-06-15Fixups to ensure that pylint does not find anything major wrong.Joshua Harlow
2012-06-15Ensure that this directory is treated as a module.Joshua Harlow
2012-06-15Self variable missingJoshua Harlow
2012-06-15Variable name mismatchJoshua Harlow
2012-06-15Cleanup and renaming that should mostly complete this new module.Joshua Harlow
1. Renamed config to modules, then renamed to transforms 2. Enabled checking of transform frequencies before usage (warning the user that something is bad) 3. Adjusting how the cloud object is formed to comply with its new api.
2012-06-15Update comment about distro handling its timezoneJoshua Harlow
2012-06-15Inclusion of more utility functions included:Joshua Harlow
1. Adjustments to using more selinux guards around directory creation, chmod... 2. Adding util functions to check if values are false or true (used internally and externally) 3. Move find_devs_with to util.py and allow it to serve multiple use cases 4. Add fork_cb which will fork a process and then call a certain callback (used right now by the resize nonblocking mode) 5. Move functions that performed time_rfc2822 time fetching and uptime fetching to here. 6. Allow the subp util function to act in shell mode 7. Increase logging usefulness in shellify function