summaryrefslogtreecommitdiff
path: root/cloudinit
AgeCommit message (Collapse)Author
2012-06-19Cleanup pylint warning about line length.Joshua Harlow
2012-06-19Fix pylint error about the rmlist variable name being mis-named.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-191. When running, return the function results as well as a boolean that ↵Joshua Harlow
stated if it ran.
2012-06-18Removed this for now.Joshua Harlow
2012-06-181. Allow the built-in config to be passed in when getting the base configJoshua Harlow
2. Move the cloudinit util function that writes the command line url to a file to here.
2012-06-181. Cleanup the rm cur instance link variable name to match more of what it isJoshua Harlow
2. Allow on config reading the ability to pass in config files that over-ride the search for configs (useful for testing...)
2012-06-18Show the timeout (useful to see this when debugging)Joshua Harlow
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-181. Revert the 'transform-' template back to 'config-' template for now.Joshua Harlow
2. Make the init class have a public 'read_cfg' which can be used to force cfg loading to occur (instead of having to go through the cfg property) a. This is a more 'public' way of forcing config to load, without exposing the config itself.
2012-06-18Fix include once always staying on, only turn it on until a include says to ↵Joshua Harlow
turn it back off, if one of those is encountered
2012-06-18When logging is 'cycled' ensure that we call the logging reset routine first.Joshua Harlow
2012-06-181. Simplify basic logging (which will not always be turned on in the new ↵Joshua Harlow
cloud init main entrypoint 2. Have the ability to reset the logging handlers a. This seems needed when we initially have basic logging turned on, then later we come in and change the logging. It seems required for some odd reason to go in and reset the handlers for the root/cloudinit loggers (needs some more investigation).
2012-06-18Add created by or added by cloud-init lines when we modify or create files.Joshua Harlow
2012-06-18Include link to netcf library in the comment.Joshua Harlow
2012-06-18Adjust log message to say "open" instead of 'read' since this function can ↵Joshua Harlow
also post data...
2012-06-181. Decreasing of logging in piping routingJoshua Harlow
2. Fixup of merge dict after found out that it depends on the src return for non dict types 3. Only merge kernel config if there was any kernel config
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-17Update the variable for comment positioning to be 'c_pos' (comment position) ↵harlowja
instead of 'hpos' (??)
2012-06-171. Adjust the ubuntu network hostname writing to go through a standard write ↵harlowja
function 2. Add comment as to why we search for "#" when reading
2012-06-17Added a new rhel distro that does the following.harlowja
1. Translate (some of) the ubuntu network format to the rhel format (until we have python netcf active) and then write the different ifcfg files to /etc/sysconfig/network-scripts as needed to bring the network online 2. Apply the hostname to the write /etc/sysconfig/network file (appending to it or adjusting that file if it exists) 3. Write to the /etc/sysconfig/clock file to adjust the timezone (or adjust that file instead of appending) 4. Runs yum commands (to match the packaging commands in the apt-get flavor) 5. Update the hostname in /etc/sysconfig/network (or a previous file) for the update hostname transform
2012-06-171. Remove rhel sysconfig for timezone, now have a rhel distro subclassharlowja
2. Remove private apt_get function, since it can just be the package_command public one.
2012-06-17Log handler + info that is about to be calledJoshua Harlow
2012-06-16Add todo to see if we should turn back off include onceJoshua Harlow
2012-06-161. Allow for checking against lower case include types.Joshua Harlow
2. Perform lstrip on the payload, just incase people put spaces/whitespace before the type.
2012-06-16Fix include on enabling, simplify statements around include skipping, allow ↵Joshua Harlow
for case insensitive include statements to be used
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-16Update error messaging for when importing/registring a part-handler failsJoshua Harlow
2012-06-161. Ensure a that when a bad version is found, that it gets set to 1.Joshua Harlow
2. Increment part handler count even if it doesn't get registered (this shouldn't cause any problems)
2012-06-16Rename user data obj, which is really a user data message object and add ↵Joshua Harlow
comments as to what the data items are used for
2012-06-16Not config anymore, now a transformJoshua Harlow
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-16Allow url fetching to catch any other type of exceptions that occurJoshua Harlow
2012-06-16Let read_file_or_url util function have good defaultsJoshua Harlow
2012-06-16Capture the exceptions and just re-throw the last one on errorsJoshua Harlow
2012-06-16Send in src line instead of stripped line.Joshua Harlow
2012-06-16Update ssh_util to have a parser class and a line entry class. Joshua Harlow
Also have a method that will parse the authorized key file. This allows: 1. Testing of parsing seperate from testing of entry construction. 1. Testing of authorized key file parsing, separate from updating.
2012-06-16Comments as to why we are using a csv parser and do some of the logic checks ↵Joshua Harlow
that are done for option extraction
2012-06-16Comments about checking if this is right, no longer neededJoshua Harlow
2012-06-16Fix logic issue with reading previous file for previous instance id, when ↵Joshua Harlow
the current file should be looked at instead
2012-06-16Should be loaded not loadingJoshua Harlow
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 ;)