summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-02-17change from yaml+'#include' to yaml + config.d format for cloud.cfgScott Moser
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-07update TODO, ChangeLogScott 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-04add a debian.trunk dir and tools/bddeb to easily build a deb from hereScott Moser
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-04update changelogScott Moser
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-04update changelogScott Moser
2011-02-04change default of resize_rootfs to TrueScott Moser
2011-02-03update TODOScott 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 support for setting passwords and managing PasswordAuthenticationScott Moser
Note: by default, nothing is done. No users will have passwords set, nor will sshd's configuration be changed unless cloud-config is modified. Additionally, by default, users whose passwords are set have their password expired, forcing a change.
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
2011-01-28Removing quotes from puppet config option valuesRyan Lane
LP: #709946
2011-01-27fix the filename of the processed userdataScott Moser
Change /var/lib/cloud/instance/ user-data-raw.txt.i to user-data.txt.i
2011-01-27do not install cloud-init-query, it isn't really functionalScott Moser
2011-01-27improve comment strings in rsyslog config file tools/21-cloudinit.confScott Moser
2011-01-27take correct action if def_log_file and syslog_fix_perms are emptyScott Moser
2011-01-27fix bug in fixing permission on default log fileScott Moser
2011-01-26make cloud-init's warning more obviously a warning (prepend WARN)Scott Moser
2011-01-26if output entry is a scalar, send stdout and stderr same placeScott Moser
2011-01-26remove debug statementScott Moser
2011-01-26improve language in cloud.cfg commentScott Moser
2011-01-26make the next target release 0.6.0, not 0.5.16Scott Moser
2011-01-26update the changelog with other items from development branchScott Moser
2011-01-26cc_ssh: if a private key is supplied, do not require public.Scott Moser
given rsa_private_key, rsa_public_key is not needed in the ssh element of cloud-config. instead, it can be generated with ssh-keygen -yf LP: #648905
2011-01-26add timezone to cloud-config (LP: #645458)Scott Moser
LP: #645458
2011-01-26merge in work form ds-reworkScott Moser
rework of DataSource loading. The DataSources that are loaded are now controlled entirely via configuration file of 'datasource_list', like: datasource_list: [ "NoCloud", "OVF", "Ec2" ] Each item in that list is a "DataSourceCollection". for each item in the list, cloudinit will attempt to load: cloudinit.DataSource<item> and, failing that, DataSource<item> The module is required to have a method named 'get_datasource_list' in it that takes a single list of "dependencies" and returns a list of python classes inside the collection that can run needing only those dependencies. The dependencies are defines in DataSource.py. Currently: DEP_FILESYSTEM = "FILESYSTEM" DEP_NETWORK = "NETWORK" When 'get_datasource_list' is called for the DataSourceOVF module with [DEP_FILESYSTEM], then DataSourceOVF returns a single item list with a reference to the 'DataSourceOVF' class. When 'get_datasource_list' is called for the DataSourceOVF module with [DEP_FILESYSTEM, DEP_NETWORK], it will return a single item list with a reference to 'DataSourceOVFNet'. cloudinit will then instanciate the class and call its 'get_data' method. if the get_data method returns 'True', then it selects this class as the selected Datasource.
2011-01-26rework of DataSource loading.Scott Moser
The DataSources that are loaded are now controlled entirely via configuration file of 'datasource_list', like: datasource_list: [ "NoCloud", "OVF", "Ec2" ] Each item in that list is a "DataSourceCollection". for each item in the list, cloudinit will attempt to load: cloudinit.DataSource<item> and, failing that, DataSource<item> The module is required to have a method named 'get_datasource_list' in it that takes a single list of "dependencies" and returns a list of python classes inside the collection that can run needing only those dependencies. The dependencies are defines in DataSource.py. Currently: DEP_FILESYSTEM = "FILESYSTEM" DEP_NETWORK = "NETWORK" When 'get_datasource_list' is called for the DataSourceOVF module with [DEP_FILESYSTEM], then DataSourceOVF returns a single item list with a reference to the 'DataSourceOVF' class. When 'get_datasource_list' is called for the DataSourceOVF module with [DEP_FILESYSTEM, DEP_NETWORK], it will return a single item list with a reference to 'DataSourceOVFNet'. cloudinit will then instanciate the class and call its 'get_data' method. if the get_data method returns 'True', then it selects this class as the selected Datasource.
2011-01-26import fixes for DataSourceOVFScott Moser
2011-01-26remove needless import and defines in util.pyScott Moser
2011-01-26change 'except' syntax to python 3 style.Scott Moser
Everywhere that there occurred: except Exception, e: changed to except Exception as e:
2011-01-25add get_public_ssh_keys and get_hostname methods to DataSourceOVF.pyScott Moser
2011-01-25add mention of OVF to changelogScott Moser