summaryrefslogtreecommitdiff
path: root/cloudinit
AgeCommit message (Collapse)Author
2011-05-28changed config key namekeyz182
2011-05-28log.warn to log.warningkeyz182
removed extra args from string format
2011-05-28Removed unnecessary newlinekeyz182
2011-05-28Added support for loading metadata urls from config files.keyz182
2011-05-26Another silly typo.keyz182
2011-05-26Remove any unresolveable addresses before attempting to access metadata.keyz182
2011-05-25Fixed silly mistake self.metadata_address instead of metadata_address. D'oh.keyz182
2011-05-25Fix for default metadata_address valuekeyz182
2011-05-25Modified to reflect changes suggested by Scott Moserkeyz182
2011-05-24Modified cloudinit/DataSourceEc2.py and cloudinit/boto_utils.py to check ↵keyz182
both http://169.254.169.254 and http://instance-data:8773 for meta data service. LP: #761847
2011-05-24Modified cloudinit/DataSourceEc2.py and cloudinit/boto_utils.py to check ↵keyz182
both http://169.254.169.254 and http://instance-data:8773 for meta data service. LP: #761847
2011-03-21fix bug with resizefs moduleScott Moser
instead of using blkid on /dev/root, create a device node ourselves with the correct device number of '/', then use blkid and resize2fs on that. I believe the problem was that /dev/root was occasionally not being present due to race. LP: #726938
2011-03-21fix bug in part-handler code, that broke working part-handlers (LP: #739694)Scott Moser
LP: #739694
2011-03-08fix issue where apt-update was not done unless explicitly setScott Moser
2011-03-03make update of sources not prevent installation attempt (LP: #728167)Scott Moser
LP: #728167
2011-03-03cc_resizefs.py: log output of failed resizefs or blkid commandsScott Moser
2011-03-03in subp, put output and stderr into the raised errorScott Moser
2011-02-22merge mcollective fixes from Marc. Changes to indentation and added commentsScott Moser
2011-02-20Change output format for ConfigParserMarc Cluet
2011-02-20Changes to mcollective module, added docsMarc Cluet
2011-02-18handle no datasource better cloud-init-cfgScott Moser
previously, cloud-init-cfg would call CloudConfig with no cloud specified. Then, CloudConfig would get a new cloudinit instance and specify no ds_deps (which means network and local). If no cache was found, it would wait again for the Ec2 metadata service (even if it wasn't supposed to). Now, we get the cloud instance in the main program and attempt to get the data source, but only from [], which will get only cached. Then, if its not found, exit silently.
2011-02-18add carriage return to cc_final_message.py outputScott Moser
2011-02-18fix bug if ovf had empty seedfromScott Moser
2011-02-18fix syntax erorr in cc_puppet.pyScott Moser
2011-02-18Update puppet to replace rather than append, add mcollective [Marc Cluet]Scott Moser
Modified puppet module to try to replace values on the existing file instead of adding new values to the end. Also added initial mcollective module
2011-02-17update /etc/hosts hosts.tmpl to if 'manage_etc_hosts' is set in cloud-configScott Moser
LP: #720440
2011-02-17change from yaml+'#include' to yaml + config.d format for cloud.cfgScott Moser
2011-02-15Changes to puppet module + mcollective moduleMarc Cluet
2011-02-07add 'bootcmd' like 'runcmd' to cloud-config syntax for running things earlyScott Moser
2011-02-07add apt helper routeins to CloudConfig, and use them in apt and puppetScott Moser
Adding the apt helper routines to CloudConfig. Then, make use of the following from cc_puppet and cc_apt_update_upgrade update_package_sources(): install_packages(pkglist): I'm not really terribly happy with this location for them. Their presence here is really only because of apt-update's use of 'run-once-per-instance'.
2011-02-07add 'run_per_instance' to CloudConfigScott Moser
This method aloows the caller to run easily run something "once per instance". Its location in CloudConfig rather than 'util' is really only because it needs access to cloudinit.get_ipath_cur to get the 'data' path.
2011-02-07rename 'datadir' key to 'data' in pathmapScott Moser
2011-02-07make DataSourceEc2 configurable (timeout, retries), lower default retriesScott Moser
This lowers the default retries from 100 to 30 (1050 seconds to 105 seconds)
2011-02-07call DataSource classes with sys_cfg argumentScott Moser
2011-02-07add sys_cfg option to DataSource:__init__ , populate ds_cfg from itScott Moser
In order to be able to configure a DataSource via system config (ie, what is in /etc/cloud/cloud.cfg), we pass this into the DataSource class. The DataSource parent class will set up the 'ds_cfg' member based on the subclass name. So, DataSourceEc2 will get: self.ds_cfg = sys_cfg['datasource']['Ec2'] populated for it.
2011-02-07add utility function get_cfg_by_pathScott Moser
2011-02-07add config option 'manual_cache_clean'.Scott Moser
This option allows user to specify manual cleaning of the /var/lib/cloud/instance/ link, for a data source that might not be present on every boot.
2011-02-04fix logging in DataSource modulesScott Moser
Previous logging was getting 'None' set in the DataSource collections. Thus, 'log.debug' would throw error. I think it is proper to pull in the base cloudinit's log.
2011-02-04resizefs didn't work, as 'blkid' would return error status 2Scott Moser
passing '-c /dev/null' (no cache file) seems to work fine.
2011-02-04First try to read from cdrom device before mountingScott Moser
mount was taking 18 seconds when there was no media on a kvm guest. a simple read should be about as quick as we can fail. The only other thing to try would be to use cdrom.h and ioctl for CDROM_DRIVE_STATUS.
2011-02-04change default of resize_rootfs to TrueScott Moser
2011-02-01remove double slash returned by get_ipath_curScott Moser
2011-02-01fix the path for user scripts.Scott Moser
A bug caused user scripts to get stored in /var/lib/cloud/instance/scripts/<instance-id>/ which meant they would not get run by 'run-user-scripts'. LP: #711480
2011-02-01Fixes issue puppet configuration option values in quotes.Scott Moser
LP: #709946
2011-01-31make write_to_cache raise errors if it fails rather than surpressingScott Moser
2011-01-31replace DataSource's self.logScott Moser
After adding the 'log' element to the DataSource class, pickling would fail with TypeError: can't pickle file objects Instead of having the object with a log reference, use one from 'DataSource.log' and have that set by cloudinit
2011-01-31close file descriptors given to cPickle.load and cPickle.dumpScott Moser
2011-01-31allow 'ds=nocloud' to appear at end or beginning kernel cmdlineScott Moser
2011-01-28add setting of passwords.Scott Moser
2011-01-28add previous-instance-id and previous-datasource files to cloud/dataScott Moser
add 'datasource' file to instance dir