]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Connect cfn utils to the remote server
authorTomas Sedovic <tomas@sedovic.cz>
Thu, 3 May 2012 14:19:17 +0000 (16:19 +0200)
committerTomas Sedovic <tomas@sedovic.cz>
Thu, 3 May 2012 14:55:02 +0000 (16:55 +0200)
commit47cf2132a27f85cccf779f070badc3cebbc37a3c
tree966d10081026b38b8505684890461d451abf1c96
parent25568e75c335fb3deef534d17853c6496f9911c1
Connect cfn utils to the remote server

The cfn_helper's `Metadata` class can now connect to the metadata server
prodived it's URL is known and available.

Engine will pass metadata server's URL via the User Data to the following file:

    /var/lib/cloud/data/cfn-metadata-server

If the file doesn't exist or the server is unreachable, cfntools will read
metadata from the `/var/lib/cloud/data/cfn-init-data` file as they did so far.

Note that Engine dosen't currently know the metadata server's URL so it's not
passing it to the instance yet.
heat/cfntools/cfn_helper.py
heat/engine/instance.py
heat/engine/parser.py