~harlowja/cloud-init/shared-wait-metadata

Viewing all changes in revision 945.

  • Committer: Scott Moser
  • Author(s): Joshua Harlow
  • Date: 2014-02-13 18:54:43 UTC
  • mfrom: (913.1.17 ds-openstack)
  • Revision ID: smoser@ubuntu.com-20140213185443-n60pjxjxnbqv4g7m
Add a openstack specific datasource

Openstack has a unique derivative datasource that is gaining usage.
Previously the config drive datasource provided part of this functionality
as well as the ec2 datasource, but since new functionality is being added
to openstack's special datasource it seems beneficial to combine the used
parts into a new datasource just made for handling openstack deployments
that use the openstack metadata service (possibly in combination with the
ec2 metadata service).

This patch factors out the common logic shared between the config drive
and the openstack metadata datasource and places that in a shared helper
file and then creates a new openstack datasource that readers from the
openstack metadata service and refactors the config drive datasource to
use this common logic.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: