summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-07-08Adding gluster exampleClint Byrum
2010-07-07warn on failed 'mount -a'Scott Moser
2010-07-07manage hostname setting better (LP: #596993)Scott Moser
On EBS instances, a shutdown and later start would end up with a different IP address. In the case where the user has not modified /etc/hostname from its original value (seeded by metadata's 'local-hostname'), then cloud-init will again set the hostname and update /etc/hostname. In the case where the user *has* modified /etc/hostname, it will remain user managed. Additionally, if /etc/cloud/cloud.cfg contains 'preserve_hostname' value set to a True value, then /etc/hostname will not ever be touched. LP: #596993
2010-07-01resort to "starts with" to find mime type only on plain/text (LP: #600799)Scott Moser
The starts-with determination of mime type was overriding an explicit setting in the mime-type. This was evident when the mime type specified boothook, but the content began with '#!'. In that case, the content would run as a user script rather than boothook. LP: #600799
2010-07-01fix invalid log string when reading from preseeded ec2 cacheScott Moser
2010-07-01fix removal of '#cloud-boothook' inside a boothookScott Moser
The goal was to remove '#cloud-boothook' from a part if the part started that way. This was to allow user data of #cloud-boothook #!/usr/bin/perl ... to be handled correctly. That had 2 bugs 1.) the prefix string was wrong 2.) was checking for '\r' in the wrong location
2010-07-01remove incorrect docstring in write-mime-multipartScott Moser
2010-06-29on bad cloud-config syntax (failure to yaml.load) continue onScott Moser
If user gives bad cloud-config syntax, its not very useful to die, as that is most likely to leave the system unreachable. This instead logs the error and continues as if it no cloud-config was given.
2010-06-29mention nobootwait in mount configurationScott Moser
nobootwait is likely important if the user is attempting to set up ebs volume mount points via this mechanism. See 'man fstab' for more inforation on this option
2010-06-21fix bug with apt_update_upgrade config, missing importScott Moser
2010-06-18add cloud-config hooks for enabling byobu by default.Scott Moser
2010-06-18remove some debug codeScott Moser
2010-06-18add copyright header to all of cloudinit/CloudConfig/cc_*Scott Moser
2010-06-18move version to 0.5.12Scott Moser
2010-06-18add suport for setting debconf selections through debconf-set-selectionsScott Moser
LP: #582667
2010-06-18add ssh_import_id cloud-config moduleScott Moser
2010-06-18change syntax of cloud-init-cfg to allow for specifying freq for moduleScott Moser
The previous syntax was either cloud-init-cfg all or cloud-init-cfg <name> args Ie, you could not specify the frequency if you gave a name. Now, you can. Something like: sudo cloud-init-cfg ssh always
2010-06-18fix trace due to lack of 'import traceback'. change error messageScott Moser
to be debug (with traceback). The exception is still raised, but no reason for the whole traceback to be on error
2010-06-18add util.get_cfg_option_list_or_strScott Moser
This is useful for getting a config option that is either string or a list as a list
2010-06-18improve the cloud-init-run-module code a bit, fix LP:#568139Scott Moser
568139 was fixed because the test for "always" was using "is" instead of "==" LP: #568139
2010-06-18remove trailing whitespace in previous commitScott Moser
2010-06-18prefix config 'sem' entries with semaphores with 'config-'Scott Moser
Previously, most of the config semaphores were prefixed with 'config-'. Ie, a sem/ list would look like: apt-update-upgrade.i-7c908817 config-misc.i-7c908817 config-mounts.i-7c908817 config-puppet.i-7c908817 config-ssh.i-7c908817 consume_userdata.i-7c908817 disable-ec2-metadata.always set_defaults.i-7c908817 set_hostname.i-7c908817 With the last release (0.5.11), those config- would have been removed. I'll handle this correctly yuckyness in the ubuntu package upgrade (avoiding re-running scripts that were already ran)
2010-06-18add debug log message for 'running' config moduleScott Moser
2010-06-18doc: add mention of cloud-boothook to documentationScott Moser
2010-06-18change debug messages in DataSourceEc2Scott Moser
2010-06-18add the instance-id to the environment as INSTANCE_ID for boothooksScott Moser
passing the instance-id of this instance to a boothook will give it the unique id that is needed to implement run-once-per-instance.
2010-06-18add 'cloud-boothook' typeScott Moser
if user data is of type text/cloud-boothook, or begins with #cloud-boothook, then assume it to be code to be executed. Boothooks are a very simple format. Basically, its a one line header ('#cloud-config\n') and then executable payload. The executable payload is written to a file, then that file is executed at the time it is read. The file is left in /var/lib/cloud/data/boothooks There is no "first-time-only" protection. If running only once is desired, the boothook must handle that itself.
2010-06-17move suggested rsyslogd config file to toolsScott Moser
2010-06-17fix cloud-config.conf upstart jobScott Moser
2010-06-17make cloud-config modules configurable by cloud-configScott Moser
The list of cloud-config modules is now kept in cloud config itself. There is a builtin list in cloudinit, which is overrideable by /etc/cloud/cloud.cfg or user data cloud-config. This should make the modules more easily added or removed (as no code needs to be edited now) Basic summary of changes: - move CloudConfig.py -> cloudinit/CloudConfig/__init__.py - split cloud-config modules into their own files named cloudinit/CloudConfig/cc_<name>.py - remove all the upstart/cloud-config-* scripts, replacing them with upstart/cloud-config.conf
2010-06-17cloud.cfg: remove accidently commited 'cloud_config_modules' sectionScott Moser
remove the section, these should be covered in 'builtin'. The content was correct, just not needed. Added an example to doc/examples/cloud-config.txt on how the user can configure this from either cloud-config user data or from /etc/cloud/cloud.cfg
2010-06-17cloud-init: remove additional new line in log messageScott Moser
2010-06-17remove use of cloudinit constants from util.py in get_base_cfg Scott Moser
use get_base_cfg from CloudInit:read_cfg
2010-06-17remove debug printfs from __init__Scott Moser
2010-06-17add initial logging supportScott Moser
This logging infrastructure in cloudinit: - uses python logging - allows user supplied config of logging.config.fileConfig format to be supplied in /etc/cloud/cloud.cfg or in cloud_config by user data. - by default, tries to use syslog, if that is not available, writes directly to /var/log/cloud-init.log (syslog will not be available yet when cloud-init runs) - when using syslog, the doc/21-cloudinit.conf file provides a rsyslogd file to be placed in /etc/rsyslog.d/ that will file [CLOUDINIT] messages to /var/log/cloud-init.log
2010-06-15add vi modelines to python filesScott Moser
2010-06-09remove ec2-get-info.py. Scott Moser
This is replaced by ec2metadata, per LP: #547019 LP: #547019
2010-05-05wait considerably longer (1050 seconds) for metadata service to come upScott Moser
Also - adds some debugging information when its waiting - add 'uptime' printout on initial cloud-init invocation
2010-03-29util.py: allow for case-insensitive "true" values in get_cfg_option_bool. Scott Moser
LP: 507709 LP: #507709
2010-03-26move to 0.5.10Scott Moser
2010-03-25This runs could-config-mounts on 'filesystem' event rather than onScott Moser
cloud-config. Doing so means the collision that was occuring with upstart/mountall will not occur. However, it also means any mounts configured will not be mounted until later. LP: #527825 LP: #527825
2010-03-25ec2-get-info.py: fix bad indentationScott Moser
2010-03-25[packaging] change make-dist-tarball to use the tag given to itScott Moser
2010-03-25better 'Caught exception reading instance data' errorScott Moser
2010-03-08move version to 0.5.9Scott Moser
2010-03-08rename apt lists files to match newly selected mirror (LP: #513060)Scott Moser
On first boot of an instance, cloud-config replaces /etc/apt/sources.list with references to a local mirror. This will also rename the old list files in /var/lib/apt/lists . LP: #513060
2010-03-04replace 'cloudconfig' entries in fstab rather than appending (LP: #524562)Scott Moser
This marks the comment option of fs_mntops in fstab (man fstab) with cloudconfig for each of the mount options added by cloudconfig. It will search through existing lines, any entry written by cloudconfig will be deleted. LP: #524562
2010-03-04in ebs root instances, ephemeral0 will have a full path.Scott Moser
In instance store I was used to block-device-mapping: {'ami': 'sda1', 'ephemeral0': 'sda2', 'root': '/dev/sda1', 'swap': 'sda3'}, in ebs, image registered with '--block-device-mapping /dev/sda2=ephemeral0', metadata is showing block-device-mapping: {'ami': '/dev/sda1', 'ephemeral0': '/dev/sda2', 'root': '/dev/sda1', 'swap': 'sda3'}, Without this change, 'ephemeral0' would not get translated and would show up in /etc/fstab.
2010-03-04cloudinit/CloudConfig.py: bug fix, 'ephemeral' in cloud-configScott Moser
would not be converted to 'ephemeral0'
2010-03-04cloudinit/CloudConfig.py whitespace changes (remove tabs)Scott Moser