Age | Commit message (Collapse) | Author | |
---|---|---|---|
2012-07-09 | Update chownbyname to catch the key error when users/groups that are not known | Joshua Harlow | |
are provided and rethrow it as a OSError (which seems reasonable) and adjust its usage in the log file touching/permission modification stage to catch this error and log it. | |||
2012-07-09 | fix 'make pylint' warnings | Scott Moser | |
On my system (quantal) this 'make pylint' does not complain now. | |||
2012-07-09 | DataSourceEc2: only do dns check in mirror selection | Scott Moser | |
This returns the check for an archive mirror in the DataSourceEc2 to only do so by DNS resolution. The 'rework' branch had made the check wait and timeout on attempts to reach the mirror. This resulted in 120 seconds of waiting before failure. For now, just go back to the old situation of checking by dns. | |||
2012-07-06 | Updated so that if no mirror is found, the module stops running. | Joshua Harlow | |
2012-07-03 | Add a check on 'chownbyname' that catches the keyerror and logs it (instead ↵ | Joshua Harlow | |
of failing) | |||
2012-07-02 | 1. Move the welcome message template string to a constant at the top of the ↵ | Joshua Harlow | |
module 2. Fix the usage of multi_log to log to only one of the places (for now) 3. Update comment about multi-log and why write_file isn't used in this case | |||
2012-07-01 | Merge in pending changes. | harlowja | |
2012-07-01 | Always read fro the cloud config location + conf.d locations | harlowja | |
2012-07-01 | 1. Rename util functions to is_true and is_false | harlowja | |
2. Move the config loading functions to where they are used (in stages) 3. Adjust cc_set_passwords to use the is_true and is_false renamed functions 4. Adjust the init stage to have a _read_base_config function used to load the base 'initial' configuration from the following locations a. Kernel cmdline b. Conf.d location (+ the cloud.cfg location) c. Built-in configuration | |||
2012-07-01 | Add a multi log function that can write to stderr, console and a log debug, ↵ | Joshua Harlow | |
useful in certain cases | |||
2012-06-29 | Include the helpers import. | harlowja | |
2012-06-29 | Refactor the selinux guard to aid in mocking | harlowja | |
1. Adjust the test_util after this mocking to be cleaner | |||
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 | Remove logging of module/init configs | Joshua Harlow | |
2012-06-29 | Just log the number of commands 'shellified' | Joshua Harlow | |
2012-06-29 | Don't remove the key if its not there (or was already removed) | Joshua Harlow | |
2012-06-29 | Don't show the args but show the name and lock that is being used. | Joshua Harlow | |
2012-06-29 | Don't always log stdout and stderr (exceptions will capture them if it fails) | Joshua Harlow | |
2012-06-29 | Readd the original prefix to the netinfo (if provided). | Joshua Harlow | |
2012-06-29 | Cleanup the pickling. | Joshua Harlow | |
1. When loading the pickled file, don't log if it isn't there a. Do log though if it is there and unpickling fails 2. On writing log if pickling fails and log if pickle writing fails. | |||
2012-06-29 | Reduce the log levels by removing a few statements that happen to often (and ↵ | Joshua Harlow | |
aren't very meaningful) | |||
2012-06-29 | Add the rc code for blkid '2' being valid with a note to as why. | Joshua Harlow | |
2012-06-29 | Fix the variable name, should have been 'additional_fns' | Joshua Harlow | |
2012-06-29 | Ensure that only when incoming frequency is per-instance that this runs. | Joshua Harlow | |
2012-06-29 | [merge-from-trunk] remove warning message to console on empty user-data | Scott Moser | |
2012-06-29 | [merge from trunk] cc_salt_minion: install package salt-minion rather than salt | Scott Moser | |
2012-06-29 | [merge from trunk] Use --quiet when running apt-get | Scott Moser | |
2012-06-28 | 1. Update with smosers code review and comments (and put some of those ↵ | Joshua Harlow | |
comments into the files) 2. Rename consume() to consume_userdata() as it helps in figuring out what this does. 3. Fixup the tests due to #2 | |||
2012-06-28 | remove warning message to console on empty user-data | Scott Moser | |
Previously, if the user did not provide any user-data, then a warning would be emitted like: 2012-06-28 17:10:24,751 - __init__.py[WARNING]: Unhandled non-multipart userdata '' This just avoids the warning if there was no userdata. | |||
2012-06-26 | 1. Add a chdir context manager | Joshua Harlow | |
2. Add a abs path joining function that will return the absolute path of a combined path (where applicable) | |||
2012-06-23 | Fix a bunch of == None cases | harlowja | |
2012-06-23 | 1. Use a common config merging class now in helpers | harlowja | |
that will be the central point of config fetching for both the 'init' stage and the 'module' stages a. This helps those who want to understand exactly what configs are fetched and how the merging occurs. | |||
2012-06-22 | Don't complete the update if there is no datasource or if writing to cache fails | Joshua Harlow | |
2012-06-22 | Use os.path.join instead of custom string path formation | Joshua Harlow | |
2012-06-22 | 1. Move the getkeybyid function back here but add some slight adjustments | Joshua Harlow | |
a. Instead of executing a bash string, write out a temporary file and then just execute '/bin/sh' on that file with the right arguments instead. 2. Rename util.SilentTemporaryFile to util.ExtendedTemporaryFile and update the usages of the previous name accordingly, this better reflects what this temp file is. 3. More teenie pep8 line length fixings | |||
2012-06-22 | Fix syntax err, grrr | harlowja | |
2012-06-22 | 1. Add comment about conf.d overriding input config | harlowja | |
2. For reading config from conf.d, collect all the configs then call the mergemany function | |||
2012-06-22 | 1. Adjust the logging of phone home module when its not enabled | harlowja | |
2. Fix pylint warning in userdata about unused variable | |||
2012-06-22 | Turn off capturing | Joshua Harlow | |
2012-06-22 | Turn off capturing | Joshua Harlow | |
2012-06-22 | Turn off capturing | Joshua Harlow | |
2012-06-22 | Turn off capturing | Joshua Harlow | |
2012-06-22 | Use a module level constant for the filename | Joshua Harlow | |
2012-06-22 | Fix ma english | Joshua Harlow | |
2012-06-22 | Constant adding for content type, allow the part filename to be over-ridden ↵ | Joshua Harlow | |
easily | |||
2012-06-22 | Disable capturing of these subp calls | Joshua Harlow | |
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 | Add in debian, which should also work | Joshua Harlow | |
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) |