summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-07-24merge from trunkScott Moser
2013-07-24DataSourceSmartOS: fix issue if dmidecode is not presentScott Moser
2013-07-24add SmartOS datasource supporting Joyent cloudBen Howard
This adds a datasource designed to work on Joyent cloud (SmartOS).
2013-07-24shorten comments in example cloud-configScott Moser
2013-07-23Added blurb to documentation about the datasourceBen Howard
2013-07-23Changed get_serial to be fully parameterized and return the serialBen Howard
initialized. Added a mapping of attributes between cloud-init and smartos.
2013-07-23on azure datasource, grab use Deployment as the instance-idScott Moser
LP: #1204190
2013-07-23Move more functionality into get_serial()Ben Howard
2013-07-23alias 'availability_zone' to availability-zone in metadata service.Scott Moser
The place this was noticed was in trying to use the 'nova.clouds.archive.ubuntu.com' mirror selection. Because the config-drive-v2 has a metadata entry of 'availability_zone', it didn't get found by the availabilty_zone property in cloudinit/sources/__init__.py LP: #1190431
2013-07-23use constants for startswith in handlers. add strip_prefix_suffix.Joshua Harlow
Just cleans up some repeated strings into module constants + a util function to do the boothook prefix cleanup (before writing).
2013-07-23finalize handlers even when another handler fails.Joshua Harlow
Instead of previously initializing and not finalizing the handles that completed successfully when a handler initializing or running failed we should attempt to always give said handlers a chance to finalize (even when another handler fails). LP: #1203368
2013-07-23allow individual MIME segments to be gzip compressedJoshua Harlow
this will automatically decompress individual MIME segments if they are compressed. LP: #1203203
2013-07-23bump version in cloudinit/version.pyScott Moser
2013-07-23Fix password setting for rhel5.Scott Moser
Changing password via 'chpasswd' command in rhel5 would fail, if input to the 'chpasswd' command doesn't end with '\n'. The fix is just to append a carriage return to the input.
2013-07-21Ensure what we are searching over is a directory.Joshua Harlow
2013-07-21Also make the dir handler registration a simple function.Joshua Harlow
2013-07-21Just use an initialized array.Joshua Harlow
2013-07-21Use a util helper to do prefix/suffix removal.Joshua Harlow
2013-07-21Use constants for repeated type strings.Joshua Harlow
2013-07-20Just check the filename existing.Joshua Harlow
2013-07-20Unify filename, header replacement.Joshua Harlow
2013-07-20Keep filename from original part.Joshua Harlow
2013-07-20Ensure we reset the part after decompression.Joshua Harlow
2013-07-20Remove return not used.Joshua Harlow
2013-07-20Also handle custom handlers correctly.Joshua Harlow
LP: #1203368
2013-07-20Update comments + link to bug.Joshua Harlow
LP: #1203368
2013-07-20Init and finalize refactor.Joshua Harlow
Instead of previously initializing and not finalizing the handles that completed successfully when a handler initializing or running failed we should attempt to always give said handlers a chance to finalize (even when another handler fails).
2013-07-20Bump the version.Joshua Harlow
LP: #1203364
2013-07-20Ensure we remove the same way we detect.Joshua Harlow
2013-07-20Remove json-patch inclusion header if payload contains it.Joshua Harlow
2013-07-20Fix constant move.Joshua Harlow
2013-07-20Fix content-type constant.Joshua Harlow
2013-07-20Add usage of '#json-patch'Joshua Harlow
2013-07-19Add the ability to merge with jsonpatch.Joshua Harlow
Jsonpatch is a new RFC standard for merging json-like structures which the cloud-init cloud-config is one such structure. To use this in a limited fashion (to start) add the ability for the cloud-config handler to accept this content-type and use it as an alternate way to merge new cloud-config sections into the accumulated cloud-config. LP: #1200476
2013-07-19Add the ability to decompress MIME gzip.Joshua Harlow
Instead of being restricted to only gzip compressing the overall mime segment or individual included segments, allow for each mime segment to be gzip compressed. LP: #1203203
2013-07-18Added SmartOS datasource and unit tests.Ben Howard
2013-07-17adds support for SLES plus some basic unittests.Juerg Haefliger
Some code from the RHEL handler was moved to a new file so that it can be used by the SLES handler.
2013-07-17plain text password of '' or None should not trigger settingScott Moser
2013-07-17fix indentation a bit in MakefileScott Moser
2013-07-17merge from trunkScott Moser
2013-07-17Azure: make /var/lib/waagent with 0700 permsScott Moser
The walinux agent expects that the files it writes with 0644 (default umask) permissions are not globally readable. Since we were creating the directory for it, and using default umaks (0755), the files inside were readable to non-priviledged users.
2013-07-17DataSourceAzure: fix inverted logic on DisablesshPasswordAuthenticationBen Howard
DisablesshPasswordAuthentication == True means that ssh_pwauth should be disabled rather than enabled. LP: #1201969
2013-07-16Use the inverse of DisableSshPasswordAuthentication for ssh_pwauth.Ben Howard
(LP: 1201969)
2013-07-11DataSourceAzure.py: allow 'customdata' to be the name for userdataScott Moser
Also, fix a comment and write a log message on how long we waited for the files to appear.
2013-07-11test_builtin_handlers.py: fix pylintScott Moser
2013-07-11upstart_job.py: fix pylint and bad bad variable in _has_suitable_upstartScott Moser
2013-07-10add Azure datasourceScott Moser
This datasource is not perfect at this point, but is tested on raring. It expects that walinuxagent config is set to disable provisioning (Provisioning.Enabled=n) and also that walinuxagent will not start otherwise (ie 'echo manual | sudo tee /etc/init/walinuxagent.override).
2013-07-10add waiting for files and reading of crt keysScott Moser
2013-07-09build up the 'wait_for' list including fingerprint.crt filesScott Moser
2013-07-09fill out load_azure_ovf_pubkeysScott Moser
now if there are pubkeys, the cfg['_pubkeys'] entry will have a list of dicts where each dict has 'fingerprint' and 'path' entries. The next thing to do is to block waiting for the <fingerprint>.crt files to appear in /var/lib/waagent.