summaryrefslogtreecommitdiff
path: root/config
AgeCommit message (Collapse)Author
2012-08-22Merge with lp:cloud-initBen Howard
2012-08-22rework package mirror selectionScott Moser
There are several changes here. * Datasource now has a 'availability_zone' getter. * get_package_mirror_info * Datasource convenience 'get_package_mirror_info' that calls the configured distro, and passes it the availability-zone * distro has a get_package_mirror_info method * get_package_mirror_info returns a dict that of name:mirror this is to facilitate use of 'security' and 'primary' archive. * this supports searching based on templates. Any template that references undefined values is skipped. These templates can contain 'availability_zone' (LP: #1037727) * distro's mirrors can be arch specific (LP: #1028501) * rename_apt_lists supports the "mirror_info" rather than single mirror * generate_sources_list supports mirror_info, and as a result, the ubuntu mirrors reference '$security' rather than security (LP: #1006963) * remove the DataSourceEc2 specific mirror selection, but instead rely on the above filtering, and the fact that 'ec2_region' is only defined if the availability_zone looks like a ec2 az.
2012-08-20fix config for proper spelling of 'authkey'Scott Moser
2012-08-20Added "userless" mode to cloud-init for handling the creation of theBen Howard
users and the default user on Ubuntu. cloudinit/config/cc_users_groups.py: new cloud-config module for creating users and groups on instance initialization. - Creates users and group - Sets "user" directive used in ssh_import_id cloudinit/config/cc_ssh_import_id.py: module will rely upon users_groups for setting the default user. Removed assumption of 'ubuntu' user. cloudinit/distros/__init__.py: Added new abstract methods for getting and creating the default user. cloudinit/distros/ubuntu.py: Defined abstract methods for getting and and creating the default 'ubuntu' user on Ubuntu instances. cloudinit/util.py: Added ability to hide command run through util.subp to prevent the commands from showing in the logs. Used by user_groups cloud-config module. config/cloud.cfg: Removed "user: ubuntu" directive and replaced with new user-less syntax. doc/examples/cloud-config.txt: Documented the creation of users and groups.
2012-08-20add ssh-authkey-fingerprint config module, to print fingerprints to consoleScott Moser
Example output: ci-info: +---------+-------------------------+---------+-----------------+ ci-info: | Keytype | Fingerprint (md5) | Options | Comment | ci-info: +---------+-------------------------+---------+-----------------+ ci-info: | ssh-rsa | e3:..:84:81:72:38:..:6a | - | smoser@brickies | ci-info: | ssh-rsa | 21:..:32:8a:da:98:..:42 | - | smoser@bart | ci-info: | ssh-rsa | 7b:..:ac:a7:17:51:..:b2 | - | smoser@kaypeah | ci-info: +---------+-------------------------+---------+-----------------+
2012-08-10Adjustments so that the default old event is used whenJoshua Harlow
no args are provided. Adjust the config file to use this older method so that older changes aren't needed. Also when calling 'initctl' emit fails log the exception message so that some useful warning information can be produced.
2012-08-09Move the code that did the 'cloud-config' upstart event name emitting to Joshua Harlow
a config module and make it more generic in that it can take in a list of event names to emit as arguments. Add a yaml example to replace the functionality removed from the main binary.
2012-07-11add write-files module for "injecting" files (LP: #1012854)Scott Moser
This implements file writing via cloud-config. It also * adjusts other code to have user/group parsing in util instead of in stages.py, * renames decomp_str to decomp_gzip since it is more meaningful when named that (as thats all it can decompress). LP: #1012854
2012-07-09DataSourceEc2: only do dns check in mirror selectionScott 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-06-21Comment cleanups and remove unneeded quotes.Joshua Harlow
2012-06-20Move back to the old dashs mixed with underscores for now until ↵Joshua Harlow
checking/migrating and then using canonicalized name is done.
2012-06-181. Removed the welcome message for now :-)Joshua Harlow
2012-06-18Add comments as to what the special reference sections mean in log_cfgsJoshua Harlow
2012-06-16Consistently use dashes instead of underscores for the transform namesJoshua Harlow
2012-06-161. Fix the welcome_msg name to welcome_message (oops)Joshua Harlow
2. Adjust that name in the cloud.cfg 3. Add in the ability to specify a dictionary that is the transform instead of a list which makes the config look nicer when users have custom transforms with arguments and such.
2012-06-16Match the transform named final_msg by adding a _msg to the transform name.Joshua Harlow
2012-06-15Continued adding more comments about what each section/option does.Joshua Harlow
Continued adding more system info sections as needed for various components. Enabled the welcome transform.
2012-06-09Start adding a system section.Joshua Harlow
2012-03-16rename DataSourceMaaS to DataSourceMAAS, generally use MAAS everywhereScott Moser
instead of MaaS or Maas, use MAAS consistently. The only non 'MAAS' left are all lower case.
2012-03-12import CloudStack data source [Cosmin Luta]Scott Moser
2012-03-09Renamed data source to CloudStackCosmin Luță
2012-03-09add option apt_pipelining to cloud-config to address s3 mirrors (LP: #948461)Scott Moser
Thanks to Ben Howard.
2012-03-08add MaaS datasource to default searchedScott Moser
2012-03-07Added ability of cloud-init to manage apt http pipeliningBen Howard
- cloud-config option of "apt-pipelining" - Address LP: 948461
2012-03-04Merge from main branchCosmin Luță
2012-02-16DataSourceConfigDrive: support getting data from openstack config driveScott Moser
LP: #857378
2012-02-16incorrect name for salt minion cloud_configScott Moser
2012-02-16initial version of DataSourceConfigDriveScott Moser
2012-02-15Support salt minions via cloud-config [Jeff Bauer] (LP: #927795)Scott Moser
2012-01-25Added support for CloudStack meta-dataCosmin Luță
2012-01-17Add ca-certs into the main config to run just before rsyslog.Mike Milner
2011-12-20support configuration of landscape-client via cloud-config (LP: #857366)Scott Moser
This adds the ability to configure landscape client code from cloud-config. The fields available are those that were populated to /etc/landscape/client.conf when I ran landscape-config on precise ('11.07.1.1-0ubuntu2')
2011-07-21add chef module to cloud.cfg so it runs as cloud-configScott Moser
2011-06-14run cc_ssh as a cloud-init module so it is guaranteed to run beforeScott Moser
ssh starts (LP: #781101) LP: #781101
2011-03-04add mcollective to cloud.cfgScott Moser
2011-03-03add 'timezone' cloud-config module to cloud.cfgScott Moser
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-07add 'bootcmd' like 'runcmd' to cloud-config syntax for running things earlyScott Moser
2011-01-28add setting of passwords.Scott Moser
2011-01-26improve language in cloud.cfg commentScott Moser
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-25add support for reading rightscale style userdataScott Moser
LP: #668400
2011-01-24move cloud-run-user-script.conf to cloud-final, use cloud-cfg for invokingScott Moser
This moves what was done as cloud-run-user-script.conf to 'cloud-final' and makes that re-use the cloud-init-cfg code, but simply with a different set of default configs. Also, adds keys_to_console and final_message cloud-config modules LP: #653271
2011-01-21add function to cloud-init to run cloud-config style modulesScott Moser
add 'hostname' cloud-config option for setting hostname make rsyslog and resizefs run at cloud-init time
2011-01-20add 'resize_rootfs' cloud-config option.Scott Moser
2011-01-20remove updates check, as its no longer really necessary (LP: #653220)Scott Moser
LP: #653220
2011-01-19add handling of rsyslog in cloud-configScott Moser
This adds the following cloud-config keys: - 'rsyslog_dir' default: /etc/rsyslog.d - 'rsyslog_filename' default: 20-cloud-config.conf - 'rsyslog' (list) default: empty
2011-01-19make timestamps get recorded to /var/log/cloud-init.log when no syslogScott Moser
2011-01-18move setting of default locale out of cloud-init, into cloud-configScott Moser
Now, instead of setting a default value in cloud-init based only on the DataSource, this supports using 'locale' in the cloud-config.