summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-06-08This file now holds the default part handlers (shell script, cloud-config, ↵Joshua Harlow
upstart-jobs, boot-hook) as classes as well as some utility methods to fixup imported modules (ensuring they have the right members/properties) and moving the walking handler callbacks and other part running functionality here.
2012-06-08Moved some of the mounting logic here. Also introduced a context manager ↵Joshua Harlow
which will help unmount.
2012-06-08Moved the shell functionality back in here.Joshua Harlow
2012-06-08Large amounts of refactoring.Joshua Harlow
Now there exists a class which processes the user data down to a mime message and just some small utility methods to walk and determine types. Large amount of content type cleanups & constant creation.
2012-06-08Cleaning this up, logic should be more sound around attempts and retries now.Joshua Harlow
2012-06-08Ensure files end with ".tmpl" if they don't initially.Joshua Harlow
2012-06-08Working on making this have the old setup (where strings are taken in for ↵Joshua Harlow
config) as well as file names (for those that have files).
2012-06-08This now holds the following classes:Joshua Harlow
CloudInit - cut up to only provide some basic init processes CloudPartData - provided to handlers so that they can fetch needed data without providing the whole enchilda of cloud init. CloudPaths - holds the paths that should be used, for instances, for non-instances and such. CloudSemaphores - holds the concept of cloud inits sempaphores, but cleaned up, using context manager to help here. CloudHandlers - holds the user data handlers to be activated CloudConfig - the cloud config object (to be cleaned up)
2012-06-08This now only holds some simple top level functions.Joshua Harlow
TODO: maybe just move them to utils?
2012-06-08Renamed this, since its more of settings, not all constants.Joshua Harlow
2012-06-08Putting back into utils for now (until that gets to big).Joshua Harlow
2012-06-08Seems like the util function extraction was not actually needed.Joshua Harlow
2012-06-08Moved this to a file called parts which handles this type of functionality.Joshua Harlow
2012-06-08Moving exceptions to modules where they are used. Seems to make sense.Joshua Harlow
2012-06-07Add a standard exception holding file.Joshua Harlow
2012-06-07Add in a utility class that will handle all shell-like actions.Joshua Harlow
2012-06-07Add this file which will contain the cloud init and cloud config classes.Joshua Harlow
2012-06-07Start moving code from there to here.Joshua Harlow
2012-06-07Move the contents of this file to __init__ in sources.Joshua Harlow
2012-06-071. Move cloud init and cloud config objects to a cloud file.Joshua Harlow
2. Cleanup main __init__ file with shell additions, constants usage, os.path usage.
2012-06-07Add in a helper that is useful for running pep8/pylintJoshua Harlow
2012-06-07Add a file that just deals with url like functionsJoshua Harlow
2012-06-07Add a file that just deals with handling modules and part dataJoshua Harlow
2012-06-07Darn it. Those shouldn't be there!Joshua Harlow
2012-06-071. Adding some new helper files that split off file inclusion, templating, ↵Joshua Harlow
importing, constant usage. 1. Move all datasources to a new sources directory 1. Rename some files to be more consistent with python file/module naming.
2012-06-07Move binaries to an actual binary dir.Joshua Harlow
2012-05-22remove usage of subprocess.check_outputScott Moser
in order to work on python 2.6, replace usage of check_output with util.subp.
2012-05-22support relative path in AuthorizedKeysFileScott Moser
LP: #970071
2012-04-10cc_landscape.py: if /etc/landscape does not exist, then create itScott Moser
LP: #978329
2012-04-10pep8: fix white spaceScott Moser
2012-04-09fix chef documentation (LP: #960564)Scott Moser
LP: #960564
2012-04-09replace bug links with LP: # syntax, use '$RELEASE' for apt sourceScott Moser
cloud-init expands $RELEASE in a source so it can easily be used.
2012-04-07Added an example for using Chef with oneiricLorin Hochstein
2012-04-07Added GPG keyLorin Hochstein
2012-04-05Fixed opscode repo in chef recipeLorin Hochstein
Also added some comments and captured the output
2012-04-05Allow a url to cloud-config data to be specified on kernel config lineScott Moser
In order to allow an ephemeral, or otherwise pristine image to receive some configuration, cloud-init will read a url directed by the kernel command line and proceed as if its data had previously existed. For more information, see doc/kernel-cmdline.txt
2012-04-05add a better exception messageScott Moser
2012-04-05revert improved exception printing, as it was brokenScott Moser
2012-04-05syntax error fixScott Moser
2012-04-05improve exception messageScott Moser
2012-04-05move the reading of the cmdline cloud-config url to cloud-init.pyScott Moser
The reason for moving this from cloudinit/__init__.py was that it was running too late there. The cloudinit.parsed_cfgs variable was already filled by cloud-init.py's reading of cloud config. I'm sure I had done this so that it would not have to re-parse configs. I think the right way to handle this is to move that logic back to cloudinit/__init__.py and add some function like 'reread_configs()' that would re-read all releavent cofnigs and re-setup logging. That seemed more error prone at the moment, with limited time.
2012-04-04fix issue found in real testScott Moser
2012-04-04add reading of 'seedfrom' via DataSourceNoCloud's DataSourceConfigScott Moser
What this does is provide an second DataSource that could use the kernel command line url=. For example: ro root=/dev/vda url=http://example.com/i-abcdefg/ http://example.com/i-abcdefg/ would contain: datasource: NoCloud: # default seedfrom is None # if found, then it should contain a url with: # <url>/user-data and <url>/meta-data # seedfrom: http://my.example.com/i-abcde seedfrom: http://example.com/i-abcdefg/ Then, the NoCloudNet DataSource would find that seedfrom config and consume data at http://example.com/i-abcdefg/user-data and http://example.com/i-abcdefg/meta-data
2012-04-04initial checkin of kernel commandline cloud-config url supportScott Moser
2012-04-04Provide informative message when user logs in with unsupported localeScott Moser
On the users's first login with a locale that is not supported (where 'locale' would give errors), inform the user on how they can generate the locales or install language support packages. LP: #859814
2012-04-04minor cleanup to messages, combine commands to single lineScott Moser
* remove unused 'line' variable * fix bug where multiple errant locales were not working correctly * only output each bad locale once in the list * you only need to run the apt-get install of the package *or* localegen
2012-04-04Only show this message one time.Scott Moser
2012-04-04move Z99-cloud-locale-test.sh out of profile.d to toolsScott Moser
Just to avoid an entry in top level directory, get rid of profile.d there and instead move Z99-cloud-locale-test.sh -> tools/Z99-cloud-locale-test.sh
2012-04-02Fixed deficiency in merge proposal.Ben Howard
2012-03-30Added a profile.d message to inform people about invalid locale setting.Ben Howard