summaryrefslogtreecommitdiff
path: root/cloudinit/distros
AgeCommit message (Collapse)Author
2012-06-221. Adjust for the cases of 'yes', 'no', 'true', 'false' byJoshua Harlow
leaving those unquoted 2. Add more comments as to why we are leaving single quoted strings alone.
2012-06-221. Fix the cfgobj to make sure it handles the quotingJoshua Harlow
of the keys and values in sysconfig specially by ensuring that it does the quoting so that the files written out can be sourced into bash scripts, which is typically what these files are used for.
2012-06-221. Add a ubuntu and fedora subclass of the RH/debian root classesJoshua Harlow
2. Move the ubuntu class to the debian class (since thats really what it is)
2012-06-22Use configobj support for now to keep the comments and other k/v pairs that ↵Joshua Harlow
may already exist in these files
2012-06-21Use RuntimeError subclass instead of top level ExceptionJoshua Harlow
2012-06-21Updated so that the locale that is being written out currently in 'cc_locale'Joshua Harlow
now will be done by the distro classes (since its not the same for rhel and ubuntu). Remove the template also since it will just be created by the ubuntu distro class (its just one line).
2012-06-21Remove another unused importJoshua 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-20Catch the import error rather than the runtime error.Joshua Harlow
2012-06-19Pylint line length fixups.Joshua Harlow
2012-06-19More cleanups around read/write rootsJoshua 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-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-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-16If bringing up, return whatever the bring up result is, otherwise false.Joshua Harlow
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-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-15Fixups to ensure that pylint does not find anything major wrong.Joshua Harlow
2012-06-15Self variable missingJoshua Harlow
2012-06-15Variable name mismatchJoshua Harlow
2012-06-15Moved as many distro specific actions to here as should be needed. Joshua Harlow
Mainly this is the following: 1. Hostname updating 2. Package command invocation 3. Network settings writings 4. Timezone setting (needs cleanup)
2012-06-15Continued adding distro specific functionality to this new parent distro ↵Joshua Harlow
class as needed.
2012-06-11Add initial network writing here.Joshua Harlow
2012-06-11Adding in the base of a ubuntu distro subclass that can install pkgs (right ↵Joshua Harlow
now).
2012-06-11Adding in the root distro class + a util function to fetch various distros.Joshua Harlow
2012-06-09Start adding place where distro specifics can go.Joshua Harlow