summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-03-03 Resolved all the pep8 errors.Sankar Tanguturi
Executed ./tools/run-pep8 cloudinit/sources/DataSourceOVF.py and no errors were reported.
2016-03-01 Added a kill switch for customization on VMware platform.Sankar Tanguturi
The customization is set to False by default and is triggered only when the option disable_vmware_customization is set to false in /etc/cloud/cloud.cfg
2016-02-18 - Removed dmi_data function.Sankar Tanguturi
- Fixed few variable names. - Used util.subp methods for process related manipulations.
2016-02-16 - Used proper 4 space indentations for config_nic.py and nic.pySankar Tanguturi
- Implemented the 'search_file' function using 'os.walk()' - Fixed few variable names. - Removed size() function in config_file.py - Updated the test_config_file.py to use len() instead of .size()
2016-02-09 - Added the code to configure the NICs.Sankar Tanguturi
- Added the code to detect VMware Virtual Platform and apply the customization based on the 'Customization Specification File' Pushed into the guest VM.
2016-02-08 - Added new Unittests for VMware support.Sankar Tanguturi
2016-01-19 Fixed all the review comments from Daniel.Sankar Tanguturi
Added a new file i.e. nic_base.py which will be used a base calls for all NIC related configuration. Modified some code in nic.py.
2016-01-05 Fixed all the styling nits.Sankar Tanguturi
Used proper naming convention for the methods. Added proper documentation. Checked pep8 and flake8 output and no issues were reported.
2015-11-18Add Image Customization Parser for VMware vSphere Hypervisor Support.Sankar Tanguturi
This is the first changeset submitted as a part of project to add cloud-init support for VMware vSphere Hypervisor. This changeset contains _only_ the changes for a simple python parser for a Image Customization Specification file pushed by VMware vSphere hypervisor into the guest VMs. In a later changeset, will be submitting another patch to actually detect the underlying VMware vSphere hypervisor and do the necessary customization.
2015-11-18Azure: get instance id from dmi instead of SharedConfigScott Moser
Replace the use of SharedConfig.xml in both the walinuxagent case, and the case where we communicate with the Azure fabric ourselves. The instance id present in the dmi data is unfortunately different that that in the SharedConfig. This means that something needs to handle migration so that a reboot after newer version is installed will not re-run first instance things. In Ubuntu this is being handled in packaging. LP: #1506187
2015-11-09cc_mounts: use 'nofail' if system uses systemd. (LP: #1514485)Scott Moser
'nofail' is the systemd equivalent of the mountall/upstart 'nobootwait'. So, if a system uses systemd, then use 'nofail' in /etc/fstab for ephemeral mounts.
2015-11-09With Ubuntu 15.10, "nobootwait" != "nofail". The "nobootwait" was an UbuntuBen Howard
specific option. This change was dropped in 15.10 (LP: #1514485).
2015-11-05ubuntu templates: enable backportsScott Moser
Previous commit intended to enable backports, but failed to do so.
2015-11-03Ubuntu templates: make sources.list consistent with ISO installs.Scott Moser
This modifies a designed decision to have trimmer sources.list than one would find on a server iso install. Specifically, here we now enable: restricted and multiverse and backports. LP: #1177432
2015-11-02Fixed per MP reviewBen Howard
2015-11-02Enable backports source pockets for Ubuntu archives (LP: #1177432).Ben Howard
2015-10-30Use DMI data to find Azure instance IDs.Daniel Watkins
This replaces the use of SharedConfig.xml in both the walinuxagent case, and the case where we communicate with the Azure fabric ourselves.
2015-10-20AltCloud: Remove --quiet option from udevadm callDaniel Watkins
2015-10-20Remove --quiet option from udevadm in AltCloudDarren Worrall
--quiet is no longer supported LP: #1507526
2015-10-14azure: support extracting SSH key values from ovf-env.xmlScott Moser
Azure has or will be offering shortly the ability to directly define the SSH key value instead of a fingerprint in the ovf-env.xml file. This patch favors defined SSH keys over the fingerprint method (LP: #1506244).
2015-10-14AZURE: support extracting SSH key values from ovf-env.xmlBen Howard
Azure has or will be offering shortly the ability to directly define the SSH key value instead of a fingerprint in the ovf-env.xml file. This patch favors defined SSH keys over the fingerprint method (LP: #1506244).
2015-10-09support configuring and installing the Ubuntu fan driverScott Moser
#cloud-config fan: config: | # fan 240 10.0.0.0/8 eth0/16 dhcp 10.0.0.0/8 eth1/16 dhcp off # fan 241 241.0.0.0/8 eth0/16 dhcp config_path: /etc/network/fan LP: #1504604
2015-10-09support configuring and installing the Ubuntu fan driverScott Moser
#cloud-config fan: config: | # fan 240 10.0.0.0/8 eth0/16 dhcp 10.0.0.0/8 eth1/16 dhcp off # fan 241 241.0.0.0/8 eth0/16 dhcp config_path: /etc/network/fan LP: #1504604
2015-09-29MAAS: fix issues with url_helper and oauth moduleScott Moser
This would cause problems in the event that we actually had a bad clock. We add a retry in the main (for test) also, to ensure that the oauth timestamp fix gets in place. LP: #1499869
2015-09-17webhook: report with json dataScott Moser
the handler was passing a dictionary to readurl which was then passing that on to requests.request as 'data'. the requests library would urlencode that, but we want the json data posted instead. LP: #1496960
2015-09-15Change Snappy SSH enabled default from false to 'auto' (LP: #1494816)Ben Howard
2015-09-11snappy: enable ssh on snappy if ssh keys are provided or password authScott Moser
If the user provides ssh keys or requests password auth in their user-data then we will enable ssh by default. LP: #1494816
2015-09-11cc_snappy: update doc string, change default to 'auto'Scott Moser
2015-09-11Refinements on SSH enablementBen Howard
2015-09-11Ubuntu Snappy: conditionally enable SSH on SnappyBen Howard
When a user provides authentication tokens, enable SSH unless SSH has been explicitly disabled (LP: #1494816).
2015-09-08 power_state: support 'condition' argumentScott Moser
if 'condition' is provided to config in power_state, then consult it before powering off. This allows the user to shut down only if a condition is met, and leave the system in a debuggable state otherwise. An example is as simple as: power_state: mode: poweroff condition: ['sh', '-c', '[ -f /disable-poweroff ]']
2015-09-08NoCloud: fix consumption of vendor-dataScott Moser
the content of vendordata was was being assigned to vendordata, rather than vendordata_raw. The result was that it is not processed for includes or part handlers or other things as it is in other datasources. LP: #1493453
2015-09-03reporting/events: catch a final remaining incorrect use of 'reporting'Scott Moser
2015-09-02sync curtin reporting changes back to cloud-initScott Moser
this pulls in the reporting framework that we'd been working on in curtin back to cloud-init.
2015-09-02fix test_as_dictScott Moser
2015-09-01Handle symlink mount points in mount_cb.Scott Moser
The Azure data source now uses a /dev/disk symlink to identify devices, but the dereferenced version of this appears in the mount table. mount_cb therefore doesn't identify when a disk is already mounted, and attempts to mount it a second time (which fails with NTFS). LP: #1490796
2015-09-01Handle symlink mount points in mount_cb.Daniel Watkins
The Azure data source now uses a /dev/disk symlink to identify devices, but the dereferenced version of this appears in the mount table. mount_cb therefore doesn't identify when a disk is already mounted, and attempts to mount it a second time (which fails with NTFS).
2015-08-31handlers: drop unused importScott Moser
this import was left over from before we moved oauthlib into url_helper
2015-08-31handlers: docstring fixups, and print actually do somethingScott Moser
2015-08-31events: add timestamp and origin, support file postingScott Moser
This adds 'timestamp' and 'origin' to events. The timestamp is simply that, a floating point timestamp of when the event occurred. The origin indicates the source / reporter of this. It is useful to have a single endpoint with multiple different things reporting to it. For example, MAAS will configure cloud-init and curtin to report to the same endpoint and then it can differenciate who made the post. Admittedly, they could use multiple endpoints, but this this seems sane. Also, add support for posting files at the close of an event. This is utilized in curtin to post a log file when the install is done. files are posted on success or fail of the event.
2015-08-31split 'events' portion of reporting into separate fileScott Moser
this just separates events from other things that could conceivably be reported.
2015-08-31readurl: if headers are provided still provide base headersScott Moser
we want cloud-init user agent to be present even if the user provided some headers. In the event that they provided User-Agent, this will respect their wishes.
2015-08-25MAAS: fixes to data source and OauthUrlHelperScott Moser
the previous version was broken. The vital fixes here are: * adding parsedate and oauth1 imports to url_helper * fix skew_data usage intending to use self.skew_data Additionally: * reorder imports in url_helper * fixes to python3 -m cloudinit.sources.DataSourceMaas LP: #1488507
2015-08-12swap: create swap with fallocate if possibleScott Moser
fallocate is much faster than 'dd' for creating and initializing a swap file. LP: #1482994
2015-08-10reporting: remove unused variable, actually print in PrintHandlerScott Moser
2015-08-07reporting: fix logging reproter and testsScott Moser
2015-08-07Add initial reporting module and eventsScott Moser
2015-08-07add doc, remove some debug / print statements.Scott Moser
2015-08-07undo broken logic that attempted to not re-initialize classesScott Moser
2015-08-07catch exception in webhook, adjust logging to use cloud-init loggingScott Moser