summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-08-15do not set 'password', but set 'passwd' to crypt'd valueScott Moser
'password' was the wrong key. It should have been setting the default user's "plain_text_password". Instead of doing that, though, we're encrypting the value and putting it in 'passwd', which will then be passed on to useradd. The key value in doing this is that the plain text password will not be stored in obj.pkl. (admittedly it is still in plain text in the ovf-env.xml file).
2013-08-14cc_growpart: prefer growpart over parted 'resizepart'Scott Moser
the resizepart code was not functional. We will re-favor it later under bug 1212492. For now, we'll just favor the 'growpart' resizer. Both will be found in Ubuntu cloud images. LP: #1212444
2013-08-14cc_growpart: prefer growpart over parted 'resizepart'Scott Moser
the resizepart code was not functional. We will re-favor it later under bug 1212492. For now, we'll just favor the 'growpart' resizer. Both will be found in Ubuntu cloud images. LP: #1212444
2013-08-06add options for apt_ftp_proxy, apt_https_proxy and apt_configScott Moser
This adds ability to explicitly set http, https, ftp proxy for apt. Also generically adds ability to give a apt config. apt-config could be done via write_files, but this is more specific to it. LP: #1057195
2013-08-06merge from trunkScott Moser
2013-08-06fix pep8 and pylint warningsScott Moser
2013-08-06remove unused importsScott Moser
2013-08-06remove unused importScott Moser
2013-08-06add tests for apply_apt_configScott Moser
2013-08-06remove unused LOG Scott Moser
2013-08-06initially add support for apt_ftp_proxy and apt_https_proxy. tests to come.Scott Moser
LP: #1057195
2013-08-05reduce finding time zone file to top level distroJoshua Harlow
remove duplicates of some code.
2013-08-05merge from trunkScott Moser
2013-07-30add util.log_time helperScott Moser
The reason for this is that more and more things I was wanting to be able to see how long they took. This puts that time logic into a single place. It also supports from /proc/uptime as the timing mechanism. While reading /proc/uptime is almost certainly slower than time.time(), it does give millisecond granularity and is not affected by 'ntpdate' having run in between the two events.
2013-07-30set reading /proc/uptime to false by default.Scott Moser
reading /proc/uptime is going to be slower, and no reason to do it on most things. Better to only do it when you suspect maybe a need for it.
2013-07-30add util.log_time helperScott Moser
The reason for this is that more and more things I was wanting to be able to see how long they took. This puts that time logic into a single place. It also supports (by default) reading from /proc/uptime as the timing mechanism. While that is almost certainly slower than time.time(), it does give millisecond granularity and is not affected by 'ntpdate' having run in between the two events.
2013-07-29add 'pyserial' to bddeb and bdrpmScott Moser
2013-07-29add dependency on 'serial' used by SmartOS datasourceScott Moser
2013-07-29DataSourceAzure: do not capture output of bounce commandScott Moser
As shown in comments of bug 1202758 and filing of ntp bug 1206164, waiting for the output of this command causes us to wait for ntpdate to fully finish. Ideally I think we'd disable ntpdate running on this run, but that is not trivially possible.
2013-07-27Add the pyserial dependency.Joshua Harlow
LP: #1205720
2013-07-26azure: fix bouncing of interfaceScott Moser
the environment that was set up to include 'interface' was not actually being passed on to 'subp', so when the command ran it wasn't available.
2013-07-25add debian init scriptsScott Moser
These are debian's init scripts as taken from their trunk svn as of today. Thanks Juerg.
2013-07-25add --init-sytem to ./packages/bddebScott Moser
this way you can now do ./package/bddeb --init-system=sysvinit_deb
2013-07-25pull in fixes for debian bug 712985Scott Moser
2013-07-25minor azure cleanupScott Moser
2013-07-25azure: support bouncing interfaces to publish new hostnameScott Moser
See the added doc/sources/azure/README.rst for why this is necessary. Essentially, we now are doing the following in the get_data() method of azure datasource to publish this NewHostname: hostname NewHostName ifdown eth0; ifup eth0 LP: #1202758
2013-07-24Remove duplicate timezone file finding and error raising.Joshua Harlow
2013-07-24update dependencies for jsonpatchScott Moser
2013-07-24tests: fix pep8 issueScott Moser
Move long lines out of the test_util.py file and into tests/data. no pep8 or pylint errors now.
2013-07-24add test case for mime gzipped message segmentsJoshua Harlow
2013-07-24Fix small prefix bug + jsonp tests.Joshua Harlow
Fix the wrong usage of the prefix removal array action by just using the new util function that does these actions correctly. Add in a couple of unit tests to verify the jsonp merging and usage works as expected.
2013-07-24Add support for merging via jsonp patch format.Joshua Harlow
This adds a very well defined and understood mechanism for applying changes to the cloud-config. Had we seen this previously, we might have not done the merge-types work.
2013-07-24rename CC_JSONP_PRE again (JSONP_PREFIX) and use CLOUD_PREFIXScott Moser
2013-07-24change 'json-patch' to 'cloud-config-jsonp'Scott Moser
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-24Add test for mime gzipped message segments.Joshua Harlow
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