summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-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.
2013-07-09mention using cachedScott Moser
2013-07-09search in the default storage directory for cached ovf-env.xmlScott Moser
since azure ejects the disk on reboot, we need to look there to find this datasource.
2013-07-09populate /var/lib/waagent with ovf-env.xmlScott Moser
this will copy the ovf-env.xml file that was found to the configured directory (default /var/lib/waagent)
2013-07-09better handling for user/passwordScott Moser
2013-07-09add stub for ssh keysScott Moser
The idea is that in the future, the DataSources get_data could check to see if there were ssh keys provided. if there were, it could poll and wait (or inotify) until the <fp>.crt files appeared in the /var/lib/walinux directory. Once they did, it'd populate the metadata's public keys.
2013-07-09add azure to ds listScott Moser
2013-07-09merge from trunkScott Moser
2013-07-09re-enable test case because 1124384 is fixedScott Moser
2013-07-09handlers/upstart_job.py: invoke reload-configuration if we can.Scott Moser
Previously we'd not invoked reload-configuration because doing so caused issues with upstart. Now, instead, determine if we can invoke it. LP: #1124384
2013-07-09add some unit tests, fix things found by doing soScott Moser
2013-07-08merge from trunkScott Moser
2013-07-08fix test_nocloud testcaseScott Moser
2013-07-08commit dev stateScott Moser
2013-06-27Fix SLES zypper command usageJuerg Haefliger
2013-06-27Remove 'Copyright SUSE' from the headersJuerg Haefliger
Per discussion with Robert @ SUSE since he can't sign the CCA.
2013-06-27Add support for building a SLES rpm packageJuerg Haefliger
2013-06-26Use short option names for passwd utilitiesJuerg Haefliger
SLES 11 doesn't support long option names for the passwd utilities. Use the short option names in the parent distro class and remove the custom SLES methods.
2013-06-25Add unit tests for SLES handlerJuerg Haefliger
2013-06-25Add SLES hosts template fileJuerg Haefliger
2013-06-25Add a SLES distro handlerJuerg Haefliger
2013-06-25Move some RHEL distro methods to their own new fileJuerg Haefliger
So that they can be used by other handlers.
2013-06-20fix and tidy up logexc usageJuerg Haefliger
Some of the usages of logexc contain incorrect arguments to logexc. cloudinit/config/cc_ssh_import_id.py cloudinit/distros/__init__.py The tidy up here is to fix many others that pass rendered strings to logexc rather than letting it handle rendering at a later date (or not at all in the case where logging is disabled).
2013-06-20Cleanup Distro.create_user() methodJuerg Haefliger
Move adding of a user and locking of a password to their own methods so that distro handlers can override them.
2013-06-19fix pep8 errors.Juerg Haefliger
2013-06-19fix and cleanup usage of util.logexcJuerg Haefliger
2013-06-07ConfigDrive, Nocloud: Apply the "poke /dev/sr0" approach to /dev/sr1 alsoGreg Padgett
Optical drives may show up in RHEL systems as /dev/sr1; this extends a prior fix to handle that use case. It's applicable to systems with 2.6 kernels where blkid needs a little prodding. If we have to go back here with '/dev/sr2', then we should probably come up with a fix that doesn't doesn't make us come back again.
2013-06-07DataSourceOVF: small fix for iso9660 transportScott Moser
This is not really a problem, because nothing would call transport_iso9660 with 'require_iso' as False, but if it did, then we would have still required iso9660 filesystem on the mount.
2013-06-04support optical drives with dev node /dev/sr1Greg Padgett
Extend a prior fix which helped discovery of media on systems using 2.6 kernels. /dev/sr0 covers only some of the use cases, /dev/sr1 is also common.
2013-05-20Fix chef omnibus installation support.Chris Wing
LP: #1182265
2013-05-20open 0.7.3Scott Moser
2013-05-20Fix Chef client 'omnibus' install; util.write_file() expects a string not ↵Chris Wing
UrlResponse
2013-05-16remove executable on logo.svgScott Moser
2013-05-15mention new merge format in ChageLogScott Moser
2013-05-13Fix how the 'dist' is incorrectly returned when patching the os functions.Joshua Harlow
2013-05-13Fix how python 2.6 was broken due to new dict syntax.Joshua Harlow
Said syntax doesn't exist in RHEL since it is new to 2.7.