Age | Commit message (Collapse) | Author | |
---|---|---|---|
2012-08-22 | fix pep8 complaints. | Scott Moser | |
make pep8 now is silent on precise's pep8 ( 0.6.1-2ubuntu2). | |||
2012-06-29 | Include the helpers import. | harlowja | |
2012-06-29 | add update_package_sources to distro class | Scott Moser | |
Previously update_package_sources was a private class (_update_package_sources). The apt_update_upgrade class called it. It does make sense that things would want to call this independently of installing packages. Therefore, expose it as a non hidden method. | |||
2012-06-29 | [merge from trunk] Use --quiet when running apt-get | Scott Moser | |
2012-06-22 | 1. Adjust for the cases of 'yes', 'no', 'true', 'false' by | Joshua Harlow | |
leaving those unquoted 2. Add more comments as to why we are leaving single quoted strings alone. | |||
2012-06-22 | 1. Fix the cfgobj to make sure it handles the quoting | Joshua 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-22 | 1. Add a ubuntu and fedora subclass of the RH/debian root classes | Joshua Harlow | |
2. Move the ubuntu class to the debian class (since thats really what it is) | |||
2012-06-22 | Use configobj support for now to keep the comments and other k/v pairs that ↵ | Joshua Harlow | |
may already exist in these files | |||
2012-06-21 | Use RuntimeError subclass instead of top level Exception | Joshua Harlow | |
2012-06-21 | Updated 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-21 | Remove another unused import | Joshua Harlow | |
2012-06-21 | 1. 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-20 | 1. 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-20 | Massive pylint + pep8 fixups! | Joshua Harlow | |
2012-06-20 | Catch the import error rather than the runtime error. | Joshua Harlow | |
2012-06-19 | Pylint line length fixups. | Joshua Harlow | |
2012-06-19 | More cleanups around read/write roots | Joshua Harlow | |
2012-06-19 | More paths missed (durn), but now fixed. | Joshua Harlow | |
2012-06-19 | Make 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-18 | Add created by or added by cloud-init lines when we modify or create files. | Joshua Harlow | |
2012-06-18 | Include link to netcf library in the comment. | Joshua Harlow | |
2012-06-17 | Update the variable for comment positioning to be 'c_pos' (comment position) ↵ | harlowja | |
instead of 'hpos' (??) | |||
2012-06-17 | 1. 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-17 | Added 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-17 | 1. Remove rhel sysconfig for timezone, now have a rhel distro subclass | harlowja | |
2. Remove private apt_get function, since it can just be the package_command public one. | |||
2012-06-16 | If bringing up, return whatever the bring up result is, otherwise false. | Joshua Harlow | |
2012-06-16 | Have 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-16 | Have the contents formed on a previous line which seems prettier. | Joshua Harlow | |
2012-06-16 | 1. Remove path function, since we have a path class | Joshua Harlow | |
2. Be explict with file perms (even though its duplicated) | |||
2012-06-15 | Fixups to ensure that pylint does not find anything major wrong. | Joshua Harlow | |
2012-06-15 | Self variable missing | Joshua Harlow | |
2012-06-15 | Variable name mismatch | Joshua Harlow | |
2012-06-15 | Moved 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-15 | Continued adding distro specific functionality to this new parent distro ↵ | Joshua Harlow | |
class as needed. | |||
2012-06-11 | Add initial network writing here. | Joshua Harlow | |
2012-06-11 | Adding in the base of a ubuntu distro subclass that can install pkgs (right ↵ | Joshua Harlow | |
now). | |||
2012-06-11 | Adding in the root distro class + a util function to fetch various distros. | Joshua Harlow | |
2012-06-09 | Start adding place where distro specifics can go. | Joshua Harlow | |