summaryrefslogtreecommitdiff
path: root/cloudinit/CloudConfig
AgeCommit message (Collapse)Author
2011-09-13Bringing in proper json support for firstboot.json from ↵Mike Moulton
lp:~avishai-ish-shalom/cloud-init/chef Bringing in 'initial_properties' support from lp:~avishai-ish-shalom/cloud-init/chef
2011-09-12Set sane defaults for 'node_name' and 'environment'Mike Moulton
Support both 'validation_cert' and 'validation_key' for backwards compatibility Cleaned up line length
2011-09-10Modifications to properly support both 'gems' and 'packages' install types.Mike Moulton
Added support for 'node_name' and 'environment' properties. Renamed 'validation_cert' to 'validation_key' to match Chef's nomenclature.
2011-09-08Fix minor issue with multiple runlist items not written in the correct format.Scott Moser
2011-09-09Fixed wrong firstboot json formatAvishai Ish-Shalom
2011-09-08Fix cc_chef issues (LP: #845161)Scott Moser
LP: #845161
2011-09-08Fixed review rejects: firstboot.json write, gem_binary not defined, wrong ↵Avishai Ish-Shalom
validation cert name
2011-09-01warn on failure of the hostname command when setting hostnameScott Moser
LP: #832175
2011-08-29improve updating of .ssh/authorized_keysScott Moser
These changes update the .ssh/authorized_keys rather than simply appending This is preferable as ssh daemon picks the first key that is present. This fixes 2 issues where something had edited a .ssh/authorized_keys prior to cloud-init getting at it. a.) LP: #434076 a user prior to re-bundling b.) LP: #833499 the hypervisor If you want to enable ssh access for root user, the proper way to do it is with 'disable_root: False' in cloud-config. LP: #434076, #833499
2011-08-22util.subp: do not attach stdin cloud-init's stdin to subprocesses (LP: 831505)Scott Moser
Fix issue where 'isatty' would return true for apt-add-repository. It would get stdin which was attached to a terminal (/dev/console) and would thus hang when running during boot. This was done by changing all users of util.subp to have None input unless input was given. In that case, the input will be the string passed in. LP: #831505
2011-08-22fix for syntax error around ecdsa changesScott Moser
2011-08-22cc_apt_update_upgrade.py: Redirect stdin to /dev/null for calls to ↵Adam Gandelman
add-apt-repository (LP #831505)
2011-08-15add awareness of ecdsa keys.Scott Moser
2011-08-03fix incorrect logic when 'manage_etc_hosts' has a valueScott Moser
For better or worse, 'manage_etc_hosts' means "write /etc/hosts from the template" The default setting is 'False', which was not to update /etc/hosts at all. Now, we're updating /etc/hosts, claiming the 127.0.1.1 entry as owned by cloud-init if manage_etc_hosts is false.
2011-08-03remove debug statementScott Moser
2011-08-03add get_hostname_fqdn method to 'util' and use it for getting hostnameScott Moser
This adds a method 'get_hostname_fqdn' to cloudinit.util, and then uses this method for getting the hostname and fqdn in places that get hostname. The single place for getting it right will help.
2011-08-03improve update_etc_hosts method in cc_update_etc_hostsScott Moser
This fixes a couple issues with the updating of /etc/hosts by the update-etc-hosts cloud-config module. * if hostname changed in the life of the instance, an additional "header" line would be added. * any comment lines like '#mycomment' would be deleted because they did not have 2 fields
2011-08-02This fixes LP: #819507, to make consume_userdata run 'always'Scott Moser
consume_userdata should really run always, rather than once per instance. The documentation says that boothooks were on their own for per-instance but since this routine was only being called once, they would only get called once. This modifies the behavior to be: user_script: per_always cloud_config : per_always upstart_job : per_instance cloud_boothook: per_always In order to not break part handlers that are existing, and expect to only be called once per instance, this adds a 'handler_version' item in a handler that can indicate the version (currently 1 or 2). If it is 2, then the hander will be passed the frequency (per-instance or per-always) that this is being run. That way the handler can differenciate between them. This also makes 'bootcmd' run every boot. That should be changable in cloud-config though, so users who dont like the behavior can modify it. LP: #819507
2011-07-26use util.write_file in cc_mcollective.pyScott Moser
2011-07-26cc_mcollective: use util.write_file, change perms of private key file to 0600Scott Moser
2011-07-25Added ssl cert support to mcollectiveMarc Cluet
2011-07-21fix syntax error in cc_chef.pyScott Moser
2011-07-19improve the updating of /etc/hosts with correct fqdn when possibleScott Moser
Thanks to Adam Gandalman and Marc Cluet for this fix. LP: #812539
2011-07-19do not complain if attempt to resizefs in an lxc container failsScott Moser
it is expected / understood that mknod would fail inside an lxc container. So, if thats the case, just log a debug message saying so. LP: #800856
2011-07-18add chef [Avishai Ish-Shalom]Scott Moser
2011-06-30* cloudinit/CloudConfig/cc_update_etc_hosts.pyMarc Cluet
- Added new functionality to sanitise /etc/hosts
2011-06-17read authorized_keys location from sshd_config (LP: #731849)Scott Moser
LP: #785542
2011-06-17make the default "fill in" mount entries configurable. (LP: #785542)Scott Moser
The primary motivation for this is so that 'nobootwait' is not hard coded to appear in the fs_opts field. LP: #785542
2011-06-17change, and make configurable the prefix for entries in root authorized_keysScott Moser
This makes the prefix for entries added to root's authorized keys configurable. Previously, the value was: command="echo 'Please login as the user \"ubuntu\" rather than the user \"root\".\';echo;sleep 10\"" Now, at is configurable in cloud.cfg or user data by setting 'root_disabled_opts'. Additionally, the default has been changed to include 'no-port-forwarding,no-agent-forwarding,no-X11-forwarding' See LP: #798505 for more information on that. Note, that 'no-pty' was *not* added to this list as adding it means the user who simply does 'ssh root@host' gets a "cannot allocate pty" message rather than seeing warning about using root. LP: #798505
2011-06-14Support disabling of byobu.Scott Moser
LP: #797336
2011-04-29Seperated chef gems install to another functionAvishai Ish-Shalom
2011-04-24updated ruby packages listAvishai Ish-Shalom
2011-04-24ruby_version should be configurableAvishai Ish-Shalom
2011-04-21Added Chef pluginAvishai Ish-Shalom
2011-04-21Allow configurable hostname prefix and hostname attributeAvishai Ish-Shalom
2011-04-06fix bug seeding grub dpkg config when devices are named xvdX (LP: #752361)Scott Moser
With newer ubuntu kernels the xen block devices are named xvd[a-z][0-9] Ie, instead of /dev/sda1 the root device is /dev/xvda1. LP: #752361
2011-03-30cloudinit/CloudConfig/cc_timezone.py: remove debug print outScott Moser
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-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-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 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-15Changes to puppet module + mcollective moduleMarc Cluet